axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Woerner" <t...@twoerner.de>
Subject Message header value is null
Date Thu, 14 Mar 2002 19:49:23 GMT
Hi,

I'm playing around with axis beta1 rc2 and header elements in soap
message.
Now I have following problem:

The header entry that arrives at the server is (the arriving message is
totally ok IMO):

---

 <SOAP-ENV:Header>
  <ns1:UID xsi:type="xsd:string"
xmlns:ns1="urn:TestService">two</ns1:UID>
 </SOAP-ENV:Header>

---

Then I use this code to extryct the header (This is an extract from a
handler I defined in my wsdd file):

---

Message msg = messageContext.getRequestMessage();
SOAPEnvelope env = msg.getSOAPEnvelope();
SOAPHeader uidH = env.getHeaderByName("urn:TestService", "UID", true);

System.out.println(uidH);
System.out.println("NS: [" + uidH.getNamespaceURI() + "]");
System.out.println("Name: [" + uidH.getName() + "]");
System.out.println("Value: [" + uidH.getValue() + "]");
System.out.println("Type: [" + uidH.getType() + "]");

---

But what comes out is this:

---

<ns1:UID xsi:type="xsd:string" xmlns:ns1="urn:TestService"
xmlns:xsi="http://www .w3.org/2001/XMLSchema-instance">two</ns1:UID>
NS: [urn:TestService]
Name: [UID]
Value: [null]
Type: [null]

---

So can anyone please tell me why value and type are null???
Thanks in advance!
Till

-- 
Caught in our narrowminded believe...
-------------------------------------
Till Woerner
Berlin, Germany
EMail:till@twoerner.de
ICQ#: 7162410


Mime
View raw message