I am having an issue where the inner objects of my JAXB2 generated request class are not being populated when the request object is created in the service. Here is the XML for the request that the server receives:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <getAvailability xmlns="http://interfaces.service.vacations.ecustomer.swacorp.com"> <ns2:AirAvailabilityRQ xmlns:ns2="http://www.swacorp.com/vacations" Version="1.0" ClientEchoToken="ECHO12345"> <POS> <RequestorCID CID="99587574">Southwest Airlines Vacations</RequestorCID> </POS> </ns2:AirAvailabilityRQ> </getAvailability> </soap:Body> </soap:Envelope> When I set a breakpoint in the service method and examine the AirAvailabilityRQ object, the Version and ClientEchoToken attributes are set correctly. However, the POS member is null. I suspect this is because the AirAvailabilityRQ element is in the ns2 namespace, and the POS element is not. When I implemented the JAXB2 sample (I modified it to be embedded), The outer element was not placed in this ns2 namespace. So my question is: How do I get rid of the ns2 namespace, or put the inner elements in that namespace? Thanks, Stan -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
