Skip to main content

Java ws Jboss7 reading SOAP Header

No replies
rtp4
Offline
Joined: 2013-02-26
Points: 0

I need to read a SOAP header. Below is the xml being sent:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://services.com/" xmlns:ns2="http://tech.com/">
<SOAP-ENV:Header>
    <ns2:header id="ref1">
        <session_id>63949bc1878725afd28cc8283ec3252a</session_id>
        <ip_address>127.0.0.1</ip_address>
        <user_agent>Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0</user_agent>
        <last_activity>1362395880</last_activity>
        <user_data></user_data>
        <username>serge</username>
        <logged_in>true</logged_in>
    </ns2:header>
    <ns2:header href="#ref1"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
    <ns1:getInvo>
        <id>1</id>
    </ns1:getInvo>
</SOAP-ENV:Body>

I need to read the inside the ns2:header that contains session_id etc...