Skip to main content

Jaxb binding problem

1 reply [Last post]
etadeveloper
Offline
Joined: 2005-04-15

Hi, i'm trying to build a WebService Client.
I created a XML schema from WSDL Document that envelops Web Method specifications.
Then i used jaxb tool (xjc) to bind Web Service objects.
I have this problem: when I marshal a Web Method call object , I obtain a XML message with an empty namespace tag where namespace is not specified in XML Schema, as this:

FrancescaMerighi

from XML Schema :

Obviously unmarshall method requires xmlns="" tag too.

I'd like that jaxb gives me an object class without xmlns="" during marshalling/unmarshalling.

Can you help me?

Thanks

Francesca Merighi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09

The instance document matches your schema, so I think the JAXB RI is doing things correctly.

Perhaps you are missing elementFormDefault="qualified" attribute on your