Author |
Message
|
CHAN |
Posted: Wed Mar 24, 2010 8:16 pm Post subject: hadling Https webservice calls |
|
|
Novice
Joined: 22 Mar 2010 Posts: 12
|
I have a flow that calls web service with the url secured.Flow is:
HTTP Input-->HTTP request-->Http reply
I got the certificates imported into cacerts folder of broker to make server authentications.
Even after importing i get the following error when i test the flow
An error occurred whilst performing an SSL socket operation. Operation: 'connect'. Error Text: 'javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target'.
This may be a temporary error, such as a server not responding, or a symptom of an invalid hostname or port number.
I imported X.509 certificates because i am calling a service that has the url https.
It looks like the server where the service is hosted is not properly configured to handle the request.
I came to know that nothing is wrong from the server side.
What do u think is the problem? |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Mar 24, 2010 11:48 pm Post subject: Re: hadling Https webservice calls |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
CHAN wrote: |
Even after importing i get the following error when i test the flow
An error occurred whilst performing an SSL socket operation. Operation: 'connect'. Error Text: 'javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target'.
I imported X.509 certificates because i am calling a service that has the url https.
It looks like the server where the service is hosted is not properly configured to handle the request.
I came to know that nothing is wrong from the server side.
|
i suggest you to test it using SOAPUI tool or nettool and see if it is getting connected or not. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
CHAN |
Posted: Sun Mar 28, 2010 7:57 pm Post subject: |
|
|
Novice
Joined: 22 Mar 2010 Posts: 12
|
Its working fine now.The reason for the error was from the provider of the service.Thank you |
|
Back to top |
|
 |
ari |
Posted: Fri Apr 23, 2010 7:35 am Post subject: |
|
|
Novice
Joined: 29 Apr 2007 Posts: 15
|
Hello Frndz,
I am facing the same kind of problem when connecting SSL through HTTPRequest.
SSL is working properly in my WMB7 version. That means when I click through browser ( https://localhost:7083/testHTTPS)it is asking for authantification.
Now I am trying to call the same flow through HTTPReuest flow.
Same broker and same execution group. In my local machine same broker has been usuing as a client and server.
There are two flows:-
1. HTTPInput - HTTPRequest- HTTPReply
2. HTTPInput (SSL one) - HTTPReply
When calling the 2nd flow (where the HTTPInput is SSL enabled) through HTTPRequest node I am getting the same error listed above by CHAN.
Have done Certificate and imported it into "cacerts" file.
Please suggest me if I am missing something?
Thanks and Regards,
Ari... |
|
Back to top |
|
 |
JohnSmith |
Posted: Fri Apr 23, 2010 10:42 pm Post subject: |
|
|
Voyager
Joined: 17 Mar 2010 Posts: 86
|
Quote: |
An error occurred whilst performing an SSL socket operation. Operation: 'connect'. Error Text: 'javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target'. |
ari worte:
Quote: |
When calling the 2nd flow (where the HTTPInput is SSL enabled) through HTTPRequest node I am getting the same error listed above by CHAN.
Have done Certificate and imported it into "cacerts" file.
Please suggest me if I am missing something?
|
Have you restarted the broker after you imported the cacerts?
Also verify whetehr the certificate are at in sync whatever is present in ur cacerts file to the certificate present on the server side. We do face similar problem when the certificate are not matching.
Do try all these and let us know if you still can not get it working. |
|
Back to top |
|
 |
|