[
https://jira.jboss.org/browse/JBWS-3118?page=com.atlassian.jira.plugin.sy...
]
Jeremy Scott updated JBWS-3118:
-------------------------------
Summary: Soap header elements have to be called TWICE! (was: Soap header values
always null)
Description:
for the following:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<credentials
xmlns="http://www.xxxx.com/Services/1.1">
<deviceProvider>Sonos</deviceProvider>
<sessionId>7d30bb0aa7ed17ad0681568e335a96333dc7ecefa944066026f850eddb77ffac</sessionId>
</credentials>
</s:Header>
<s:Body>
<getMediaMetadata
xmlns="http://www.xxxx.com/Services/1.1">
<id>TRACK:2646108</id>
</getMediaMetadata>
</s:Body>
</s:Envelope>
calling this
context.getMessage().getSOAPHeader().getElementsByTagName("credentials")
throws a "An exception occurred: org.w3c.dom.DOMException"
calling it a second time returns the element org.jboss.ws.core.soap.NodeListImpl@16b722d
was:
for the following post, credentials is null, ie, there are no deviceProvider or
sessionId:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<credentials
xmlns="http://www.xxxx.com/Services/1.1">
<deviceProvider>Sonos</deviceProvider>
<sessionId>7d30bb0aa7ed17ad0681568e335a96333dc7ecefa944066026f850eddb77ffac</sessionId>
</credentials>
</s:Header>
<s:Body>
<getMediaMetadata
xmlns="http://www.xxxx.com/Services/1.1">
<id>TRACK:2646108</id>
</getMediaMetadata>
</s:Body>
</s:Envelope>
Soap header elements have to be called TWICE!
---------------------------------------------
Key: JBWS-3118
URL:
https://jira.jboss.org/browse/JBWS-3118
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.3.1
Environment: JBOSS 4.2.3
Reporter: Jeremy Scott
for the following:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<credentials
xmlns="http://www.xxxx.com/Services/1.1">
<deviceProvider>Sonos</deviceProvider>
<sessionId>7d30bb0aa7ed17ad0681568e335a96333dc7ecefa944066026f850eddb77ffac</sessionId>
</credentials>
</s:Header>
<s:Body>
<getMediaMetadata
xmlns="http://www.xxxx.com/Services/1.1">
<id>TRACK:2646108</id>
</getMediaMetadata>
</s:Body>
</s:Envelope>
calling this
context.getMessage().getSOAPHeader().getElementsByTagName("credentials")
throws a "An exception occurred: org.w3c.dom.DOMException"
calling it a second time returns the element org.jboss.ws.core.soap.NodeListImpl@16b722d
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira