axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <a...@manes.net>
Subject RE: SOAP-Header
Date Fri, 13 Aug 2004 18:21:22 GMT
Your namespaces don't match. 
 
Make this change:
 
SOAPHeaderElement header = env.getHeaderByName("http://t-systems.de",
"ClientID");
 
- Anne
 
  _____  

From: Dorner Thomas [mailto:Thomas.Dorner@t-systems.com] 
Sent: Friday, August 13, 2004 11:28 AM
To: 'axis-user@ws.apache.org'
Subject: SOAP-Header
 
Hello,
 
can sombody please tell me, how I can get a HeaderElement in my ServiceIml,
which I
set in my ClientStub?
 
When I do :
 
Message rspmsg = mctx.getResponseMessage();
SOAPEnvelope env = rspmsg.getSOAPEnvelope();
SOAPHeaderElement header =
env.getHeaderByName("http://t-systems.de/pdmwebConnector/clientid",
"ClientID");
 
I get a null in my "header" !!!???
 
My SOAP-Header looks like this:
 
 <soapenv:Header>
      <ns1:ClientID soapenv:actor="
<http://schemas.xmlsoap.org/soap/actor/next>
http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
xmlns:ns1=" <http://t-systems.de>
http://t-systems.de">PDMWebConnectorClient</ns1:ClientID>
      <ns2:sessionID soapenv:actor="
<http://schemas.xmlsoap.org/soap/actor/next>
http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
xmlns:ns2=" <http://xml.apache.org/axis/session>
http://xml.apache.org/axis/session">-7457323948477159990</ns2:sessionID>
   </soapenv:Header>
 
 
Thanks Tomi

Mime
View raw message