>  >  > API Docs 

Language Identifier

'What language is this ?'. The Language Identifier service will tell you what language the document is written in.
3.64000
(317)

How To Use the API

This page describes how to use the SOAP API of this web service. It contains the link to download the WSDL of this service.

The address of the service metadata (Wsdl) is:
https://services.open.xerox.com/Wsdl.svc/LanguageIdentifier
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.

Service Operations

ListOfLoadedLanguages


open.xerox.com.esp.applications.ArrayOfString ListOfLoadedLanguages()
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/ListOfLoadedLanguages</Action>
  </s:Header>
  <s:Body>
    <ListOfLoadedLanguages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications" />
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/ListOfLoadedLanguages</Action>
  </s:Header>
  <s:Body>
    <ListOfLoadedLanguagesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <ListOfLoadedLanguagesResult xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </ListOfLoadedLanguagesResult>
    </ListOfLoadedLanguagesResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/ListOfLoadedLanguages</Action>
  </s:Header>
  <s:Body>
    <ListOfLoadedLanguages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications" />
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/ListOfLoadedLanguages</Action>
  </s:Header>
  <s:Body>
    <ListOfLoadedLanguagesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <ListOfLoadedLanguagesResult xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </ListOfLoadedLanguagesResult>
    </ListOfLoadedLanguagesResponse>
  </s:Body>
</s:Envelope>
        

GET Request :

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/bus/op/LanguageIdentifier/ListOfLoadedLanguages
        
POST Request (url encoded) :

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/bus/op/LanguageIdentifier/ListOfLoadedLanguages
Content-Type: application/x-www-form-urlencoded
Content-Length: 0


        
POST Request (multipart form data encoded) :

Mostly used when parameters contains a byte array to avoid base 64 encoding.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/ListOfLoadedLanguages
Content-Type: multipart/form-data; boundary="eed6adf1-8afa-4d94-8470-3c3bfe81fdc3"
Content-Length: 84

--eed6adf1-8afa-4d94-8470-3c3bfe81fdc3

--eed6adf1-8afa-4d94-8470-3c3bfe81fdc3--

        

Each Rest method call return result as JSON, if you want a XML format as output, you need to add 'oxformat=xml' in the query string url.
More info can be found in the help page here.
JSON Request :

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/bus/op/LanguageIdentifier/ListOfLoadedLanguages
Content-Type: application/json; charset=utf-8
Content-Length: 2

{}
        

Result

GetSimpleLanguage


string GetSimpleLanguage(byte[] document, string encodingName)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetSimpleLanguage</Action>
  </s:Header>
  <s:Body>
    <GetSimpleLanguage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <encoding xsi:nil="true">encoding1</encoding>
    </GetSimpleLanguage>
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetSimpleLanguage</Action>
  </s:Header>
  <s:Body>
    <GetSimpleLanguageResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetSimpleLanguageResult xsi:nil="true">GetSimpleLanguageResult1</GetSimpleLanguageResult>
    </GetSimpleLanguageResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetSimpleLanguage</Action>
  </s:Header>
  <s:Body>
    <GetSimpleLanguage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <encoding xsi:nil="true">encoding1</encoding>
    </GetSimpleLanguage>
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetSimpleLanguage</Action>
  </s:Header>
  <s:Body>
    <GetSimpleLanguageResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetSimpleLanguageResult xsi:nil="true">GetSimpleLanguageResult1</GetSimpleLanguageResult>
    </GetSimpleLanguageResponse>
  </s:Body>
</s:Envelope>
        

GET Request :

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/bus/op/LanguageIdentifier/GetSimpleLanguage?document=BASE 64 BINARY&encodingName=text
        
POST Request (url encoded) :

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/bus/op/LanguageIdentifier/GetSimpleLanguage
Content-Type: application/x-www-form-urlencoded
Content-Length: 41

document=BASE+64+BINARY&encodingName=text
        
POST Request (multipart form data encoded) :

Mostly used when parameters contains a byte array to avoid base 64 encoding.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/GetSimpleLanguage
Content-Type: multipart/form-data; boundary="1933f5ed-61be-44ee-9b05-c19b3d0bcf77"
Content-Length: 333

