axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Tratter <>
Subject Re: Connection refused
Date Thu, 13 Nov 2003 15:02:35 GMT
Hi Håkan!

Have you created the stub using WSDL2Java?
Then maybe the problem is that in the WSDL-file there's something like:

    <service name="XXX">
       <port name="YYY" binding="ZZZ">
location="http://localhost:8080/axis/services/HakansService" />

By letting WSDL2Java create the stubs automatically, then of course the 
location in soap:address is used by default.
So if you call the service from another machine than the where Axis is 
running on, you must of course fail.

Explicitly set the location before service-invocation with something 
like the following: portAddress;
portAddress = new
    "http://serverAxisRunsOn:8080/axis/services/HakansService" );
XXXLocator loc = new XXXLocator();
YYY myService = loc.getYYY(portAddress);

Did this help?


Rosén Håkan wrote:

> Hi,
> I have deployed a axis-service in Tomcat and written a small java-client
> that connects and calls methods in the service.
> This works fine when I run the client on my local machine, but when I try to
> run it from another machine the connection is refused,
> have I missed something here ?
> this is what I when running from a different machine
> Exception in thread "main" AxisFault
>  faultCode: {}Server.userException
>  faultSubcode:
>  faultString: Connection refused: connect
>  faultActor:
>  faultNode:
>  faultDetail:
>         {}stackTrace:
> Connection refused: connect
>         at Method)
> .....
> regards 
> /Håkan

View raw message