« Return to Thread: Unit Testing a BPEL via SSL

Re: Unit Testing a BPEL via SSL

by Jason Baragry-2 :: Rate this Message:

Reply to Author | View in Thread

I tried this once and had the same issues. The built in soap unit-tester
doesn't support https and I couldn't get soapui to use my certificates.

I found two approaches.
- use curl which has good certificate support. (I haven't tried it)
- add a new HTTP BC SU that does BC to BC communication. It should be
configured to accept external http requests and pass https msgs to your
HTTP BC SU that provides the https interface for your bpel. This worked
for me.

rgds
J

jsexton0 wrote:

> Is in possible to create a test in Netbeans for a WSDL accessed via https?
>
> I have a working BPEL, to which I added a new WSDL having an https address
> at port 9181.  I can retrieve the WSDL with Firefox, and I can create a new
> test in the SA project.  However when I run the test, it fails to get into
> the BPEL:
>
> May 22, 2009 12:40:29 PM
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
> SEVERE: SAAJ0009: Message send failed
> com.sun.xml.messaging.saaj.SOAPExceptionImpl:
> java.security.PrivilegedActionException:
> com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
>         at
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:146)
> ...
> Caused by: java.security.PrivilegedActionException:
> com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
>         ... 3 more
> Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
>         at
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:344)
>         at
> com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
>         ... 5 more
> Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>         at
> com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
>
> I tried using SoapUI but there's a simular problem there I guess.
>
> Is there a way to test the BPEL via https from Netbeans, SoapUI or any other
> tool?  Thank you
>  

--
<http://www.java.com> * Jason Baragry *
Senior Solution Architect
Software Practice
*Sun Microsystems, Inc.*
Central & Northern Europe
Phone x43697/+47-23-369 697
Mobile +47 4899 4603
Email Jason.Baragry@...
<http://www.java.com>

 « Return to Thread: Unit Testing a BPEL via SSL