๐ Home > ๐ฆ TaskService > ๐ TaskCorrList
TaskCorrList
Description
tasks with a correspondent (all) signature string: string.Format("{0};{1};{2}", WMID, CorrWMID, Secret)
Method Signature
public Int32 TaskCorrList(
String ServiceName,
String Sign,
String WMID,
String CorrWMID,
out CTask[] tasks
)
Parameters
ServiceName
- Type:
String - Direction: input
Sign
- Type:
String - Direction: input
WMID
- Type:
String - Direction: input
CorrWMID
- Type:
String - Direction: input
tasks
- Type:
CTask[] - Direction: output
- Details: See CTask type definition
Return Value
- Type:
Int32
Authentication
This method requires authentication signature.
Signature String Format
string.Format("{0};{1};{2}", WMID, CorrWMID, Secret)
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>
<TaskCorrList xmlns="http://mentor.web.money/taskservice">
<ServiceName>ServiceName</ServiceName>
<Sign>base64signature</Sign>
<WMID>123456789012</WMID>
<CorrWMID>123456789012</CorrWMID>
</TaskCorrList>
</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>
<TaskCorrListResponse xmlns="http://tempuri.org/">
<TaskCorrListResult>123</TaskCorrListResult>
<tasks><!-- CTask object --></tasks>
</TaskCorrListResponse>
</soap:Body>
</soap:Envelope>
Code Examples
C# Example
var client = new TaskService();
String ServiceName = "sample string";
String Sign = "base64signature";
String WMID = "123456789012";
String CorrWMID = "123456789012";
CTask[] tasks;
var result = client.TaskCorrList(ServiceName, Sign, WMID, CorrWMID, out tasks);
Python Example (using zeep)
from zeep import Client
client = Client('https://your-service.com/TaskService.asmx?WSDL')
# Prepare parameters
ServiceName = 'sample string'
Sign = 'base64signature'
WMID = '123456789012'
CorrWMID = '123456789012'
result = client.service.TaskCorrList(ServiceName, Sign, WMID, CorrWMID)
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>
<TaskCorrList xmlns="http://mentor.web.money/taskservice">
<ServiceName>${ServiceName}</ServiceName>
<Sign>${Sign}</Sign>
<WMID>${WMID}</WMID>
<CorrWMID>${CorrWMID}</CorrWMID>
</TaskCorrList>
</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/TaskCorrList"'
}
}
);
console.log(response.data);
}
call().catch(console.error);
Related Topics
- Service Overview - All TaskService methods
Navigation
โฌ๏ธ Back to TaskService | ๐ Documentation Home | ๐ป Code Examples