Please help. I'm stressed and depressed.
I am trying to write a web service client using jax-rpc.
I downloaded
Java Web Services Development Pack from Sun and Java Web Services Tutorial.
I am now trying to develop my first ever Web Service client.
The web service I wish to use is hosted by ServiceObjects. See
http://www.serviceobjects.com/products/dots_email.asp .
I have run the WSDL document at
http://ws.serviceobjects.net/ev/EmailValidate.asmx?WSDL through the xrpcc.bat tool.
I received 2 warnings :
warning: ignoring port "EmailValidateHttpGet": no
SOAP address specified.
warning: ignoring port "EmailValidateHttpPost": no SOAP address specified.
I ignored these because I do not know what they mean. Ha ha.
I then wrote the client as so:
package com.walker.util.webservice;
import java.rmi.Remote;
import java.rmi.RemoteException;
import com.walker.util.webservice.emailvalidation.artifact.*; // Xrpcc generated artifacts.
public class EmailValidationClient {
public static void main(
String[] args) {
java.lang.String email = "
[email protected]";
java.lang.String licenseKey = "0"; // Use a license key of 0 for
testing.
try {
EmailValidateSoap stub = (new EmailValidate_Impl().getEmailValidateSoap() );
Email mail = stub.validateEmail(email, licenseKey);
System.out.println(mail.getDNSCheck() );
} catch (java.lang.Throwable trouble) {
System.out.println(trouble);
trouble.printStackTrace(System.out);
}
}
}
When I ran it I got :
java.rmi.RemoteException: HTTP transport error: java.net.ConnectException: Connection timed out: connect; nested exception is:
HTTP transport error: java.net.ConnectException: Connection timed out: connect
java.rmi.RemoteException: HTTP transport error: java.net.ConnectException: Connection timed out: connect; nested exception is:
HTTP transport error: java.net.ConnectException: Connection timed out: connect
at com.walker.util.webservice.emailvalidation.artifact.EmailValidateSoap_Stub.validateEmail(EmailValidateSoap_Stub.java:76)
at com.walker.util.webservice.EmailValidationClient.main(EmailValidationClient.java:46)
Caused by: HTTP transport error: java.net.ConnectException: Connection timed out: connect
at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:189)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
at com.walker.util.webservice.emailvalidation.artifact.EmailValidateSoap_Stub.validateEmail(EmailValidateSoap_Stub.java:60)
... 1 more
I am behind a firewall and use a proxy to connect to the internet. Not sure if that is the problem.
Please help, this is taking years off my life.
I appreciate any suggestions.