ChargeService


Click here for a complete list of operations.

BulkRecharge

این متد برای ارسال شارژ گروهی استفاده میشود

پارامتر ورودی شرح 
Username

نام کاربری وب سرویس

Passwordکلمه عبور
BulkRequestدر قالب جیسون لیست درخواست ارسال گروهی شارژ با بسته اینترنتی یا هردو

___________________________________________________

ورودی متد با فرمت جیسون به شرح زیر می  باشد

پارامتر ورودی شرح
RowIDشماره ردیف که باید از 1 سروع شود
PID

کد اپراتور به ترتیب 1 ایرانسل ،2 همراه اول ،3 رایتل میباشد

Amount

مبلغ شارژ یا بسته

TelNumber

شماره تلفن

ServiceId

نوع سرویس را مشخص میکند که به ترتیب 1 شارژ مستقیم و 5 برای ارسال بسته استفاده میشود

ServiceParam

مشحض کننده پارامتر سرویس میباشد که اگر اپراتور ایرانسل باشد 4 به معنی شگفت انگیز . برای شارژ معمولی عدد صفر، برای اپراتور رایتل 3 به معنی شور انگیز میباشد و برای ارسال بسته کد بسته در این فسمت برای تمامی اپراتورها قرار میگیرد

ExtOrderID

کد منحصر بفرد که از سمت شما برای سامانه ارسال میشود  این کد برای پیگیری ها مورد استفاده قرار میگیرد

___________________________________________________

نتیجه بعد از فراخوانی متد شامل جدول زیر میباشد

نامشرح
ResultCodeکد نتیجه
BulkID

کد پیگیری شارژ گروهی

BulkRequestCountتعداد دریافتی شارژ های گروهی

___________________________________________________

در نظر داشته باشید شما در هر بار ارسال شارژ گروهی فقط میتوانید به تعداد 200 شارژ یک جا ارسال نمایید


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/BulkRecharge"

<?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>
    <BulkRecharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <BulkRequest>string</BulkRequest>
    </BulkRecharge>
  </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>
    <BulkRechargeResponse xmlns="http://www.toranjsoft.com">
      <BulkRechargeResult>string</BulkRechargeResult>
    </BulkRechargeResponse>
  </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>
    <BulkRecharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <BulkRequest>string</BulkRequest>
    </BulkRecharge>
  </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>
    <BulkRechargeResponse xmlns="http://www.toranjsoft.com">
      <BulkRechargeResult>string</BulkRechargeResult>
    </BulkRechargeResponse>
  </soap12:Body>
</soap12:Envelope>