POST WEYIServer/Tool/Translate
As the host server, create corresponding Provider that is hosted in the remote server and return ProviderSessionToken for Relay calls
Request Information
URI Parameters
None.
Body Parameters
ParaWebServer_TranslationInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| TranslationInfo | ParaTranslationInfo |
None. |
|
| SecurityItem | ParaWebServerSecurity |
None. |
Request Formats
application/json, text/json
Sample:
{
"TranslationInfo": {
"FromLanguageId": 1,
"ToLanguageId": 2,
"Msg": "sample string 3"
},
"SecurityItem": {
"GlobalId": 1,
"AuthKeyFrom": "sample string 2",
"AuthKeyTo": "sample string 3"
}
}
application/xml, text/xml
Sample:
<ParaWebServer_TranslationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<SecurityItem>
<AuthKeyFrom>sample string 2</AuthKeyFrom>
<AuthKeyTo>sample string 3</AuthKeyTo>
<GlobalId>1</GlobalId>
</SecurityItem>
<TranslationInfo>
<FromLanguageId>1</FromLanguageId>
<Msg>sample string 3</Msg>
<ToLanguageId>2</ToLanguageId>
</TranslationInfo>
</ParaWebServer_TranslationInfo>
Response Information
Resource Description
ParaString| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Content": "sample string 1"
}
application/xml, text/xml
Sample:
<ParaString xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models"> <Content>sample string 1</Content> </ParaString>