axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Bargnesi <abargn...@gmail.com>
Subject No connection to webservice from outside localhost, Please Help.
Date Thu, 19 Jan 2006 19:12:04 GMT
Hello all,

I have recently deployed a webservice with Axis to a production machine.  I
was originally able to call the webservice and receive a response but any
attempts
to access the webservice from outside fail.  I can access the deployed
webapp
but not the webservice.

I ran packet monitoring on my webservice server and discovered no incoming
packets
from the client who was sending the request out.  When I called the
webservice URL
directly from the client I was able to see packet traffic.  But when the
webservice call
is made it hangs and no traffic is visible.  It hangs indefinately on
Call.invoke().  My
testcase client code is the following:

public void setUp() {
        //Create Axis Call object to represent call to webservice defined
        //in url.
        try {
            _wsCall = new Call(URL);
            _wsCall.setUsername("user");
            _wsCall.setPassword("pass");
        } catch (MalformedURLException e) {
            fail();
        }
}

public void testSuccessfulWebServiceCall() {
        try {
            Object[] requestParameters = new Object[] { "test@mail.com",
                    "test@mail.com;test@mail.com",
                    "test@mail.com;test@mail.com",
                    "test@mail.com;test@mail.com",
                    Calendar.getInstance().getTime(), "Test WS",
                    "Testing...", new Integer(0) };

            //Invoke the call to the webservice.
            Object result = _wsCall.invoke("urn:services.test.com",
"addEmailActivity", requestParameters);
            System.out.println("WebService returned code: " + (((Integer)
result).intValue() == 0 ? "SUCCESS" : "FAILURE"));
            assertEquals(((Integer) result).intValue(), 0);
        } catch (AxisFault e) {
            e.printStackTrace();
        }
}

Is there any reason why a someone on a WAN would not be able to see my
webservice?  Is there possibly some way to debug this on the client side,
because
it acts like it never even makes the request?

It just hangs forever...  ?

Thanks,

Anthony Bargnesi

Mime
View raw message