• Post Reply Bookmark Topic Watch Topic
  • New Topic

Secure Web Service

 
angel alejo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, im trying to connect to a web service but its difficult because i need to authenticate with a private key and certificate

this is the URL
https://intgnominarecepcion.cloudapp.net/NominaRecepcion.svc?wsdl

I develop a stand alone aplication with netbeans.

I already import ssl certificates to handshake but the problem is that i dont know how to indicate the authentication certificate and private key.

How can i add this to the java code?

this is my soap request:



i imported the key and certificate to p12 format but i dont know where to specify java to took it.

Any help would be accepted. thanks.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
clicking on this link
https://intgnominarecepcion.cloudapp.net/NominaRecepcion.svc?wsdl

giving privacy error

any other resource to view your wsdl?
 
angel alejo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this and this

these might help you
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a library for communicating with this webservice?
What does your code look like for talking to the service?

Rampart is the Axis2 module dealing with security which should help you with keys and certificates.


 
angel alejo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I generated it with as netbeans client. and just call the method like this:

 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use this link link
 
angel alejo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thank you all. It finally works.

In netbeans when i generated my web service client there is a property of the Web service where you can add a keystore. That was my solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!