aspose file tools*
The moose likes Web Services and the fly likes Unable to invoke the message handlers of a webservice client from an EJB project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to invoke the message handlers of a webservice client from an EJB project" Watch "Unable to invoke the message handlers of a webservice client from an EJB project" New topic
Author

Unable to invoke the message handlers of a webservice client from an EJB project

Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
Hi,

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.

Regards,
Anup
Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
Hi,

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>

Regards,
Anup
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to invoke the message handlers of a webservice client from an EJB project