Hi,

I have generated a webservice using wsdl2java and it all works fine. The
problem is that I'm exchanging PersonEndPoint objects and wsdl2java has set
all the properties to JAXBElement<...> (usually Strings). This makes
manipulating the objects received on the server side rather painful. So
instead of

Person person = new Person();
person.setName("Bob");

I have to go through

ObjectFactory of = new ObjectFactory();
PersonEndPoint person = of.createPersonEndPoint();
person.setFirstName(of.createPersonEndPointFirstName("Bob"));

Seems strange. Am I doing something wrong?

Many Thanks,

Anthony

Reply via email to