๐Ÿ  Home > ๐Ÿ“ฆ TaskService > ๐Ÿ“‹ ErrorMessages

ErrorMessages

Description

decode the error code. lang - ru-RU, en-US

Method Signature

public String ErrorMessages(
    Int32 code,
    String lang
)

Parameters

code

  • Type: Int32
  • Direction: input

lang

  • Type: String
  • Direction: input
  • Description: ru-RU, en-US

Return Value

  • Type: String

SOAP Request Example

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ErrorMessages xmlns="http://mentor.web.money/taskservice">
      <code>123</code>
      <lang>string_value</lang>
    </ErrorMessages>
  </soap:Body>
</soap:Envelope>

SOAP Response Example

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ErrorMessagesResponse xmlns="http://tempuri.org/">
      <ErrorMessagesResult>string_value</ErrorMessagesResult>
    </ErrorMessagesResponse>
  </soap:Body>
</soap:Envelope>

Code Examples

C# Example

var client = new TaskService();
Int32 code = 123;
String lang = "sample string";

var result = client.ErrorMessages(code, lang);

Python Example (using zeep)

from zeep import Client

client = Client('https://your-service.com/TaskService.asmx?WSDL')

# Prepare parameters
code = 123
lang = 'sample string'

result = client.service.ErrorMessages(code, lang)
print(result)

JavaScript Example (using axios)

const axios = require('axios');

const soapRequest = `
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ErrorMessages xmlns="http://mentor.web.money/taskservice">
      <code>${code}</code>
      <lang>${lang}</lang>
    </ErrorMessages>
  </soap:Body>
</soap:Envelope>`;

async function call() {
  const response = await axios.post(
  'https://mentor.web.moneyTaskService.asmx',
  soapRequest,
  {
    headers: {
      'Content-Type': 'text/xml; charset=utf-8',
      'SOAPAction': '"http://mentor.web.money/taskservice/ErrorMessages"'
    }
  }
);

  console.log(response.data);
}
call().catch(console.error);

โฌ†๏ธ Back to TaskService | ๐Ÿ  Documentation Home | ๐Ÿ’ป Code Examples

results matching ""

    No results matching ""