Reference for http://api.esms.vn/MainService.svc/xml/GetSubServicePreviewJson/
Url: http://api.esms.vn/MainService.svc/xml/GetSubServicePreviewJson/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<GetSubServicePreviewModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <ServiceType>REGISTER_BRANDNAME</ServiceType> <FromTime>String content</FromTime> <ToTime>String content</ToTime> </GetSubServicePreviewModel>
The following is an example response Xml body:
<GetSubServicePreviewResult> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <Message>String content</Message> <PreviewBrandname> <PreviewBrandnameResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <Brandname>String content</Brandname> </PreviewBrandnameResult> <PreviewBrandnameResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <Brandname>String content</Brandname> </PreviewBrandnameResult> </PreviewBrandname> <PreviewSmsTemplate> <PreviewSmsTemplateResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <Brandname>String content</Brandname> <TemplateContent>String content</TemplateContent> </PreviewSmsTemplateResult> <PreviewSmsTemplateResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <Brandname>String content</Brandname> <TemplateContent>String content</TemplateContent> </PreviewSmsTemplateResult> </PreviewSmsTemplate> <PreviewZnsTemplate> <PreviewZnsTemplateResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <OAID>String content</OAID> </PreviewZnsTemplateResult> <PreviewZnsTemplateResult> <CustomerName>String content</CustomerName> <CustomerPhone>String content</CustomerPhone> <CustomerEmail>String content</CustomerEmail> <ServicePreviewId>2147483647</ServicePreviewId> <SmsType>2147483647</SmsType> <StaffInCharge>String content</StaffInCharge> <DateCreated>String content</DateCreated> <Status>2147483647</Status> <DateActive>String content</DateActive> <OAID>String content</OAID> </PreviewZnsTemplateResult> </PreviewZnsTemplate> </GetSubServicePreviewResult>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="GetSubServicePreviewModel" nillable="true" type="GetSubServicePreviewModel" /> <xs:complexType name="GetSubServicePreviewModel"> <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="0" maxOccurs="1" name="FromTime" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="ToTime" 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="GetSubServicePreviewResult" nillable="true" type="GetSubServicePreviewResult" /> <xs:complexType name="GetSubServicePreviewResult"> <xs:complexContent mixed="false"> <xs:extension base="ResultModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="PreviewBrandname" type="ArrayOfPreviewBrandnameResult" /> <xs:element minOccurs="0" maxOccurs="1" name="PreviewSmsTemplate" type="ArrayOfPreviewSmsTemplateResult" /> <xs:element minOccurs="0" maxOccurs="1" name="PreviewZnsTemplate" type="ArrayOfPreviewZnsTemplateResult" /> </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:complexType name="ArrayOfPreviewBrandnameResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewBrandnameResult" nillable="true" type="PreviewBrandnameResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="PreviewBrandnameResult"> <xs:complexContent mixed="false"> <xs:extension base="GetServicePreviewResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Brandname" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="GetServicePreviewResult"> <xs:complexContent mixed="false"> <xs:extension base="SubServicePreviewCustomerInfo"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="ServicePreviewId" type="xs:int" /> <xs:element minOccurs="1" maxOccurs="1" name="SmsType" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="StaffInCharge" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="DateCreated" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="Status" 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="SubServicePreviewCustomerInfo"> <xs:sequence> <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:sequence> </xs:complexType> <xs:complexType name="PreviewZnsTemplateResult"> <xs:complexContent mixed="false"> <xs:extension base="GetServicePreviewResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="PreviewSmsTemplateResult"> <xs:complexContent mixed="false"> <xs:extension base="GetServicePreviewResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Brandname" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="TemplateContent" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="ArrayOfPreviewSmsTemplateResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewSmsTemplateResult" nillable="true" type="PreviewSmsTemplateResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfPreviewZnsTemplateResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewZnsTemplateResult" nillable="true" type="PreviewZnsTemplateResult" /> </xs:sequence> </xs:complexType> </xs:schema>