on 03-10-2009 5:46 AM
hi SDNer
I use Standalone proxy to call external web service(SSL + anonymous)
web service Endpoint is : https://localhost:8443/HelloWorldService/services/HelloWorld
NWDS VERSION: NWDS-IDE-700SP12
Standalone SEI is :
HelloWorld
HelloWorldHttpBindingStub
HelloWorldImpl
HelloWorldPortType
Calling Code as following:
//1. Access the implementation class of the service interface
HelloWorldImpl ws = new HelloWorldImpl();
//2. Create the instance of a logical port
Remote remote = ws.getLogicalPort();
HelloWorldHttpBindingStub stub = (HelloWorldHttpBindingStub) remote;
//3.
SecurityProtocol securityProtocol =
(SecurityProtocol) stub._getGlobalProtocols().getProtocol(
"SecurityProtocol");
AuthenticationContext ac =
securityProtocol.getAuthenticationContext();
ac.setIgnoreSSLServerCertificate(true);
//4. invoke the business methods
String ver = stub.example(str1, str2);
Exception is :
java.rmi.RemoteException: Service call exception; nested exception is:
iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
at com.sap.ws.HelloWorldHttpBindingStub.example(HelloWorldHttpBindingStub.java:84)
at com.sap.ws.HelloWorldHttpBindingStub.example(HelloWorldHttpBindingStub.java:94)
at TestHelloWorld.wsHelloWorld(TestHelloWorld.java:55)
at TestHelloWorld.main(TestHelloWorld.java:24)
Caused by: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
at iaik.security.ssl.r.f(Unknown Source)
at iaik.security.ssl.x.b(Unknown Source)
at iaik.security.ssl.x.a(Unknown Source)
at iaik.security.ssl.r.d(Unknown Source)
at iaik.security.ssl.SSLTransport.startHandshake(Unknown Source)
at iaik.security.ssl.SSLTransport.getOutputStream(Unknown Source)
at iaik.security.ssl.SSLSocket.getOutputStream(Unknown Source)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:669)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:470)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:427)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:355)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:550)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1432)
at com.sap.ws.HelloWorldHttpBindingStub.example(HelloWorldHttpBindingStub.java:77)
... 3 more
This error message
"iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure" is described in OSS note
Note 1157248 - SAP Business Connector with SSL / Common Problems
Pls take opinion from SAP / Basis before implementing the note
Regards
Madhan D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Answer is pure assumption
The error "iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure" is mentioned in the the OSS note
Note 1157248 - SAP Business Connector with SSL / Common Problems
Pls take opinion from SAP / Basis before implementing the note
Regards
Madhan D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.