Skip to main content

SOAP message format problem - NetBeans vs. IntelliJ

No replies
jmbollard
Offline
Joined: 2004-04-22
Points: 0

I have created a Web Service client in both NetBeans 6.8 and IntelliJ 9 by consuming a WSDL. Running the client from IntelliJ works fine, but when running the client from NetBeans, the format of the SOAP message is different, and the call to the service fails.

Here is a comparison of the two message bodies:

IntelliJ:

USA
50574

NetBeans:

USA
50574

This results in the following error in NetBeans:
SoapFaultException Country cannot be null or empty string

I can make the following change to the generated source code for the declaration of Country to make NetBeans work (changes it to ns2:Country), but this is obviously not the approach I want to take in the long run:

@XMLElement(name = "Country", required = true)

@XMLElement(name = "Country", required = true, targetNamespace = "http://www.qas.com/OnDemand-2006-10")

Can someone point me in the right direction on how I may be able to make NetBeans create a SOAP message in the format that the service can handle?

TIA,
John