HTTP transport error!
843834Apr 15 2002 — edited Apr 15 2002Hello All,
I use xrpcc in Web Service EA1 to generate client files from a WSDL file.
it's at
http://sal006.salnetwork.com:83/retail/Countries/CCountries.xml
from the web site
http://www.salcentral.com/asp/srch.asp?SRCH=country
I use JDK1.4 as Java runtime.
My client code is as follows:
package CCountries;
public class Client {
public static void main(String[] args) {
try {
CCountries.Countries.ccountriesPort_Stub stub =
(CCountries.Countries.ccountriesPort_Stub)(new CCountries.Countries.ccountriesServiceImpl().getccountriesPort());
stub._setTargetEndpoint("http://sal006.salnetwork.com:82/bin/lccountrycodes.cgi");
System.out.println(stub.isValidCountryID(123));
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
and after I compile it,and start the tomcat server packaged with the Java Web Service EA1(which I dont know if I need to start the server as I am only a client).
Then when I run the client,error occurs:
java.rmi.RemoteException: HTTP transport error: java.net.ConnectException: Conne
ction refused: connect; nested exception is:
HTTP transport error: java.net.ConnectException: Connection refused: con
nect
at CCountries.Countries.ccountriesPort_Stub.isValidCountryID(Unknown Sou
rce)
at CCountries.Client.main(Client.java:10)
Caused by: HTTP transport error: java.net.ConnectException: Connection refused:
connect
at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTran
sport.java:169)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:59)
... 2 more
Can any one help me? In fact I have download many wsdl from this site but none
runs successfully. Can anyone suggest a new site for me?Or is this only the problem
of mine?
Thank you very much in advance.