• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

SSL SOAP Web Service

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic