[ 
https://issues.apache.org/jira/browse/CXF-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805968#action_12805968
 ] 

amit rathi commented on CXF-2617:
---------------------------------

Dkulp,

Initially we wrote standalone client for consuming webservice operations in 
weblogic 8.1 integration server. where we load certificates,  create instance 
of service class & then port  sequentially. using  port  instance we call 
webservice operation. 

Below code represents standalone client code in weblogic 8.1 integration server:
----------------------------------------------------------------------------------------------------
                                                              SSLAdapterFactory 
factory = SSLAdapterFactory.getDefaultFactory();
                        WLSSLAdapter adapter = (WLSSLAdapter) 
factory.getSSLAdapter();
                        FileInputStream clientCredentialFile = new 
FileInputStream(
                                        CitraProperties.CLIENT_KEYSTORES);
                        String pwd = 
EncryptionUtil.decrypt(CitraProperties.SSL_PWD);
                        adapter.loadLocalIdentity(clientCredentialFile, 
pwd.toCharArray());
                        adapter.setVerbose(true);
                        
adapter.setTrustedCertificatesFile(CitraProperties.SERVER_KEYSTORES);
                        adapter.setStrictChecking(false);
                        factory.setDefaultAdapter(adapter);
                        factory.setUseDefaultAdapter(true);


Now we wrote standalone client in weblogic 10.3 application server. it is 
causing problems. here in weblogic 10.3, SSLAdapterFactory & WLSSLAdapter 
classes are deprecated. eventhogh they are deprecated, they must support the 
above functionality. can you suggest any alternative  way to acheive the same 
functionality in weblogic 10.3?

apart from that, we tried the sample example which you suggested. In that 
sample code, after creating service, port only, certificates are loaded and 
other properties are set to  httpConduit.setTlsClientParameters(tlsCP);

is it neccessary to create service, port first  before loading certificates & 
assign other properties?

regards
amit

> How to call 2 way SSL webservice from stand alone client with certificate?
> --------------------------------------------------------------------------
>
>                 Key: CXF-2617
>                 URL: https://issues.apache.org/jira/browse/CXF-2617
>             Project: CXF
>          Issue Type: Test
>            Reporter: amit rathi
>
> Hi,
> We have developed a webservice using CXF, & successfuly deployed it.
> We need to call a web service operation using 2-Way SSL from stand alone 
> client and from inside our web service from other operation.
> We have correct server certificate & trustStore.
> We tried a lot of ways but in vain.
> Can someone please tell us the excat way with some sample code, that how we 
> can do it?
> Thanks & Regards
> Amit Rathi

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to