is there a way to access soap headers within a cxf service class in grails? you know that you can access the whole soap message with interceptors, but i need header direct in the service class. any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add a
@Resource private WebServiceContext contextfield to the service source code, and then you’ll be able to use something likecontext.messageContext.get(MessageContext.SERVLET_REQUEST).remoteAddrto get headers.