Reference for http://api.esms.vn/MainService.svc/xml/SubServicePreviewJson/
Url: http://api.esms.vn/MainService.svc/xml/SubServicePreviewJson/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<ServicePreviewModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <ServiceType>REGISTER_BRANDNAME</ServiceType> <SmsType>2147483647</SmsType> <Brandname>String content</Brandname> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <Content>String content</Content> <AssetsUrl>String content</AssetsUrl> <OAID>String content</OAID> <CallbackUrl>String content</CallbackUrl> </ServicePreviewModel>
The following is an example response Xml body:
<ServicePreviewResult> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <Message>String content</Message> <ServicePreviewId>2147483647</ServicePreviewId> <DateActive>String content</DateActive> </ServicePreviewResult>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ServicePreviewModel" nillable="true" type="ServicePreviewModel" /> <xs:complexType name="ServicePreviewModel"> <xs:complexContent mixed="false"> <xs:extension base="AuthorizeModel"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="ServiceType" type="SERVICE_PREVIEW_TYPE" /> <xs:element minOccurs="1" maxOccurs="1" name="SmsType" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="Brandname" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CustomerName" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CustomerPhone" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CustomerEmail" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="AssetsUrl" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CallbackUrl" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="AuthorizeModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="ApiKey" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="SecretKey" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:simpleType name="SERVICE_PREVIEW_TYPE"> <xs:restriction base="xs:string"> <xs:enumeration value="REGISTER_BRANDNAME" /> <xs:enumeration value="REGISTER_SMS_TEMPLATE" /> <xs:enumeration value="REGISTER_ZNS_TEMPLATE" /> <xs:enumeration value="REGISTER_OA_PACKAGE" /> </xs:restriction> </xs:simpleType> </xs:schema>
The following is the response Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ServicePreviewResult" nillable="true" type="ServicePreviewResult" /> <xs:complexType name="ServicePreviewResult"> <xs:complexContent mixed="false"> <xs:extension base="ResultModel"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="ServicePreviewId" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="DateActive" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="ResultModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="CodeResult" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Message" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>