I deployed a web service to Tomcat 5.5 server. I sent the following message to the service:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:soa.army.mil:adsl:sis:09-1:1-1:pattern:retrieve:type:bma:log:ums-ds" xmlns:urn1="urn:soa.army.mil:adsl:sis:09-1:1-1:pattern:retrieve:bma:log:ums-ds"> <soapenv:Header> <urn1:Credentials> <urn1:UserID>XinxinWang</urn1:UserID> <urn1:Password>Secret Agent</urn1:Password> </urn1:Credentials> </soapenv:Header> <soapenv:Body> <urn:RetrieveRequest/> </soapenv:Body> </soapenv:Envelope> My service implementation class cannot get the SOAP headers. The headerList in the following lines of code is empty: @Resource private WebServiceContext ctx; ..... Map<String,Object> headers = ctx.getMessageContext(); List<Header> headerList = (List<Header>)headers.get(Header.HEADER_LIST); How can I get the header? -- View this message in context: http://www.nabble.com/Empty-SOAP-Header-List-tp23826014p23826014.html Sent from the cxf-user mailing list archive at Nabble.com.
