Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HTTP transport error!

843834Apr 15 2002 — edited Apr 15 2002
Hello 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2002
Added on Apr 15 2002
2 comments
448 views