Hello, I want to ignore the unknown elements I receive from the response of api soap. So I added these attributes flexible = true and odred = false in the binding file on the mapping of the element. Extract from the binding file :
<mapping abstract="true" type-name="ns1:MakeReservationResponseType" class="com.anite.MakeReservationResponseType" ordered="false" flexible="true"> <structure map-as="ns1:ControlType" get-method="getControl" set-method="setControl" name="Control"/> <structure get-method="getResponse" set-method="setResponse" usage="optional" name="Response" ordered="false" flexible="true"> <structure map-as="ns1:ResponseBaseFields-Group" get-method="getResponseBaseFields" set-method="setResponseBaseFields" usage="optional"/> <structure map-as="ns1:BookingType" get-method="getBooking" set-method="setBooking" name="Booking"/> <structure map-as="ns1:PriceDataType" get-method="getPrice" set-method="setPrice" name="Price"/> </structure> <structure map-as="ns1:ErrorResponseType" get-method="getError" set-method="setError" usage="optional" name="Error"/> </mapping> When i try to unmarshal the response that i receive, i have this error "Expected "{apiUrl}Response" end tag, found "{ apiUrl}Item" start tag (line -1, col -1, in SOAP-message), role=supplier, property=Expected "{apiUrl}Response" end tag, found "{ apiUrl}Item" start tag (line -1, col -1, in SOAP-message" I have this error because i receive an unknown object not declared in my xsd and binding file. But in this documentation say if i add flexible = true and ordered = false, i can ignore unknown elements : http://jibx.sourceforge.net/tutorial/binding-extras.html#mixing But this solution doesn't work and i have the error above. I use this version of jibx : 1.3.3 So can someone help me please ? Best regards, Nessrine
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users