Well, FWIW, that's how I would do it - I can't see anything wrong with the binding below. Just make sure to declare the namespace http://www.navteq.com/schemas/ncs/cds/domain-1.1 on your mapping for the "FuelStation" element.
Strictly speaking, the "item-type" declaration on the collection element is unnecessary - since you'll have to map the name "FuelStation" to the class anyway given the format of your binding. On Wed, 2008-05-07 at 09:48 -0500, Harp, George wrote: > Given this incoming xml: > > > > > > <FuelPriceSearchOutput > xmlns="http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/"> > > <ns1:FuelStation > xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/"> > > … > > </ns1:FuelStation> > > <ns1:FuelStation > xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/"> > > … > > </ns1:FuelStation> > > <ns1:FuelStation > xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/"> > > … > > </ns1:FuelStation> > > <ns1:FuelStation > xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/"> > > … > > </ns1:FuelStation> > > > > </FuelPriceSearchOutput> > > > > > > Would the following mapping be the best approach? > > > > > > <mapping name="FuelPriceSearchOutput" > > > > class="com.traffic.hdradio.contentmanager.fuelprices.soap.response.FuelPriceSearchResponse"> > > <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.fuel.FuelStation" > > usage="optional"/> > > > > … > > </mapping> > > > > public class FuelPriceSearchResponse > > { > > private ArrayList<FuelStation> fuelStationList; > > > > public FuelPriceSearchResponse() > > { > > fuelStationList = > > new ArrayList<FuelStation>( ); > > } > > } > > > > public class FuelStation > > { > > … > > } > > > > > > > > George Harp > > Traffic.com Development > > NAVTEQ - Chicago > > (T) +312-894-7225 > > [EMAIL PROTECTED] > > 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 > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users ------------------------------------------------------------------------- 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 jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users