soap monitor behavior w/ soapui as client vs an external java program as client
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2009
03:55 PM
10-12-2009
03:55 PM
soap monitor behavior w/ soapui as client vs an external java program as client
Ole/Robert,
I observed that soapui monitor interaction changes when I issue a web service request using soapui as a client vs when issued the same request using external java app as client. Here are more details on scenario:
Using soap monitor as http tunnel when:
1. Our application sends a message X with ssl cert abcd.pfx attached to it to an external web service. If I test this behavior within soapui where I use soapui as my client and send this message X with ssl cert to external web service it works fine. That is to say that soap monitor setup as http tunnel captures messages as expected.
soapui client => sends message X with ssl cert => soap monitor as http tunnel at localhost:8081 => ext web service
2. Now if I use our application as a client to send message X with ssl cert abcd.pfx to the same web service and try to capture messages using exact same soap monitor set up exact same way then that does not work. instead I see an error in our application log.
java app => sends message X with ssl cert => soap monitor as http tunnel at localhost:8081 => ext web service
The error I see in application log is result of interaction between our app and soap monitor and this error is:
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
What could be going wrong here?
Thanks,
Sachin
I observed that soapui monitor interaction changes when I issue a web service request using soapui as a client vs when issued the same request using external java app as client. Here are more details on scenario:
Using soap monitor as http tunnel when:
1. Our application sends a message X with ssl cert abcd.pfx attached to it to an external web service. If I test this behavior within soapui where I use soapui as my client and send this message X with ssl cert to external web service it works fine. That is to say that soap monitor setup as http tunnel captures messages as expected.
soapui client => sends message X with ssl cert => soap monitor as http tunnel at localhost:8081 => ext web service
2. Now if I use our application as a client to send message X with ssl cert abcd.pfx to the same web service and try to capture messages using exact same soap monitor set up exact same way then that does not work. instead I see an error in our application log.
java app => sends message X with ssl cert => soap monitor as http tunnel at localhost:8081 => ext web service
The error I see in application log is result of interaction between our app and soap monitor and this error is:
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
What could be going wrong here?
Thanks,
Sachin
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009
01:23 AM
10-13-2009
01:23 AM
Hello,
This is problem with certificates, basically you need to add them to key store and trust store. Here is nice how-to about this problem: http://www.java-samples.com/showtutorial.php?tutorialid=210 . This should explain how to set up them.
Let me does this helps,
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
This is problem with certificates, basically you need to add them to key store and trust store. Here is nice how-to about this problem: http://www.java-samples.com/showtutorial.php?tutorialid=210 . This should explain how to set up them.
Let me does this helps,
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009
09:20 AM
10-13-2009
09:20 AM
I am using these certs on soap monitor. I am sending a cert to soap mon and using the keystore, truststore having this cert with soap monitor. Do I also need to configure truststore and keystore for my java client?
Sachin
Sachin
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009
01:05 AM
10-14-2009
01:05 AM
Hello,
I think that could help.
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
I think that could help.
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
