cancel
Showing results for 
Search instead for 
Did you mean: 

NW calling WS over HTTPS

former_member184385
Active Participant
0 Kudos

Hi,

in NWDS, I created a standalone WS client project and created the proxy classes, based on

a 3rd party WS' WSDL.

HTTPS is used, to talk to the WS

At the attempt to call the WS method login

SoapBindingStub stub = new SoapBindingStub();

LoginResult loginResult = stub.login( "usr", "pwd" );

The following exception is thrown

iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure

Any ideas, what has to be done, to get the NW WS stack to talk HTTPS?

Do I need to do any magic with the SecurityProtocol or AuthenticationContext objects?

Ps. Using stunnel as HTTP to HTTPS gateway, the login method worked!?

Regards

Gregor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gregor,

does <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a0/a5d13f83a14d21e10000000a1550b0/frameset.htm">this page</a> from the docs help?

former_member184385
Active Participant
0 Kudos

Hi Ivaylo,

the help artikel states

SSL + Web Service Proxy:

The Web service called by the proxy must support SSL and have a URL starting with https. Besides entering an URL with https:// no further configuration is needed at design time.

Again at squere one ...

Regards

Gregor

Answers (1)

Answers (1)

0 Kudos

Hello Gregor,

We have to use stunnel as encryption/decryption tool while communicating with third party broker with our webservice hosted on our system.

Can you please help us by letting us know how we can configure Stunnel so that the messages flowing to and fro from the webservice to third party broker can be encrypted/decrypted throughout the process.

your help would be highly appreciated as we are in a critical situation.

Thanks

Parvez