axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Pedder" <>
Subject Re: How to remove "ns1" from Custom Header
Date Mon, 02 Feb 2004 18:05:09 GMT

Thanks for the reply. I really have no control over the server. It is up and running and working
The problem is with my client request. Those "nsx" tags are the problem. I don't understand
why Axis
put the "nsx" in there by default. If I knew why they are put there automatically, I may be
able to figure
out how to tell axis to not do it.

  ----- Original Message ----- 
  From: chris 
  To: ; 'Greg Pedder' 
  Sent: Monday, February 02, 2004 11:28 AM
  Subject: RE: How to remove "ns1" from Custom Header

  The server is attempting to deserialize the request and is looking for a map between the
XML QName and a Java object.

  Register a Java object on the server corresponding to,
and the server will not fault.


  -----Original Message-----
  From: Greg Pedder [] 
  Sent: Saturday, January 31, 2004 6:47 AM
  Subject: How to remove "ns1" from Custom Header

  Hello all. I have a WSDL file that I then an WSDL2Java against to generate the client stubs.

  Unfortunately, the subs for the custom header did not get generated so I am trying to add


  SOAPHeaderElement myheader = new SOAPHeaderElement("",

  try {
  catch(javax.xml.soap.SOAPException se) { }

  When I add the following code and send off the requst, I see the following being received
by the server:

  <ns1:StartHeader soapenv:mustUnderstand="0" xmlns:ns1="">

  I am not setting "ns1" anywhere, so I assume Axis is automatically putting it there. How
can I remove all references to

  "ns1"? Having the "ns1" there is causing the server to ignore my request. Thanks in advance

View raw message