I have narrowed down an unmarshalling issue to the following:

 

<jibx-version>1.1.5</jibx-version>

 

Mapping:

 

    <mapping name="FuelPriceSearchOutput"

 
class="com.traffic.hdradio.contentmanager.fuelprices.soap.response.FuelP
riceSearchResponse">

       <namespace
uri="http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/";

                 default="elements"/>

      

      <value name="MoreResultsAvailable"

             field="areMoreResultsAvailable"

             usage="optional"/>

      <structure field="commonOutputData"

                 usage="optional"/>

   </mapping>

 

   <mapping
class="com.traffic.hdradio.contentmanager.fuelprices.soap.response.Commo
nOutputData"

             name="CommonDataOutput">

       <namespace
uri="http://www.navteq.com/schemas/ncs/cds/CommonDataOutput-1.1/";

                 default="elements"

                 prefix="com"/>

       <structure field="securityCredentials"

                  usage="optional"/>

    </mapping>

 

 

Incoming xml:

<mapping name="FuelPriceSearchOutput"

 
class="com.traffic.hdradio.contentmanager.fuelprices.soap.response.FuelP
riceSearchResponse">

      <namespace
uri="http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/";

                 default="elements"/>

      <!-- collection field="fuelStationList"

 
item-type="com.traffic.hdradio.contentmanager.fuelprices.soap.response.f
uel.FuelStation"

                  usage="optional"/ -->

      <value name="MoreResultsAvailable"

             field="areMoreResultsAvailable"

             usage="optional"/>

      <structure field="commonOutputData"

                 usage="optional"/>

   </mapping>

 

Exception:

org.springframework.oxm.jibx.JibxUnmarshallingFailureException: JiBX
unmarshalling exception: Expected
"{http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/}FuelP
riceSearchOutput" end tag, found
"{http://www.navteq.com/schemas/ncs/cds/commondataoutput-1.1/}CommonData
Output" start tag (line 4, col 10); nested exception is
org.jibx.runtime.JiBXException: Expected
"{http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/}FuelP
riceSearchOutput" end tag, found
"{http://www.navteq.com/schemas/ncs/cds/commondataoutput-1.1/}CommonData
Output" start tag (line 4, col 10)

Caused by: org.jibx.runtime.JiBXException: Expected
"{http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/}FuelP
riceSearchOutput" end tag, found
"{http://www.navteq.com/schemas/ncs/cds/commondataoutput-1.1/}CommonData
Output" start tag (line 4, col 10)

            at
org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(Unmars
hallingContext.java:792)

            at
com.traffic.hdradio.contentmanager.fuelprices.soap.response.JiBX_FuelPri
ceSearch_JiBXBindingFuelPriceSearchResponse_access.unmarshal()

            at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshallin
gContext.java:2537)

            at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unmarshalli
ngContext.java:2694)

            at
org.springframework.oxm.jibx.JibxMarshaller.unmarshalReader(JibxMarshall
er.java:272)

            at
org.springframework.oxm.AbstractMarshaller.unmarshalStreamSource(Abstrac
tMarshaller.java:351)

            at
org.springframework.oxm.AbstractMarshaller.unmarshal(AbstractMarshaller.
java:131)

            at
com.traffic.hdradio.contentmanager.fuelprices.soap.client.FuelPriceSearc
hContextSoap.performFuelPriceSearch(FuelPriceSearchContextSoap.java:22)

 

I would appreciate any help resolving this issue.

 

George Harp

Traffic.com Development

NAVTEQ - Chicago

(T)  +312-894-7225

[EMAIL PROTECTED]

www.navteq.com <http://www.navteq.com>  

 



The information contained in this communication may be CONFIDENTIAL and is 
intended only for the use of the recipient(s) named above.  If you are not the 
intended recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication, or any of its contents, is 
strictly prohibited.  If you have received this communication in error, please 
notify the sender and delete/destroy the original message and any copy of it 
from your computer or paper files.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to