hi
I am getting a response "The remote server returned an error: (404) Not Found." when trying to get
var url = string.Format("http://cloud.ocrsdk.com/processTextField?region={0}&language={1}&exportFormat={2}", region, language, exportFormat);
protected static XDocument GetResponse(string url)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (Stream stream = response.GetResponseStream())
{
return XDocument.Load(new XmlTextReader(stream));
}
}
}
I am getting error at this line
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
plz suggest me what is wrong in this .
Comments
1 comment
Please try to use the sample code: https://github.com/abbyysdk/ocrsdk.com/blob/master/dotNet/dotNetWrapper/RestServiceClient.cs#L322
Please sign in to leave a comment.