This discussion is archived
2 Replies Latest reply: Oct 11, 2012 6:27 AM by jwenting RSS

Netbeans generated JAX-WS client does not work if Axis2 library is present

963945 Newbie
Currently Being Moderated
I generated a JAX-WS web service client using Netbeans, every thing works fine except if i add Axis2 library to the project the UsernameToken is removed from the soap header and the soap message looks slightly different. I'm quite new to Java web services so i would really like to understand what is going on and how to solve this. The reason why i need to have the Axis2 library is that I'm adding a client to an large project that has many Axis2 clients.

Generated SOAP when Axis2 library is present:

<soapenv:Envelope xmlns:soapenv="">
<wsse:Security xmlns:wsse="" />
<ns2:AddOrUpdate xmlns:ns2="" xmlns="" xmlns:ns4="" xmlns:ns3="">
<ns2:employee />

Generated SOAP without Axis2 library:

<S:Envelope xmlns:S="">
<wsse:Security xmlns:wsse="">
<AddOrUpdate xmlns="" xmlns:ns2="" xmlns:ns3="" xmlns:ns4="">


  • Correct Answers - 10 points
  • Helpful Answers - 5 points