|
|
(22) |
The address of the service metadata (Wsdl) is:
https://services.open.xerox.com/Wsdl.svc/XIPParser
Use this address to generate the service stub for your web service client.
You can find more information and instructions to create clients from some development environments on the following help page: How to Use the API You will also find explanations on the OpenXerox authentication system and some sample clients.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://esp.xerox.com/parse</Action>
</s:Header>
<s:Body>
<parse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://esp.xerox.com/">
<language>language1</language>
<options>options1</options>
<input>base64Binary Content</input>
</parse>
</s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://esp.xerox.com/parse</Action>
</s:Header>
<s:Body>
<parseResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://esp.xerox.com/">
<parseResult>parseResult1</parseResult>
</parseResponse>
</s:Body>
</s:Envelope>
The easiest request but limited to the size of the url. Mostly used when numbers of parameters are low and when parameters type are 'simple' (numbers, short string, ...)
https://services.open.xerox.com/RestOp/XIPParser/parse?language=text&options=text&input=BASE 64 BINARY
Mostly used when number of parameters a high or when parameters string can be long. Can also be used for binary type with Base 64 encoding (but prefer the form encoded method)
POST https://services.open.xerox.com/RestOp/XIPParser/parse
Content-Type: application/x-www-form-urlencoded
Content-Length: 47
language=text&options=text&input=BASE+64+BINARY
Mostly used when parameters contains a byte array to avoid base 64 encoding.
POST https://services.open.xerox.com/RestOp/XIPParser/parse
Content-Type: multipart/form-data; boundary="b4d0468c-2e6b-4df8-b5db-73d09066f0ed"
Content-Length: 461
--b4d0468c-2e6b-4df8-b5db-73d09066f0ed
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=language
text
--b4d0468c-2e6b-4df8-b5db-73d09066f0ed
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=options
text
--b4d0468c-2e6b-4df8-b5db-73d09066f0ed
Content-Disposition: form-data; name=input; filename=sampleFile.txt; filename*=utf-8''sampleFile.txt
--b4d0468c-2e6b-4df8-b5db-73d09066f0ed--
If you wan tto post request as json, you can specify each parameters using a JSON object. Binary type must be base 64 encoded.
POST https://services.open.xerox.com/RestOp/XIPParser/parse
Content-Type: application/json; charset=utf-8
Content-Length: 61
{"language":"text","options":"text","input":"BASE 64 BINARY"}
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://esp.xerox.com/parseToFile</Action>
</s:Header>
<s:Body>
<parseToFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://esp.xerox.com/">
<language>language1</language>
<options>options1</options>
<input>base64Binary Content</input>
</parseToFile>
</s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://esp.xerox.com/parseToFile</Action>
</s:Header>
<s:Body>
<parseToFileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://esp.xerox.com/">
<parseToFileResult>base64Binary Content</parseToFileResult>
</parseToFileResponse>
</s:Body>
</s:Envelope>
The easiest request but limited to the size of the url. Mostly used when numbers of parameters are low and when parameters type are 'simple' (numbers, short string, ...)
https://services.open.xerox.com/RestOp/XIPParser/parseToFile?language=text&options=text&input=BASE 64 BINARY
Mostly used when number of parameters a high or when parameters string can be long. Can also be used for binary type with Base 64 encoding (but prefer the form encoded method)
POST https://services.open.xerox.com/RestOp/XIPParser/parseToFile
Content-Type: application/x-www-form-urlencoded
Content-Length: 47
language=text&options=text&input=BASE+64+BINARY
Mostly used when parameters contains a byte array to avoid base 64 encoding.
POST https://services.open.xerox.com/RestOp/XIPParser/parseToFile
Content-Type: multipart/form-data; boundary="d61c8b85-7725-4cf9-95e4-d6eba673ed82"
Content-Length: 461
--d61c8b85-7725-4cf9-95e4-d6eba673ed82
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=language
text
--d61c8b85-7725-4cf9-95e4-d6eba673ed82
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=options
text
--d61c8b85-7725-4cf9-95e4-d6eba673ed82
Content-Disposition: form-data; name=input; filename=sampleFile.txt; filename*=utf-8''sampleFile.txt
--d61c8b85-7725-4cf9-95e4-d6eba673ed82--
If you wan tto post request as json, you can specify each parameters using a JSON object. Binary type must be base 64 encoded.
POST https://services.open.xerox.com/RestOp/XIPParser/parseToFile
Content-Type: application/json; charset=utf-8
Content-Length: 61
{"language":"text","options":"text","input":"BASE 64 BINARY"}
| Rate this service : |