Web Services with Client Certificate

Forums for specific tips, techniques and example code
torrie
Posts: 92
Joined: Fri Aug 14, 2009 11:24 am

Web Services with Client Certificate

Postby torrie » Wed Mar 14, 2012 3:24 pm

I've just tried to access a web service from within Jade. The web service requires a client side certificate. When accessing web service for the WSDL in a web browser, I'm prompted to select the certificate. When making a web service call from within Jade, there is no prompt. I can't see any reference to certificates within the Jade documentation (with reference to Web Services.)

I can see the JadeX509Certificate class within Jade, but can't see any way of connecting this with the web service consumer class.

Does anyone know how to specific the client certificate to use when calling a web service method?

Do I need to reimplment the web services consumer's invoke method and use a TCPIP connection with appropriate certificate to send the HTTP message to the web service host?

murray
Posts: 144
Joined: Fri Aug 14, 2009 6:58 pm
Location: New Plymouth, New Zealand

Re: Web Services with Client Certificate

Postby murray » Wed Mar 14, 2012 3:56 pm

If you subclass the Jade WebService classes and reimplement the key methods you can do pretty much what you like. You don't even have to use TCP/IP, or standard communications. As usual, whenever you step aside from the recommended path you find there is exponentially more and more stuff that you need to build yourself. (I had a previous post on this related to Jade Direct Web Services: https://forums.jadeworld.com/viewtopic. ... 1809#p6540).

By the way, a while back we had to implement a SOAP call to a service requiring full WS-Security which wasn't supported in Jade at the time, so we implemented an external (to Jade) gateway that managed the certificates. I recently checked with Jade for an update WRT Jade 6.3, but the required WS-Security was still not supported. However, it has been added in Jade 7, by way of importing a .NET library.
Murray (N.Z.)


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 14 guests

cron