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

TrustDel

Description

removal of previously set up trust Purse: the client's purse WMID: the client's wmid signature string: string.Format("{0};{1};{2}", Purse, WMID, Secret)

Method Signature

public Int32 TrustDel(
    String ServiceName,
    String Sign,
    String Purse,
    String WMID
)

Parameters

ServiceName

  • Type: String
  • Direction: input

Sign

  • Type: String
  • Direction: input

Purse

  • Type: String
  • Direction: input

WMID

  • Type: String
  • Direction: input

Return Value

  • Type: Int32

Authentication

This method requires authentication signature.

Signature String Format

string.Format("{0};{1};{2}", Purse, 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>
    <TrustDel xmlns="http://mentor.web.money/taskservice">
      <ServiceName>ServiceName</ServiceName>
      <Sign>base64signature</Sign>
      <Purse>R000000000000</Purse>
      <WMID>123456789012</WMID>
    </TrustDel>
  </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>
    <TrustDelResponse xmlns="http://tempuri.org/">
      <TrustDelResult>123</TrustDelResult>
    </TrustDelResponse>
  </soap:Body>
</soap:Envelope>

Code Examples

C# Example

var client = new TaskService();
String ServiceName = "sample string";
String Sign = "base64signature";
String Purse = "R000000000000";
String WMID = "123456789012";

var result = client.TrustDel(ServiceName, Sign, Purse, WMID);

Python Example (using zeep)

from zeep import Client

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

# Prepare parameters
ServiceName = 'sample string'
Sign = 'base64signature'
Purse = 'sample string'
WMID = '123456789012'

result = client.service.TrustDel(ServiceName, Sign, Purse, WMID)
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>
    <TrustDel xmlns="http://mentor.web.money/taskservice">
      <ServiceName>${ServiceName}</ServiceName>
      <Sign>${Sign}</Sign>
      <Purse>${Purse}</Purse>
      <WMID>${WMID}</WMID>
    </TrustDel>
  </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/TrustDel"'
    }
  }
);

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

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

results matching ""

    No results matching ""