JBoss Community

Re: How to access the request in a JAXWS webservice (JBoss 7.1.1) ?

created by Jay Kumar SenSharma in JBoss AS 7 Development - View the full discussion

Hi,

 

 

    You are trying to create/get the   MessageContext  at the time of initializing the WebService (this is due to @PostConstruct) , which is wrong because At the time of  WebService Instantiation it is in illegal state of providing you the MessageContext   Once a WebService client invokes a webservice operation then MessageContext can be retrieved.

 

    So remove the @PostConstruct from your init()

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community