Reference for http://api.esms.vn/MainService.svc/xml/RegisTemplateJson/

Url: http://api.esms.vn/MainService.svc/xml/RegisTemplateJson/

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Response Xml Example,Schema

The following is an example request Xml body:

<dataregistemp>
  <type>2147483647</type>
  <template>String content</template>
  <apikey>String content</apikey>
  <brandname>String content</brandname>
  <secretkey>String content</secretkey>
</dataregistemp>

The following is an example response Xml body:

<PreviewTemplateResult>
  <ErrorMessage>String content</ErrorMessage>
  <CodeResult>String content</CodeResult>
  <TemplateId>String content</TemplateId>
</PreviewTemplateResult>

The following is the request Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="dataregistemp" nillable="true" type="dataregistemp" />
  <xs:complexType name="dataregistemp">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="type" type="xs:int" />
      <xs:element minOccurs="0" maxOccurs="1" name="template" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="apikey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="brandname" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="secretkey" 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="PreviewTemplateResult" nillable="true" type="PreviewTemplateResult" />
  <xs:complexType name="PreviewTemplateResult">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CodeResult" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="TemplateId" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>