ChargeService


Click here for a complete list of operations.

PinPurchase

این متد یک از سامانه خرید نموده و تحویل کاربر میدهد

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

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

Passwordکلمه عبور
PIDنوع اپراتور
Amountمبلغ پین درخواستی

قابل توجه نوع پین باید یکی از مقدار بازگشتی متد getPinAvailableList باشد

___________________________________________________

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

پارامتر خروجی شرح
statusکد نتیجه اجرای متد که در جدول زیر تفکیک شده است
Message

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

Resultنتیجه عمیلیات که به صورت جیسون میباشد
PanelAdsتبلیغات فروشگاه شما
MarketNameنام فروشگاه شما

___________________________________________________

خروجی شرح
0عملیات موفق و اپراتور معرفی شده است
1

نام کاربری و کلمه عبور را وارد نمائید

2نام کاربری وارد شده یافت نشد
3خطای سیستمی روی داده است

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.elkapos.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.toranjsoft.com/PinPurchase"

<?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>
    <PinPurchase xmlns="http://www.toranjsoft.com">
      <UserName>string</UserName>
      <Password>string</Password>
      <PID>int</PID>
      <Amount>long</Amount>
    </PinPurchase>
  </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>
    <PinPurchaseResponse xmlns="http://www.toranjsoft.com">
      <PinPurchaseResult>string</PinPurchaseResult>
    </PinPurchaseResponse>
  </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.elkapos.com
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>
    <PinPurchase xmlns="http://www.toranjsoft.com">
      <UserName>string</UserName>
      <Password>string</Password>
      <PID>int</PID>
      <Amount>long</Amount>
    </PinPurchase>
  </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>
    <PinPurchaseResponse xmlns="http://www.toranjsoft.com">
      <PinPurchaseResult>string</PinPurchaseResult>
    </PinPurchaseResponse>
  </soap12:Body>
</soap12:Envelope>