ChargeService


Click here for a complete list of operations.

RechargeMNP

برای ارسال مستقیم شارژ به شماره های ترابرد شده از این متد نمایید

پارامتر ورودی شرح 
Usernameنام کاربری وب سرویس
Passwordرمز ورود
MobileNumberشماره همراه
Provider

کد اپراتور

1- ایرانسل

2-همراه اول

3- رایتل

Amountمبلغ شارژ
Service

سرویس مورد نظر

1- شارژ اعتباری

2- شارژ دایمی

4- وایمکس

5- بسته اینترنتی

Params

کد بسته اینترنتی و یا

برای ارسال شگفت انگیز در ایرانسل 4 و در رایتل 3 و در غیر اینصورت 0 ارسال گردد

UserOrderID

کد سفارش باید یک مقدار منحصر بفرد ارسال گردد

ShopName

نام فروشگاه

خروجی متد مطابق لیست شرح داده شده در ابتدای صفحه  می  باشد
 

در نظر داشته باشید شارژ شورانگیز رایتل برای مبالغ 20000 و50000 و100000 و200000و500000و1000000 ریالی در نظر گرفته شده است و سایر مبالغ معتبر نمیباشد و با خطا مواجه خواهد شد


Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.toshanet.ir
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.toranjsoft.com/RechargeMNP"

<?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>
    <RechargeMNP xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <MobileNumber>string</MobileNumber>
      <Provider>string</Provider>
      <Amount>int</Amount>
      <Service>int</Service>
      <Params>string</Params>
      <UserOrderID>string</UserOrderID>
      <ShopName>string</ShopName>
    </RechargeMNP>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <RechargeMNPResponse xmlns="http://www.toranjsoft.com">
      <RechargeMNPResult>string</RechargeMNPResult>
    </RechargeMNPResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.toshanet.ir
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RechargeMNP xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <MobileNumber>string</MobileNumber>
      <Provider>string</Provider>
      <Amount>int</Amount>
      <Service>int</Service>
      <Params>string</Params>
      <UserOrderID>string</UserOrderID>
      <ShopName>string</ShopName>
    </RechargeMNP>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RechargeMNPResponse xmlns="http://www.toranjsoft.com">
      <RechargeMNPResult>string</RechargeMNPResult>
    </RechargeMNPResponse>
  </soap12:Body>
</soap12:Envelope>