コミュニティ

Web sevice testing

Hello!

I 'm using SoapUI for testing my Recognition Server Web Service.

I tried to upload file for recognition by setting LocationPath parametr in StartProcessFile method.

But had an error: "Bad Request".

When I tried to attached PDF file to my SOAP request I had error: "Unsupported Media Type".

Any help, please?

 

この記事は役に立ちましたか?

1人中1人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    Could you please send us your workflow and some samples images for reproducing the issue?

    0
  • Avatar
    Permanently deleted user

    Hello Ekaterina,

    I'm using Default Workflow, local path to usual PDF file and SoapUI-5.2.1 as testing environment.

    I had error using SOAP request like this:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rec="http://www.abbyy.com/RecognitionServer4_xml/RecognitionServer4.xml">

       <soapenv:Header/>

       <soapenv:Body>

          <rec:StartProcessFile>

             <!--Optional:-->

             <rec:location>?</rec:location>

             <!--Optional:-->

             <rec:workflowName>Default Workflow</rec:workflowName>

             <!--Optional:-->

             <rec:file>

                <!--Optional:-->

                <rec:FileContents>application/pdf</rec:FileContents>

                <!--Optional:-->

                <recpenPassword>?</recpenPassword>

                <!--Optional:-->

                <rec:LocationPath>C:\Temp\!INVK\img453.pdf</rec:LocationPath>

             </rec:file>

          </rec:StartProcessFile>

       </soapenv:Body>

     

    </soapenv:Envelope>

    0
  • Avatar
    Permanently deleted user

     Hello,

    The HTTP 400 Bad Request status code indicates that the server could not understand the request because of an invalid syntax. The client should not repeat this request without changes.

     You may find the code for all the RS samples in the folder C:\Users\Public\ABBYY\ABBYY Recognition Server 4.0\Samples

    0

サインインしてコメントを残してください。