Hi,
I am new to this field. I used axis to generate client stub from wsdl. Now I created a
java application and try to connect to the remote
soap server. But never sucessful, the error is "Connection refused". Soap server uses SSL. Where goes wrong? Here is my client code. Your help is highly apprecdated.
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class testClient
{
public static void main(
String [] args) {
try {
String endpoint =
"https://192.168.32.23:8080";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("https://192.168.32.23:8080", "echoString") );
call.setUsername("Admin");
call.setPassword("pwd");
String ret = (String) call.invoke( new Object[] { "Hello!" } );
System.out.println("Sent 'Hello!', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
}
}
}