Reference for http://api.esms.vn/MainService.svc/xml/GetTemplate/
Url: http://api.esms.vn/MainService.svc/xml/GetTemplate/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<GetTemplateModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <SmsType>String content</SmsType> <Brandname>String content</Brandname> <OAId>String content</OAId> </GetTemplateModel>
The following is an example response Xml body:
<ListTemplateResponse> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <BrandnameTemplates> <TemplateResponse> <TempId>2147483647</TempId> <TempName>String content</TempName> <TempContent>String content</TempContent> <NetworkID>2147483647</NetworkID> <ZNSTempDetail> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> </ZNSTempDetail> </TemplateResponse> <TemplateResponse> <TempId>2147483647</TempId> <TempName>String content</TempName> <TempContent>String content</TempContent> <NetworkID>2147483647</NetworkID> <ZNSTempDetail> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> </ZNSTempDetail> </TemplateResponse> </BrandnameTemplates> <ZNSTemplates> <TemplateResponse> <TempId>2147483647</TempId> <TempName>String content</TempName> <TempContent>String content</TempContent> <NetworkID>2147483647</NetworkID> <ZNSTempDetail> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> </ZNSTempDetail> </TemplateResponse> <TemplateResponse> <TempId>2147483647</TempId> <TempName>String content</TempName> <TempContent>String content</TempContent> <NetworkID>2147483647</NetworkID> <ZNSTempDetail> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> <ZNSTemplateDetailResponse> <Param>String content</Param> <ParamLevel>2147483647</ParamLevel> <RequireType>String content</RequireType> <Limit>2147483647</Limit> </ZNSTemplateDetailResponse> </ZNSTempDetail> </TemplateResponse> </ZNSTemplates> </ListTemplateResponse>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="GetTemplateModel" nillable="true" type="GetTemplateModel" /> <xs:complexType name="GetTemplateModel"> <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:element minOccurs="0" maxOccurs="1" name="SmsType" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Brandname" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="OAId" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>
The following is the response Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ListTemplateResponse" nillable="true" type="ListTemplateResponse" /> <xs:complexType name="ListTemplateResponse"> <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="BrandnameTemplates" type="ArrayOfTemplateResponse" /> <xs:element minOccurs="0" maxOccurs="1" name="ZNSTemplates" type="ArrayOfTemplateResponse" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfTemplateResponse"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="TemplateResponse" nillable="true" type="TemplateResponse" /> </xs:sequence> </xs:complexType> <xs:complexType name="TemplateResponse"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="TempId" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="TempName" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="TempContent" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="NetworkID" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="ZNSTempDetail" type="ArrayOfZNSTemplateDetailResponse" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfZNSTemplateDetailResponse"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="ZNSTemplateDetailResponse" nillable="true" type="ZNSTemplateDetailResponse" /> </xs:sequence> </xs:complexType> <xs:complexType name="ZNSTemplateDetailResponse"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Param" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="ParamLevel" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="RequireType" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="Limit" nillable="true" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:schema>