S
Syypher
I created a web service on my Tomcat server and utilized some sample
code I found to access the web server and retrieve data. However,
after moving the web service to be utilized over SSL, things went awry.
The code I used for accessing it is as follows:
String endpoint =
"http://localhost:8080/piApp/services/DynamicRatings";
Service service = new Service();
try {
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName( "getRatings" );
call.setReturnType( XMLType.XSD_STRING );
String retVal = (String) call.invoke( new Object [] { });
out.println(retVal);
}
catch (ServiceException s)
{
}
The problem is that java.net.URL doesn't seem to support https. So,
I'm wondering if anyone can point me to some sample code for accessing
a web service over ssl. Any help would be greatly appreciated.
Regards,
Lee
code I found to access the web server and retrieve data. However,
after moving the web service to be utilized over SSL, things went awry.
The code I used for accessing it is as follows:
String endpoint =
"http://localhost:8080/piApp/services/DynamicRatings";
Service service = new Service();
try {
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName( "getRatings" );
call.setReturnType( XMLType.XSD_STRING );
String retVal = (String) call.invoke( new Object [] { });
out.println(retVal);
}
catch (ServiceException s)
{
}
The problem is that java.net.URL doesn't seem to support https. So,
I'm wondering if anyone can point me to some sample code for accessing
a web service over ssl. Any help would be greatly appreciated.
Regards,
Lee