1 Reply Latest reply on Oct 14, 2007 5:26 AM by Alessio Soldano

    Stop Empty SOAP elements

    Joe Rice Newbie

      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.