๐ Home > ๐ฆ TaskService > ๐ TaskCompleteEx
TaskCompleteEx
Description
Report task completion. InformText - additional text for the message. If empty, no message is sent to the inspector. signature string: string.Format("{0};{1};{2}", task_id, wmid, Secret)
Method Signature
public Int32 TaskCompleteEx(
String ServiceName,
String Sign,
Int32 task_id,
String wmid,
String InformText,
Int32 lcid,
out String ErrorMsg
)
Parameters
ServiceName
- Type:
String - Direction: input
Sign
- Type:
String - Direction: input
task_id
- Type:
Int32 - Direction: input
wmid
- Type:
String - Direction: input
InformText
- Type:
String - Direction: input
- Description: additional text for the message. If empty, no message is sent to the inspector.
lcid
- Type:
Int32 - Direction: input
ErrorMsg
- Type:
String - Direction: output
Return Value
- Type:
Int32
Authentication
This method requires authentication signature.
Signature String Format
string.Format("{0};{1};{2}", task_id, wmid, 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>
<TaskCompleteEx xmlns="http://mentor.web.money/taskservice">
<ServiceName>ServiceName</ServiceName>
<Sign>base64signature</Sign>
<task_id>123</task_id>
<wmid>123456789012</wmid>
<InformText>string_value</InformText>
<lcid>123</lcid>
</TaskCompleteEx>
</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>
<TaskCompleteExResponse xmlns="http://tempuri.org/">
<TaskCompleteExResult>123</TaskCompleteExResult>
<ErrorMsg>string_value</ErrorMsg>
</TaskCompleteExResponse>
</soap:Body>
</soap:Envelope>
Code Examples
C# Example
var client = new TaskService();
String ServiceName = "sample string";
String Sign = "base64signature";
Int32 task_id = 123;
String wmid = "123456789012";
String InformText = "sample string";
Int32 lcid = 123;
String ErrorMsg;
var result = client.TaskCompleteEx(ServiceName, Sign, task_id, wmid, InformText, lcid, out ErrorMsg);
Python Example (using zeep)
from zeep import Client
client = Client('https://your-service.com/TaskService.asmx?WSDL')
# Prepare parameters
ServiceName = 'sample string'
Sign = 'base64signature'
task_id = 123
wmid = '123456789012'
InformText = 'sample string'
lcid = 123
result = client.service.TaskCompleteEx(ServiceName, Sign, task_id, wmid, InformText, lcid)
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>
<TaskCompleteEx xmlns="http://mentor.web.money/taskservice">
<ServiceName>${ServiceName}</ServiceName>
<Sign>${Sign}</Sign>
<task_id>${task_id}</task_id>
<wmid>${wmid}</wmid>
<InformText>${InformText}</InformText>
<lcid>${lcid}</lcid>
</TaskCompleteEx>
</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/TaskCompleteEx"'
}
}
);
console.log(response.data);
}
call().catch(console.error);
Related Topics
- Service Overview - All TaskService methods
Navigation
โฌ๏ธ Back to TaskService | ๐ Documentation Home | ๐ป Code Examples