Xcode: Connection disconnects while waiting for return xml using API

  • 1
  • Problem
  • Updated 5 years ago
I am using Free package for testing of OCR implementation in iPhone. I am posting an image and receiving a image url. This image url is posted on API for processing and retreival of results in XML format. Sometimes I get return message as Processing. This message is received on didFinishLoad event. This event marks the end of connect in xcode and I have to start a new connection. In this process the old connection is terminated. Do you have some sample code in xcode to resolve this issue.
Photo of Yogesh Dutta

Yogesh Dutta

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Eugene Osovetsky

Eugene Osovetsky, Official Rep

  • 18 Posts
  • 0 Reply Likes
I am not sure I understand the problem... Once you get a "Processing" result from the first connection, why do you need to keep it open? You can simply send another request to the job status URL on a different connection. For a code sample, please try contacting the API provider at http://www.ocr-it.com/contact-us