ServiceV2
Click here for a complete list of operations.
GetuserInfoV2
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 /webservice/serviceV2.asmx HTTP/1.1
Host: mehrafraz.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetuserInfoV2"
<?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>
<GetuserInfoV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
</GetuserInfoV2>
</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>
<GetuserInfoV2Response xmlns="http://tempuri.org/">
<GetuserInfoV2Result>
<smsnumber>
<SMSNumber>
<smsnumber>string</smsnumber>
<smsnumbertype>Advertise or service or serviceShare or Unknown</smsnumbertype>
<smsnumberop>MAGFA or ADP or ASANAK or RAHYAB or OP5000 or OP50001 or OP50002 or OP50004 or Unknown</smsnumberop>
<Active>boolean</Active>
<OpGateWay>int</OpGateWay>
</SMSNumber>
<SMSNumber>
<smsnumber>string</smsnumber>
<smsnumbertype>Advertise or service or serviceShare or Unknown</smsnumbertype>
<smsnumberop>MAGFA or ADP or ASANAK or RAHYAB or OP5000 or OP50001 or OP50002 or OP50004 or Unknown</smsnumberop>
<Active>boolean</Active>
<OpGateWay>int</OpGateWay>
</SMSNumber>
</smsnumber>
<gatewayprice>
<GateWayPrice>
<gatewayName>string</gatewayName>
<PriceFarsi>double</PriceFarsi>
<PriceEnglish>double</PriceEnglish>
<OpGateWay>int</OpGateWay>
</GateWayPrice>
<GateWayPrice>
<gatewayName>string</gatewayName>
<PriceFarsi>double</PriceFarsi>
<PriceEnglish>double</PriceEnglish>
<OpGateWay>int</OpGateWay>
</GateWayPrice>
</gatewayprice>
<ChargeNoForSendSms>double</ChargeNoForSendSms>
<m_LastSendDate>dateTime</m_LastSendDate>
<ErrorCode>string</ErrorCode>
<Defaultsmsnumber>string</Defaultsmsnumber>
<CountSmsSent>long</CountSmsSent>
<CreditNet>double</CreditNet>
<DebitBalance>double</DebitBalance>
<AccessToAccount>boolean</AccessToAccount>
<nErrorCode>int</nErrorCode>
</GetuserInfoV2Result>
</GetuserInfoV2Response>
</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 /webservice/serviceV2.asmx HTTP/1.1
Host: mehrafraz.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>
<GetuserInfoV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
</GetuserInfoV2>
</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>
<GetuserInfoV2Response xmlns="http://tempuri.org/">
<GetuserInfoV2Result>
<smsnumber>
<SMSNumber>
<smsnumber>string</smsnumber>
<smsnumbertype>Advertise or service or serviceShare or Unknown</smsnumbertype>
<smsnumberop>MAGFA or ADP or ASANAK or RAHYAB or OP5000 or OP50001 or OP50002 or OP50004 or Unknown</smsnumberop>
<Active>boolean</Active>
<OpGateWay>int</OpGateWay>
</SMSNumber>
<SMSNumber>
<smsnumber>string</smsnumber>
<smsnumbertype>Advertise or service or serviceShare or Unknown</smsnumbertype>
<smsnumberop>MAGFA or ADP or ASANAK or RAHYAB or OP5000 or OP50001 or OP50002 or OP50004 or Unknown</smsnumberop>
<Active>boolean</Active>
<OpGateWay>int</OpGateWay>
</SMSNumber>
</smsnumber>
<gatewayprice>
<GateWayPrice>
<gatewayName>string</gatewayName>
<PriceFarsi>double</PriceFarsi>
<PriceEnglish>double</PriceEnglish>
<OpGateWay>int</OpGateWay>
</GateWayPrice>
<GateWayPrice>
<gatewayName>string</gatewayName>
<PriceFarsi>double</PriceFarsi>
<PriceEnglish>double</PriceEnglish>
<OpGateWay>int</OpGateWay>
</GateWayPrice>
</gatewayprice>
<ChargeNoForSendSms>double</ChargeNoForSendSms>
<m_LastSendDate>dateTime</m_LastSendDate>
<ErrorCode>string</ErrorCode>
<Defaultsmsnumber>string</Defaultsmsnumber>
<CountSmsSent>long</CountSmsSent>
<CreditNet>double</CreditNet>
<DebitBalance>double</DebitBalance>
<AccessToAccount>boolean</AccessToAccount>
<nErrorCode>int</nErrorCode>
</GetuserInfoV2Result>
</GetuserInfoV2Response>
</soap12:Body>
</soap12:Envelope>