๐ Home > ๐ฆ TaskService > ๐ PursesTrustList
PursesTrustList
Description
list of trusted purses (where possible, to make transfers and view their history) to set up trust send to https://security.webmoney.com/asp/settrust.asp?masterwmid=554964038850&inv=0&trans=1&transhist=1&purse=1&url=_where_to_return signature string: string.Format("{0};{1}", sWMID, Secret)
Method Signature
public Int32 PursesTrustList(
String ServiceName,
String Sign,
String sWMID,
out TrustPurseInfo[] Purses
)
Parameters
ServiceName
- Type:
String - Direction: input
Sign
- Type:
String - Direction: input
sWMID
- Type:
String - Direction: input
Purses
- Type:
TrustPurseInfo[] - Direction: output
- Details: See TrustPurseInfo type definition
Return Value
- Type:
Int32
Authentication
This method requires authentication signature.
Signature String Format
string.Format("{0};{1}", sWMID, 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>
<PursesTrustList xmlns="http://mentor.web.money/taskservice">
<ServiceName>ServiceName</ServiceName>
<Sign>base64signature</Sign>
<sWMID>123456789012</sWMID>
</PursesTrustList>
</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>
<PursesTrustListResponse xmlns="http://tempuri.org/">
<PursesTrustListResult>123</PursesTrustListResult>
<Purses><!-- TrustPurseInfo object --></Purses>
</PursesTrustListResponse>
</soap:Body>
</soap:Envelope>
Code Examples
C# Example
var client = new TaskService();
String ServiceName = "sample string";
String Sign = "base64signature";
String sWMID = "123456789012";
TrustPurseInfo[] Purses;
var result = client.PursesTrustList(ServiceName, Sign, sWMID, out Purses);
Python Example (using zeep)
from zeep import Client
client = Client('https://your-service.com/TaskService.asmx?WSDL')
# Prepare parameters
ServiceName = 'sample string'
Sign = 'base64signature'
sWMID = '123456789012'
result = client.service.PursesTrustList(ServiceName, Sign, sWMID)
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>
<PursesTrustList xmlns="http://mentor.web.money/taskservice">
<ServiceName>${ServiceName}</ServiceName>
<Sign>${Sign}</Sign>
<sWMID>${sWMID}</sWMID>
</PursesTrustList>
</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/PursesTrustList"'
}
}
);
console.log(response.data);
}
call().catch(console.error);
Related Topics
- Service Overview - All TaskService methods
Navigation
โฌ๏ธ Back to TaskService | ๐ Documentation Home | ๐ป Code Examples