[jboss-user] [JBossWS] - Stop Empty SOAP elements

jizzoe do-not-reply at jboss.com
Mon Oct 8 18:48:26 EDT 2007


Hi All,

I'm using JBoss WebServices with JAX-WS to connect to a Web Service.  I use wsconsume to generate Java Classes.

Here's my dliema.  In some of my generated classes that I'm using as request objects, I instantiate the object, populate some fields and send it along.  Problem is all of those fields are getting generated in the SOAP message, even if I left it as null.  On the Web Service side, it's been interpreted as empty string instead of NULL, which causes problems.

Any idea why null values still get generated in SOAP?  And any idea hot to stop this from happening?   These fields are defined as nillable in the WSDL.

Any help is greatly appreciated.

Thanks,

Joe

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092784#4092784

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092784



More information about the jboss-user mailing list