Community

AutoTraining at Userend using Abbyy web API

Hi,

   I am trying to implement training at user end using web API. Can anyone provide me the source code in c# on how to implement this?

Was this article helpful?

0 out of 0 found this helpful

Comments

11 comments

  • Avatar
    Ekaterina

    Hello, you may use the knowledge Base for searching info about web API http://knowledgebase.abbyy.com/

    There is 2 small programs: the first one can  can see what packages and documents exist in the system, information about them and the registration parameters. The program adds a new package, uploads images, which immediately recognized, removes the packages or documents. The second can check the server for information about rescanned documents. If any documents will appear, you will see a message in taskbar. http://kb.abbyy.ru/article/1271

    0
  • Avatar
    Sunil

    Hi Ekaterina,

             I have gone through that, but my criteria is different to that. I have written one C# program which i am able to get the Document body from the server. I am changing the error information manually in Xml after that I am unable to upload the Document body to the server. I am looking for the C# Code which I should able to upload the Document body to the server. I also referred the Help file code but it doesn't work. Below is the link of C# Code

    https://drive.google.com/open?id=0B_-GgxZVne_6ZEJ4Q2htekYtbWM

     

    Thanks in advance...

    0
  • Avatar
    Ekaterina

    Hello,

    In the frame of CaptureDoc resource we don't send custom code samples. For this purpose you may contact your regional support.

    You may also look for desired functionality in: Application Programming Interface (API) > References > Working with Files.  

    0
  • Avatar
    Sunil

     Hi Ekaterina,

                       I referred those files and developed one application. I am getting an error while I upload the document body back to the server. Could you help me with this to resolve the error??

    https://drive.google.com/open?id=0B_-GgxZVne_6VUlWb3M1YnpCekU

    0
  • Avatar
    Ekaterina

    Hello, Sunil

    Due to our support policy, on this resource we may not analyze clients' custom code samples or provide them. For this purpose please contact corresponding ABBYY regional support.

    0
  • Avatar
    Sunil

    Hi Ekaterina,

               Could you help me with the step by step procedure to develop a verification station using abbyy web API? I have gone through help file completely but still i am in a confusion what are the steps to be followed to develop it.

    0
  • Avatar
    Ekaterina

    Hello Sunil

    I need to send you to developers help article: Application Programming Interface (API) > Examples of API Use > Processing Multiple Documents in One Batch and other examplse.

    But to better understand this article I may offer you this scheme:

    1.Sett your web API Referense as describe in msdn: https://msdn.microsoft.com/ru-ru/library/bb628649.aspx.

    2. Create the FlexiCaptureWebServiceApiVersion3 service. Add the Credentials as shown in the sample.

    3. Choose a role and a station. In your case it is the Data Verification Operator = 2 (Application Programming Interface (API) > References > Data Types > Enumerators > RoleType )

    and the Verification station = 2 (Application Programming Interface (API) > References > Data Types > Enumerators > WorkstationType)

    4. Use this information to open the session.

    5. Write your code.

    6. Close the session.

    7. Take care about try-catch and finally blocks just in case.

    0
  • Avatar
    Sunil

    Hi Ekaterina,

              I have completed the code, After verifying when i try to upload the Xml docment back to the server it is getting an error. i;e "Remote server is forbidden". How to resolve this error??

    0
  • Avatar
    Ekaterina

    Hello, Sunil

    Request got “Forbidden” message because it had wrong parameter “objectType”. For XML document it should be 8, not 0. Please see details in Developer’s Help -> Application Programming Interface (API) -> References -> Working with Files.

    0
  • Avatar
    Sunil

    Hi Ekaterina

              I changed the Object type to 8 while I am uploading, then it is giving "Internal Server error 500". I used fiddler to know what is happening, It says that "Documnet is not found".Could you tell me where should i change the object type to 8 in detail?

    When object type = 0 (Fiddler shows Access denied that's why it is giving Remote server is forbidden)

    When object type = 8 (Fiddler shows Document is not found that's why it is giving Internal server 500 Error)

    0
  • Avatar
    Ekaterina

    Hello, Sunil

    Sorry, the amount of work required to reproduce and analyze the reported issue becomes too big for this resource. Please address this issue to the regional support or PSG.

    0

Please sign in to leave a comment.