cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Header in java

Former Member
0 Kudos

Hi,

Here is my scenario - NWCE 7.1, EJB as a WebService and I want to access the SOAP Header, what would be the best way. I'm thinking of using handler-chains, appreciate any suggestions.

Rajiv.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ApplicationWebServiceContext wsContext = (ApplicationWebServiceContext) new InitialContext(p).lookup("/wsContext/" + ApplicationWebServiceContext.APPLICATION_WSCONTEXT);

this thing provides methods to access the soap header blocks

stefan_grube
Active Contributor
0 Kudos

I think you better post that question to Java programming.

Regards

Stefan

Former Member
0 Kudos

Probably the easiest way is to insert

@Resource

WebServiceContext wsc;

in your @WebService annotated class.

Depending what you want to do a SOAPHandler might be appropriate.

also possible:

http://www.khapre.org/blog/archives/2008_08_01_index.aspx

Edited by: Konrad KRENTZ on Dec 1, 2009 8:56 PM