This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Guys, I'm new to web services. I have generated the necessary code from a WSDL file using Axes2 1.4 and Eclipse. Now my header has a complex element with 6 child elements. The generated code has created a POJO for this complex elements with six instance variables and setters and getters. I can't seem to figure out how to send this class with the Generated Proxy class. I have tried using addHeader(SOAPHeaderElement header) and adding all 6 child elements but it keeps throwing a Bad Envelop error.
Any help will be greatly appreciated, I'm ready to pull my hair off after trying to figure this for 6 hrs.
Joined: May 14, 2008
I guess the message doesn't make much sense, here is more info:
I have generated the necessary code from a WSDL file using Axes2 1.4 and Eclipse. Now the WSDl file has a complexType element with 5 child elements. this is used for the header for all the methods of the webservice.
The generated code has created a POJO for the complex element with five instance variables with setters and getters plus the Locator, SoapStub, proxy. I can't seem to figure out how to send this class as the input with the Generated Proxy class or the stub class. I have tried modifying the stub class and adding addHeader(SOAPHeaderElement header) method and adding all 5 child elements but it keeps throwing a Bad Envelop error.
If I just call the method without specifying the Header I keep getting a bad credentials error from the server.