Reference for http://api.esms.vn/MainService.svc/xml/ZNS/GetRating/
Url: http://api.esms.vn/MainService.svc/xml/ZNS/GetRating/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<ZNSGetRatingModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <OAID>String content</OAID> <TemplateID>String content</TemplateID> <FromTime>String content</FromTime> <ToTime>String content</ToTime> <Offset>2147483647</Offset> <Limit>2147483647</Limit> </ZNSGetRatingModel>
The following is an example response Xml body:
<ZNSRatingResultModel> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <Message>String content</Message> <Total>2147483647</Total> <Data> <RatingResultModel> <msgId>String content</msgId> <rate>2147483647</rate> <note>String content</note> <submitDate>String content</submitDate> <trackingId>String content</trackingId> <feedbacks> <string>String content</string> <string>String content</string> </feedbacks> </RatingResultModel> <RatingResultModel> <msgId>String content</msgId> <rate>2147483647</rate> <note>String content</note> <submitDate>String content</submitDate> <trackingId>String content</trackingId> <feedbacks> <string>String content</string> <string>String content</string> </feedbacks> </RatingResultModel> </Data> </ZNSRatingResultModel>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ZNSGetRatingModel" nillable="true" type="ZNSGetRatingModel" /> <xs:complexType name="ZNSGetRatingModel"> <xs:complexContent mixed="false"> <xs:extension base="AuthorizeModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="TemplateID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="FromTime" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="ToTime" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="Offset" type="xs:int" /> <xs:element minOccurs="1" maxOccurs="1" name="Limit" type="xs:int" /> </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:schema>
The following is the response Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ZNSRatingResultModel" nillable="true" type="ZNSRatingResultModel" /> <xs:complexType name="ZNSRatingResultModel"> <xs:complexContent mixed="false"> <xs:extension base="ResultModel"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="Total" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="Data" type="ArrayOfRatingResultModel" /> </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="ArrayOfRatingResultModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="RatingResultModel" nillable="true" type="RatingResultModel" /> </xs:sequence> </xs:complexType> <xs:complexType name="RatingResultModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="msgId" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="rate" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="note" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="submitDate" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="trackingId" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="feedbacks" type="ArrayOfString" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfString"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>