Community

Invoking a Web Service in Flexicapture using C#

Hello,

Can anyone provide example code on how to invoke a web service in Flexicapture using c# script?.

Thanks

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Permanently deleted user

    Hello

    As I understand your question you ask about web API service. To start work with it you need to connect a web referense as describe in msdn:  https://msdn.microsoft.com/ru-ru/library/bb628649.aspx. Then you may write your code according to this sample: Application Programming Interface (API) > Examples of API Use > Processing Multiple Documents in One Batch (you need to define "LoadFile" and "Trace" methods separately).

    More examples you may find here: http://kb.abbyy.ru/article/1271

    0
  • Avatar
    Alberto Torino

    Thanks Ekaterina for taking the time to answer.

    I'm not willing to use the web API service. I need to validate some fields from a document capture process in a Flexicapture script rule against the result of a web server invocation. 

    I could not find how to reference the web service in c# script editor. I guess someone in this forum must have done this since it does not seem a weird request.

    I will apprecitate if you can provide any information on the matter.

    Thanks very much for your support.

     

    Hello

    As I understand your question you ask about web API service. To start work with it you need to connect a web referense as describe in msdn:  https://msdn.microsoft.com/ru-ru/library/bb628649.aspx. Then you may write your code according to this sample: Application Programming Interface (API) > Examples of API Use > Processing Multiple Documents in One Batch (you need to define "LoadFile" and "Trace" methods separately).

    More examples you may find here: http://kb.abbyy.ru/article/1271

    0
  • Avatar
    Permanently deleted user

    Hello, atorino

    If you need to call a web service to validate the fields you need to join your custom external .dll via the .Net References tab at first. How to do this you may see here:  Using scripts in ABBYY FlexiCapture > External Assemblies. Then you should add the Web References to use .Net classes and finally you may write the code to get data.

    If you have any remaining questions, please don't hesitate to ask us again and provide detailed description.

    0

Please sign in to leave a comment.