ServiceV2
Click here for a complete list of operations.
MessageDeliveryV2
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/MessageDeliveryV2"
<?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>
<MessageDeliveryV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
<idtype>Smsid or Customerid</idtype>
<longid>
<long>long</long>
<long>long</long>
</longid>
</MessageDeliveryV2>
</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>
<MessageDeliveryV2Response xmlns="http://tempuri.org/">
<MessageDeliveryV2Result>
<ErrorCode>string</ErrorCode>
<nTotalPrice>double</nTotalPrice>
<packId>long</packId>
<smsdata>
<ReturnSmsStatus>
<nSmsPrice>double</nSmsPrice>
<Mobileno>string</Mobileno>
<Smsid>long</Smsid>
<Customerid>long</Customerid>
<oSmsStatus>InQ or SentToOp or Delivered or Not_Delivered or Black_List or ConfirmNeed or Canceled or UnKnow_Destenation or Accepted_Op or Not_Send_To_Operator or Repetition_Sms or Not_Accepted_Op or Unknow or ExpireTime</oSmsStatus>
<OpMobile>Hamrah_Aval or Irancell or Taliya or Rightel or Other</OpMobile>
<DeliverDatetime>dateTime</DeliverDatetime>
<SendtoOPDatetime>dateTime</SendtoOPDatetime>
<InsertDatetime>dateTime</InsertDatetime>
</ReturnSmsStatus>
<ReturnSmsStatus>
<nSmsPrice>double</nSmsPrice>
<Mobileno>string</Mobileno>
<Smsid>long</Smsid>
<Customerid>long</Customerid>
<oSmsStatus>InQ or SentToOp or Delivered or Not_Delivered or Black_List or ConfirmNeed or Canceled or UnKnow_Destenation or Accepted_Op or Not_Send_To_Operator or Repetition_Sms or Not_Accepted_Op or Unknow or ExpireTime</oSmsStatus>
<OpMobile>Hamrah_Aval or Irancell or Taliya or Rightel or Other</OpMobile>
<DeliverDatetime>dateTime</DeliverDatetime>
<SendtoOPDatetime>dateTime</SendtoOPDatetime>
<InsertDatetime>dateTime</InsertDatetime>
</ReturnSmsStatus>
</smsdata>
<nErrorCode>int</nErrorCode>
</MessageDeliveryV2Result>
</MessageDeliveryV2Response>
</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>
<MessageDeliveryV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
<idtype>Smsid or Customerid</idtype>
<longid>
<long>long</long>
<long>long</long>
</longid>
</MessageDeliveryV2>
</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>
<MessageDeliveryV2Response xmlns="http://tempuri.org/">
<MessageDeliveryV2Result>
<ErrorCode>string</ErrorCode>
<nTotalPrice>double</nTotalPrice>
<packId>long</packId>
<smsdata>
<ReturnSmsStatus>
<nSmsPrice>double</nSmsPrice>
<Mobileno>string</Mobileno>
<Smsid>long</Smsid>
<Customerid>long</Customerid>
<oSmsStatus>InQ or SentToOp or Delivered or Not_Delivered or Black_List or ConfirmNeed or Canceled or UnKnow_Destenation or Accepted_Op or Not_Send_To_Operator or Repetition_Sms or Not_Accepted_Op or Unknow or ExpireTime</oSmsStatus>
<OpMobile>Hamrah_Aval or Irancell or Taliya or Rightel or Other</OpMobile>
<DeliverDatetime>dateTime</DeliverDatetime>
<SendtoOPDatetime>dateTime</SendtoOPDatetime>
<InsertDatetime>dateTime</InsertDatetime>
</ReturnSmsStatus>
<ReturnSmsStatus>
<nSmsPrice>double</nSmsPrice>
<Mobileno>string</Mobileno>
<Smsid>long</Smsid>
<Customerid>long</Customerid>
<oSmsStatus>InQ or SentToOp or Delivered or Not_Delivered or Black_List or ConfirmNeed or Canceled or UnKnow_Destenation or Accepted_Op or Not_Send_To_Operator or Repetition_Sms or Not_Accepted_Op or Unknow or ExpireTime</oSmsStatus>
<OpMobile>Hamrah_Aval or Irancell or Taliya or Rightel or Other</OpMobile>
<DeliverDatetime>dateTime</DeliverDatetime>
<SendtoOPDatetime>dateTime</SendtoOPDatetime>
<InsertDatetime>dateTime</InsertDatetime>
</ReturnSmsStatus>
</smsdata>
<nErrorCode>int</nErrorCode>
</MessageDeliveryV2Result>
</MessageDeliveryV2Response>
</soap12:Body>
</soap12:Envelope>