Two Laptop Bag*
The moose likes Web Services and the fly likes Connecting to a secure webservice from within another webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Connecting to a secure webservice from within another webservice" Watch "Connecting to a secure webservice from within another webservice" New topic

Connecting to a secure webservice from within another webservice

m ski

Joined: Sep 04, 2012
Posts: 2

I asked this over on the oracle forum and did not get any responses. Maybe someone here can help out.

I have a project we will call Proxy, this project connects to a remote webservice over SSL, sends a SOAP query and then gets a SOAP response back. Proxy connects to the webservice and receives the correct response from the webservice.
Then I went ahead and created a new JAX-WS webservice we will call ContactWS.
This ContactWS project gets called and creates a query that will run through the Proxy project.
The Proxy project has been packed into a JAR and added as a library to the ContactWS project.

ContactWS gets loaded to a Web Logic 10.3.3 server and can receive requests.
When I send data to ContactWS to query through Proxy the trouble begins.

When Proxy logs into the remote webservice to query data, the login process fails. This is the same Proxy project that connects and query's data perfectly fine when not running from ContactWS.

I thought that ContactWS was not using my trustStore and keyStore properly - but I am fairly sure it does ( not 100% )

I set the trustStore and keyStore locations and password using System.setProperty(..., ...); in the Proxy project.

I have examined the SOAP packets and they are exactly how they need to be. And the SOAP packets from ContactWS match the ones from the Proxy project.

The error I get is from the company's proxy that funnels all traffic to the remote webservice. It is a "Policy Falsified" SOAP response that contains no more detail than that.
I can provide any finer details as needed, please ask, as I am unsure of what errors/logs are important.

Thank you for your time.

Here is the stack trace
I agree. Here's the link:
subject: Connecting to a secure webservice from within another webservice
Similar Threads
How to Create Custom SoapFault
Connection reset issue
java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Tran
@SchemaValidation on XSD JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation
Getting sql exception iBatis In exception just giving the name of the statement