axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maicon Stihler" <>
Subject [Axis2] Calling a service from another service
Date Fri, 30 Nov 2007 16:22:49 GMT

I'm trying to create a service that calls another service, I followed
the tutorial on
but it doesn't work. Everything works fine if I'm calling the service
form a client application, but when I try to make a service to act
like a client I got some errors.

The code is as follows (try/catch ommited):

    private OMElement publish(OMElement msg) throws Exception {
            EndpointReference EventBoxEPR =
                new EndpointReference(

            Options options = new Options();
            ServiceClient sender = new ServiceClient();
            OMElement rq = makeRequest(msg);
            sender.sendReceive(rq); // here it fails
            return msg;

The error says something about WS-Addressing. If I call the service
(http://localhost:8080/axis2/services/EventBox) from a command line
client, it works fine.

So how is the right way to call a service from another service?

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message