--1933f5ed-61be-44ee-9b05-c19b3d0bcf77
Content-Disposition: form-data; name=document; filename=sampleFile.txt; filename*=utf-8''sampleFile.txt


--1933f5ed-61be-44ee-9b05-c19b3d0bcf77
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=encodingName

text
--1933f5ed-61be-44ee-9b05-c19b3d0bcf77--

        

Each Rest method call return result as JSON, if you want a XML format as output, you need to add 'oxformat=xml' in the query string url.
More info can be found in the help page here.
JSON Request :

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/bus/op/LanguageIdentifier/GetSimpleLanguage
Content-Type: application/json; charset=utf-8
Content-Length: 51

{"document":"BASE 64 BINARY","encodingName":"text"}
        

Result

GetLanguage


open.xerox.com.esp.applications.Language GetLanguage(byte[] document, open.xerox.com.esp.applications.ArrayOfString possibleLanguages, string encodingName)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetLanguage</Action>
  </s:Header>
  <s:Body>
    <GetLanguage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <possibleLanguages xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </possibleLanguages>
      <encodingName xsi:nil="true">encodingName1</encodingName>
    </GetLanguage>
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetLanguage</Action>
  </s:Header>
  <s:Body>
    <GetLanguageResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageResult xsi:nil="true">
        <Code xsi:nil="true">Code1</Code>
        <ConfidenceLevel>1</ConfidenceLevel>
        <LanguageName xsi:nil="true">LanguageName1</LanguageName>
      </GetLanguageResult>
    </GetLanguageResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguage</Action>
  </s:Header>
  <s:Body>
    <GetLanguage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <possibleLanguages xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </possibleLanguages>
      <encodingName xsi:nil="true">encodingName1</encodingName>
    </GetLanguage>
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguage</Action>
  </s:Header>
  <s:Body>
    <GetLanguageResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageResult xsi:nil="true">
        <Code xsi:nil="true">Code1</Code>
        <ConfidenceLevel>1</ConfidenceLevel>
        <LanguageName xsi:nil="true">LanguageName1</LanguageName>
      </GetLanguageResult>
    </GetLanguageResponse>
  </s:Body>
</s:Envelope>
        

You can use the interface below to idenitfy the language of an uploaded document, URL or text string.

Select a file from Open Xerox Repository:
Local file path:
URL:
Please enter a text:

Result

GetLanguages


open.xerox.com.esp.applications.Language[] GetLanguages(byte[] document, open.xerox.com.esp.applications.ArrayOfString possibleLanguages, string encodingName)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetLanguages</Action>
  </s:Header>
  <s:Body>
    <GetLanguages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <possibleLanguages xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </possibleLanguages>
      <encodingName xsi:nil="true">encodingName1</encodingName>
    </GetLanguages>
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetLanguages</Action>
  </s:Header>
  <s:Body>
    <GetLanguagesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguagesResult xsi:nil="true">
        <Language xsi:nil="true">
          <Code xsi:nil="true">Code1</Code>
          <ConfidenceLevel>1</ConfidenceLevel>
          <LanguageName xsi:nil="true">LanguageName1</LanguageName>
        </Language>
        <Language>
          <Code>Code2</Code>
          <ConfidenceLevel>-3.40282347E+38</ConfidenceLevel>
          <LanguageName>LanguageName2</LanguageName>
        </Language>
        <Language xsi:nil="true">
          <Code xsi:nil="true">Code3</Code>
          <ConfidenceLevel>3.40282347E+38</ConfidenceLevel>
          <LanguageName xsi:nil="true">LanguageName3</LanguageName>
        </Language>
      </GetLanguagesResult>
    </GetLanguagesResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguages</Action>
  </s:Header>
  <s:Body>
    <GetLanguages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">base64Binary Content</document>
      <possibleLanguages xsi:nil="true">
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string1</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string2</string>
        <string xsi:nil="true" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">string3</string>
      </possibleLanguages>
      <encodingName xsi:nil="true">encodingName1</encodingName>
    </GetLanguages>
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguages</Action>
  </s:Header>
  <s:Body>
    <GetLanguagesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguagesResult xsi:nil="true">
        <Language xsi:nil="true">
          <Code xsi:nil="true">Code1</Code>
          <ConfidenceLevel>1</ConfidenceLevel>
          <LanguageName xsi:nil="true">LanguageName1</LanguageName>
        </Language>
        <Language>
          <Code>Code2</Code>
          <ConfidenceLevel>-3.40282347E+38</ConfidenceLevel>
          <LanguageName>LanguageName2</LanguageName>
        </Language>
        <Language xsi:nil="true">
          <Code xsi:nil="true">Code3</Code>
          <ConfidenceLevel>3.40282347E+38</ConfidenceLevel>
          <LanguageName xsi:nil="true">LanguageName3</LanguageName>
        </Language>
      </GetLanguagesResult>
    </GetLanguagesResponse>
  </s:Body>
