ChargeService
Click here for a complete list of operations.
GetLastTransactions
این متد لیست حداکثر 5 تراکنش آخر کاربر را بر میگرداند
توجه داشته باشید حداکثر 5 رکورد آخر و حداقل یک رکورد را میتوانید درخواست نمایید در صورتی که پارامتری ارسال نشود 5 رکورد آخر نمایش داده خواهد شد
| پارامتر ورودی | شرح |
| Username | نام کاربری وب سرویس |
| Password | کلمه عبور |
| Phonenumber | شماره تلفن استعلامی |
| Status | وضعیت : 0 موفق | 1 ناموفق |2 هردو |
| RowCount | حداکثر 5 رکورد | تعداد رکورد درخواستی |
خروجی متد یک لیست با فرمت جیسون به شرح زیر می باشد
| پارامتر خروجی | شرح |
| Status | وضعیت درخواست |
| Result | لیست درخواست از تراکنش ها |
در صورتی که مقدار وضعیت درخواست برابر صفر باشد عملیات با موفقیت انجام گرفته و لیست درخواستی مقدار دارد در غیر اینصورت خطائی صورت گرفته لیست خطا به شرح زیر میباشد
| Status | شرح |
| 1 | نام کاربری یا کلمه عبور معتبر نمی باشد |
| 10 | تراکنش با خطا مواجه گردید |
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/GetLastTransactions"
<?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>
<GetLastTransactions xmlns="http://www.toranjsoft.com">
<Username>string</Username>
<Password>string</Password>
<Phonenumber>string</Phonenumber>
<Status>int</Status>
<RowCount>int</RowCount>
</GetLastTransactions>
</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>
<GetLastTransactionsResponse xmlns="http://www.toranjsoft.com">
<GetLastTransactionsResult>string</GetLastTransactionsResult>
</GetLastTransactionsResponse>
</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>
<GetLastTransactions xmlns="http://www.toranjsoft.com">
<Username>string</Username>
<Password>string</Password>
<Phonenumber>string</Phonenumber>
<Status>int</Status>
<RowCount>int</RowCount>
</GetLastTransactions>
</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>
<GetLastTransactionsResponse xmlns="http://www.toranjsoft.com">
<GetLastTransactionsResult>string</GetLastTransactionsResult>
</GetLastTransactionsResponse>
</soap12:Body>
</soap12:Envelope>