ServiceV2
Click here for a complete list of operations.
SendSmsV2
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.ir
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SendSmsV2"
<?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>
<SendSmsV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
<aBatchSms>
<BodySMS>string</BodySMS>
<FromNumber>string</FromNumber>
<m_SchedulDate>dateTime</m_SchedulDate>
<ClassMessage>int</ClassMessage>
<TypeUnicodemessage>int</TypeUnicodemessage>
<GetId>long</GetId>
<nSpeedsms>int</nSpeedsms>
<nPeriodmin>int</nPeriodmin>
<cstarttime />
<cEndTime />
<aMobileData>
<MobileData>
<Mobileno>string</Mobileno>
<Customerid>long</Customerid>
</MobileData>
<MobileData>
<Mobileno>string</Mobileno>
<Customerid>long</Customerid>
</MobileData>
</aMobileData>
<lCheckFeeSms>boolean</lCheckFeeSms>
</aBatchSms>
</SendSmsV2>
</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>
<SendSmsV2Response xmlns="http://tempuri.org/">
<SendSmsV2Result>
<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>
</SendSmsV2Result>
</SendSmsV2Response>
</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.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>
<SendSmsV2 xmlns="http://tempuri.org/">
<aCredential>
<Username>string</Username>
<PasswordOrApiKey>string</PasswordOrApiKey>
<Domainname>string</Domainname>
<ErrorCode>string</ErrorCode>
</aCredential>
<aBatchSms>
<BodySMS>string</BodySMS>
<FromNumber>string</FromNumber>
<m_SchedulDate>dateTime</m_SchedulDate>
<ClassMessage>int</ClassMessage>
<TypeUnicodemessage>int</TypeUnicodemessage>
<GetId>long</GetId>
<nSpeedsms>int</nSpeedsms>
<nPeriodmin>int</nPeriodmin>
<cstarttime />
<cEndTime />
<aMobileData>
<MobileData>
<Mobileno>string</Mobileno>
<Customerid>long</Customerid>
</MobileData>
<MobileData>
<Mobileno>string</Mobileno>
<Customerid>long</Customerid>
</MobileData>
</aMobileData>
<lCheckFeeSms>boolean</lCheckFeeSms>
</aBatchSms>
</SendSmsV2>
</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>
<SendSmsV2Response xmlns="http://tempuri.org/">
<SendSmsV2Result>
<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>
</SendSmsV2Result>
</SendSmsV2Response>
</soap12:Body>
</soap12:Envelope>