Hello everybody. Maybe this question has been posted before, so any link can be useful for me.
I'm trying to unmarshall this XML using JiBX (it's a SOAP message) <NS1:GetAllMemberItemsResponse xmlns:NS1="urn:OrdersIntf-IOrders" xmlns:NS2="urn:uClasses"> <NS2:TKitItems id="1" xsi:type="NS2:TKitItems"> <Code xsi:type="xsd:int">1125</Code> <Msg xsi:type="xsd:string">Could not find</Msg> <Count xsi:type="xsd:int">0</Count> <Items xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="NS2:TInventoryItem[0]" /> <PlanCode xsi:type="xsd:string"></PlanCode> </NS2:TKitItems> <return href="#1" /> </NS1:GetAllMemberItemsResponse> I have defined this mapping: <mapping name="GetAllMemberItemsResponse" class="com.ge.binding.response.GetAllMemberItemsResponse"> <namespace uri="urn:OrdersIntf-IOrders" default="elements"/> <structure field="kitItems"/> </mapping> <mapping name="TKitItems" class="com.ge.binding.response.TKitItems"> <namespace uri="urn:uClasses" default="elements" prefix="ns1"/> <value name="Code" field="code"/> </mapping> I'm receiving this error when I try to unmarshall the message: Expected "{urn:uClasses}Code" start tag, found "Code" start tag (line -1, col -1, in SOAP-message) Any idea of how to fix this? I've been thinking about creating a third mapping with no namespace. And I have also found that there is a workound by using custom unmarshallers Any other suggestions? Thank you! -Pablo Melchi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users