团队,我面临着“响应格式错误”的问题,任何人都可以转换为正确的响应。预先感谢。
响应XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="jsonObject">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="ImranBillId" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="ImranGuid" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="StatusCode" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Message" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
需要JSON响应:
[
{
"ImranBillId": "11800010310",
"ImranGuid": "ad722dda-fdca-e811-a950-000d3aa154bb",
"StatusCode": 2,
"Message": "This Bill is already Reconciled"
}
]
实际结果:
{
"fault": {
"code": 400,
"type": "Imran Bill Service",
"message": "Runtime Error",
"description": "Response format is incorrect"
}
}