Hi all,
Here's the response i get from a web service:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" xmlns:xsi=" xmlns:xsd=" <soap:Body>
<UserAdministrationResponse xmlns=" <UserAdministrationResult>
<Response xmlns="">
<Result>OK</Result>
<Message>User xx updated</Message>
</Response>
</UserAdministrationResult>
</UserAdministrationResponse>
</soap:Body>
</soap:Envelope>
Here's the XSD based on which i have a structure in which i am trying to map the data but for some reason its failing. Is it a namespace issue, malformed XML response above or what? I am either getting no data in the output structure, testing with different tools results in different errors...invalid XSD etc ..i cannot get to a root cause what might be the issue here?
<?xml version="1.0" encoding="utf-8"?>
<document>
<main name=""
type=" <xs:schema elementFormDefault="qualified"
xmlns:xs=" <xs:element name="Response">
<xs:complexType>
<xs:sequence>
<xs:element name="Result" type="xs:string" />
<xs:element name="Message" type="xs:string" />
<xs:element name="Error">
<xs:complexType>
<xs:sequence>
<xs:element name="Code" type="xs:string" />
<xs:element name="Message" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</main>
</document>
Here's the response i get from a web service:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" xmlns:xsi=" xmlns:xsd=" <soap:Body>
<UserAdministrationResponse xmlns=" <UserAdministrationResult>
<Response xmlns="">
<Result>OK</Result>
<Message>User xx updated</Message>
</Response>
</UserAdministrationResult>
</UserAdministrationResponse>
</soap:Body>
</soap:Envelope>
Here's the XSD based on which i have a structure in which i am trying to map the data but for some reason its failing. Is it a namespace issue, malformed XML response above or what? I am either getting no data in the output structure, testing with different tools results in different errors...invalid XSD etc ..i cannot get to a root cause what might be the issue here?
<?xml version="1.0" encoding="utf-8"?>
<document>
<main name=""
type=" <xs:schema elementFormDefault="qualified"
xmlns:xs=" <xs:element name="Response">
<xs:complexType>
<xs:sequence>
<xs:element name="Result" type="xs:string" />
<xs:element name="Message" type="xs:string" />
<xs:element name="Error">
<xs:complexType>
<xs:sequence>
<xs:element name="Code" type="xs:string" />
<xs:element name="Message" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</main>
</document>