</s:Envelope>
        

Result

GetLanguageForString


string GetLanguageForString(string document)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetLanguageForString</Action>
  </s:Header>
  <s:Body>
    <GetLanguageForString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">document1</document>
    </GetLanguageForString>
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetLanguageForString</Action>
  </s:Header>
  <s:Body>
    <GetLanguageForStringResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageForStringResult xsi:nil="true">GetLanguageForStringResult1</GetLanguageForStringResult>
    </GetLanguageForStringResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguageForString</Action>
  </s:Header>
  <s:Body>
    <GetLanguageForString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <document xsi:nil="true">document1</document>
    </GetLanguageForString>
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguageForString</Action>
  </s:Header>
  <s:Body>
    <GetLanguageForStringResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageForStringResult xsi:nil="true">GetLanguageForStringResult1</GetLanguageForStringResult>
    </GetLanguageForStringResponse>
  </s:Body>
</s:Envelope>
        

GET Request :

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/bus/op/LanguageIdentifier/GetLanguageForString?document=text
        
POST Request (url encoded) :

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/bus/op/LanguageIdentifier/GetLanguageForString
Content-Type: application/x-www-form-urlencoded
Content-Length: 13

document=text
        
POST Request (multipart form data encoded) :

Mostly used when parameters contains a byte array to avoid base 64 encoding.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/GetLanguageForString
Content-Type: multipart/form-data; boundary="c0bdf2d9-5cb0-4d08-b800-82ce89ff24d8"
Content-Length: 178

--c0bdf2d9-5cb0-4d08-b800-82ce89ff24d8
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=document

text
--c0bdf2d9-5cb0-4d08-b800-82ce89ff24d8--

        

Each Rest method call return result as JSON, if you want a XML format as output, you need to add 'oxformat=xml' in the query string url.
More info can be found in the help page here.
JSON Request :

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/bus/op/LanguageIdentifier/GetLanguageForString
Content-Type: application/json; charset=utf-8
Content-Length: 19

{"document":"text"}
        

Copy and paste the text you want to identify below. The service will automatically identify it. If you would like to identify the text of an entire document, you can upload it using our advanced interface.

Tell us in 30s what you think of the service!

Result

GetLanguageFromBinary


open.xerox.com.esp.applications.Language GetLanguageFromBinary(byte[] data, string data_ContentType)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetLanguageFromBinary</Action>
  </s:Header>
  <s:Body>
    <GetLanguageFromBinary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <data xsi:nil="true">base64Binary Content</data>
      <data_ContentType xsi:nil="true">data_ContentType1</data_ContentType>
    </GetLanguageFromBinary>
  </s:Body>
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetLanguageFromBinary</Action>
  </s:Header>
  <s:Body>
    <GetLanguageFromBinaryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageFromBinaryResult xsi:nil="true">
        <Code xsi:nil="true">Code1</Code>
        <ConfidenceLevel>1</ConfidenceLevel>
        <LanguageName xsi:nil="true">LanguageName1</LanguageName>
      </GetLanguageFromBinaryResult>
    </GetLanguageFromBinaryResponse>
  </s:Body>
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguageFromBinary</Action>
  </s:Header>
  <s:Body>
    <GetLanguageFromBinary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <data xsi:nil="true">base64Binary Content</data>
      <data_ContentType xsi:nil="true">data_ContentType1</data_ContentType>
    </GetLanguageFromBinary>
  </s:Body>
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguageFromBinary</Action>
  </s:Header>
  <s:Body>
    <GetLanguageFromBinaryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://open.xerox.com/esp/applications">
      <GetLanguageFromBinaryResult xsi:nil="true">
        <Code xsi:nil="true">Code1</Code>
        <ConfidenceLevel>1</ConfidenceLevel>
        <LanguageName xsi:nil="true">LanguageName1</LanguageName>
      </GetLanguageFromBinaryResult>
    </GetLanguageFromBinaryResponse>
  </s:Body>
