This is the wsdl:
http://demo.wsabi.org/axis/services/YahooUserPingService?wsdl
This is the endpoint :
http://demo.wsabi.org/axis/services/YahooUserPingService
I can access them both through my browser but I cannot connect to them using the wizard generated proxy code in WAS6.
This is the error I am getting :See [1].
This is how I am calling the proxy:
try {
YahooUserPingProxy u = new YahooUserPingProxy();
System.out.println("Online? " + u.isUserOnLine("athar...@yahoo.com"));
} catch (Exception e) {
System.out.println("E " + e);
}
This is what the proxy is doing :
public class YahooUserPingProxy implements org.wsabi.demo.YahooUserPing {
private String _endpoint = null;
private org.wsabi.demo.YahooUserPing yahooUserPing = null;
public YahooUserPingProxy() {
_initYahooUserPingProxy();
}
private void _initYahooUserPingProxy() {
try {
yahooUserPing = (new org.wsabi.demo.YahooUserPingServiceLocator()).getYahooUserPingService();
if (yahooUserPing != null) {
if (_endpoint != null)
((javax.xml.rpc.Stub)yahooUserPing)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
else
_endpoint = (String)((javax.xml.rpc.Stub)yahooUserPing)._getProperty("javax.xml.rpc.service.endpoint.address");
}
}
catch (javax.xml.rpc.ServiceException serviceException) {}
}
public boolean isUserOnLine(java.lang.String in0) throws java.rmi.RemoteException{
if (yahooUserPing == null)
_initYahooUserPingProxy();
return yahooUserPing.isUserOnLine(in0);
}
--
This is the service locator which is calling the endpoint (reference in the proxy code):
public class YahooUserPingServiceLocator extends org.apache.axis.client.Service implements org.wsabi.demo.YahooUserPingService {
// Use to get a proxy class for YahooUserPingService
private final java.lang.String YahooUserPingService_address = "http://demo.wsabi.org/axis/services/YahooUserPingService";
public java.lang.String getYahooUserPingServiceAddress() {
return YahooUserPingService_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String YahooUserPingServiceWSDDServiceName = "YahooUserPingService";
public org.wsabi.demo.YahooUserPing getYahooUserPingService() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(YahooUserPingService_address);
}
catch (java.net.MalformedURLException e) {
return null; // unlikely as URL was validated in WSDL2Java
}
return getYahooUserPingService(endpoint);
}
---
[1]
---
Aug 7, 2006 12:32:49 PM org.apache.axis.client.Call invoke
INFO: Mapping Exception to AxisFault
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.net.SocketException: Operation timed out: connect:could be due to invalid address
faultActor: null
faultDetail:
stackTrace: java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.connect(Socket.java:428)
at java.net.Socket.<init>(Socket.java:335)
at java.net.Socket.<init>(Socket.java:150)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:131)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at org.wsabi.demo.YahooUserPingServiceSoapBindingStub.isUserOnLine(YahooUserPingServiceSoapBindingStub.java:82)
at org.wsabi.demo.YahooUserPingProxy.isUserOnLine(YahooUserPingProxy.java:45)
at test.TestClient.main(TestClient.java:22)
java.net.SocketException: Operation timed out: connect:could be due to invalid address
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at org.wsabi.demo.YahooUserPingServiceSoapBindingStub.isUserOnLine(YahooUserPingServiceSoapBindingStub.java:82)
at org.wsabi.demo.YahooUserPingProxy.isUserOnLine(YahooUserPingProxy.java:45)
at test.TestClient.main(TestClient.java:22)
Caused by: java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.connect(Socket.java:428)
at java.net.Socket.<init>(Socket.java:335)
at java.net.Socket.<init>(Socket.java:150)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:131)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118)
... 12 more
E java.net.SocketException: Operation timed out: connect:could be due to invalid address
<arthur...@gmail.com> wrote in message
news:917470236.1154969945...@ltsgwas010.sby.ibm.com...
I can access the wsdl and the service when I type in the endpoint url with both the ip and the fqdn.
What gives?