• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL SOAP Web Service

 
Mike Phillips
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create SSL SOAP Web Services. My web services will call Existing 3rd party Web Services.

I have already created the cert and it does work. I am using it within SoapUI. I can set my cert in the preferences then create request and data is pulled back.

Now I want to add the same functionality to my Eclipse web service projects. My approach is to write a class that adds the cert information using the System.setProperty() methods then invoke the web service with the parameters ... In this case there are two String parameters, however, the second parameter is a number but I'm sending it as a String (i.e. "2") which is what is expected by the receiving web service.

After running my code I get the following error...

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NumberFormatException: For input string: ""
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NumberFormatException: For input string: ""
...

I'm not sure if the numeric String parameter is a problem or not. I would very surprised if it was a problem since these web services I'm trying to access are being used by other 3rd party apps.

Any ideas would be very appreciated.
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get an idea how to use SSL in SOAP webservice http://www.webtuts.in/using-sslsecure-socket-layer-in-jax-ws-webservice/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!