XML data is not getting updated in domain model

0
I am getting XML data from REST services and using import mapping to store the response. But the response variable is always empty though correct response is received from the server. Why is the mapping failing?   XML Schema:   Import Mapping:   Domain model:   Action: XML:   <?xml version="1.0" encoding="utf-8"?> <PurchaseOrder OrderDate="2012-12-13">   <BillTo country="US">     <name>str1234</name>     <street>str1234</street>     <city>str1234</city>     <state>str1234</state>     <zip>1234</zip>   </BillTo> </PurchaseOrder>   XSD: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"            xmlns:tns="http://tempuri.org/PurchaseOrderSchema.xsd"            targetNamespace="http://tempuri.org/PurchaseOrderSchema.xsd"            elementFormDefault="qualified">  <xsd:element name="PurchaseOrder" type="tns:PurchaseOrderType"/>  <xsd:complexType name="PurchaseOrderType">   <xsd:sequence>    <xsd:element name="BillTo" type="tns:USAddress"/>   </xsd:sequence>   <xsd:attribute name="OrderDate" type="xsd:date"/>  </xsd:complexType>  <xsd:complexType name="USAddress">   <xsd:sequence>    <xsd:element name="name"   type="xsd:string"/>    <xsd:element name="street" type="xsd:string"/>    <xsd:element name="city"   type="xsd:string"/>    <xsd:element name="state"  type="xsd:string"/>    <xsd:element name="zip"    type="xsd:integer"/>   </xsd:sequence>   <xsd:attribute name="country" type="xsd:NMTOKEN" fixed="US"/>  </xsd:complexType> </xsd:schema>    
asked
1 answers
0

The problem is that your XML is not valid according to the schema. The schema specifies PurchaseOrder in namespace http://tempuri.org/PurchaseOrderSchema.xsd, but the XML contains PurchaseOrder without a namespace.

answered