</s:Envelope>
        

GET Request :

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/bus/op/LanguageIdentifier/GetLanguageFromBinary?data=BASE 64 BINARY
        
POST Request (direct) :

When the operation contain only one byte array parameter, you can directly do a post request with the binary content.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/GetLanguageFromBinary
Content-Type: application/data
Content-Length: 14

BINARY CONTENT
        
POST Request (url encoded) :

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/bus/op/LanguageIdentifier/GetLanguageFromBinary
Content-Type: application/x-www-form-urlencoded
Content-Length: 19

data=BASE+64+BINARY
        
POST Request (multipart form data encoded) :

Mostly used when parameters contains a byte array to avoid base 64 encoding.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/GetLanguageFromBinary
Content-Type: multipart/form-data; boundary="bce39040-2f95-43e8-9d59-25bed5c05f2c"
Content-Length: 189

--bce39040-2f95-43e8-9d59-25bed5c05f2c
Content-Disposition: form-data; name=data; filename=sampleFile.txt; filename*=utf-8''sampleFile.txt


--bce39040-2f95-43e8-9d59-25bed5c05f2c--

        

Each Rest method call return result as JSON, if you want a XML format as output, you need to add 'oxformat=xml' in the query string url.
More info can be found in the help page here.
JSON Request :

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/bus/op/LanguageIdentifier/GetLanguageFromBinary
Content-Type: application/json; charset=utf-8
Content-Length: 25

{"data":"BASE 64 BINARY"}
        

Chose the binary document to identify the language.

It support various format like :

  • Office Open Xml (.docx, .pptx, .xlsx)
  • Open Document Format
  • Html page (.html, .htm)
  • Acrobat Pdf document (.pdf)
  • and others (rtf, latex, eml)
Select a file from Open Xerox Repository:
Local file path:
URL:

Result

GetLanguagesForString


open.xerox.com.esp.applications.Language[] GetLanguagesForString(string document)
Soap 1.1 Request :
<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://open.xerox.com/esp/applications/GetLanguagesForString</Action>
  </s:Header>
  <s:Body />
</s:Envelope>
        
Soap 1.1 Response :
<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://open.xerox.com/esp/applications/GetLanguagesForString</Action>
  </s:Header>
  <s:Body />
</s:Envelope>
        

Soap 1.2 Request :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguagesForString</Action>
  </s:Header>
  <s:Body />
</s:Envelope>
        
Soap 1.2 Response :
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://open.xerox.com/esp/applications/GetLanguagesForString</Action>
  </s:Header>
  <s:Body />
</s:Envelope>
        

GET Request :

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/bus/op/LanguageIdentifier/GetLanguagesForString?document=text
        
POST Request (url encoded) :

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/bus/op/LanguageIdentifier/GetLanguagesForString
Content-Type: application/x-www-form-urlencoded
Content-Length: 13

document=text
        
POST Request (multipart form data encoded) :

Mostly used when parameters contains a byte array to avoid base 64 encoding.

POST https://services.open.xerox.com/bus/op/LanguageIdentifier/GetLanguagesForString
Content-Type: multipart/form-data; boundary="79120084-9fa3-4ba7-beaa-54abd6f85f91"
Content-Length: 178

--79120084-9fa3-4ba7-beaa-54abd6f85f91
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=document

text
--79120084-9fa3-4ba7-beaa-54abd6f85f91--

        

Each Rest method call return result as JSON, if you want a XML format as output, you need to add 'oxformat=xml' in the query string url.
More info can be found in the help page here.
JSON Request :

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/bus/op/LanguageIdentifier/GetLanguagesForString
Content-Type: application/json; charset=utf-8
Content-Length: 19

{"document":"text"}
        

Result

Comments

Rate this service :
User Name:
Enter the 2 words: Get a new challenge Get an audio challenge Get a visual challenge Help