I am developing a webservice client. The request message to be sent to the webservice is received via MQ using JMS. I have two projects: 1. A web project in which my webservice client is defined. Here I have the proxy and stub classes generated from the WSDL file. My message handlers are also defined in this project and configured properly in the webservicecleint.xml file.
2. An EJB project for the MDB. The MDB receives the input message and coverts this into a SOAP message to be sent to the webservice. In this project I instantiate the proxy class and call the remote method.
At runtime, the message handlers configured in the webproject are not being invoked. However, if I instantiate the proxy class in the web project, the handlers ar invoked.
Can any one please expalin me why this is occuring and how I can possibly resolve this?
Thanks in advance.
Joined: Sep 12, 2006
At last was able to figure out the problem. For those who are interested do the following:
1. Include the webservicescleint.xml into the META-INF folder of the EJB project. Change references from WEB-INF to META-INF where ever required in the xml file.
2.Add the following tag in the webservicesclient.xml: <webservicesclient> <component-scoped-refs> <component-name>name of the ejb element</component-name> <service-ref id="XXXX"> : : </component-scoped-refs>