Topic
No replies
Alpha13
Alpha13
1 Post
ACCEPTED ANSWER

Pinned topic Accessing JAX-WS CXF API (ClientProxy) in Liberty Profile

‏2014-01-22T08:15:41Z |

Hi,

Trying to use JAX-WS webservice client on Liberty Profile.

Need to specify custom SSLSocketFactory for providing client SSL certificate.

In Full Profile I've used CXF ClientProxy class for that purposes:

Client client = ClientProxy.getClient(servicePort); 
HTTPConduit conduit = (HTTPConduit) client.getConduit(); 
conduit.getTlsClientParameters().setSSLSocketFactory(customSSLSocketFactory);

Unfortunately in Liberty Profile it doesn't work, the following error is thrown:

java.lang.ClassNotFoundException: org.apache.cxf.frontend.ClientProxy

The required classes are present in com.ibm.ws.org.apache.cxf-rt-frontend-simple.2.6.2_1.0.0.jar (located in Liberty Profile lib folder).

I've specified the following parameter in server.xml (for accessing thrid-party cxf library):

apiTypeVisibility="spec,ibm-api,third-party"

But it still doesn't work.

What can I be doing wrong?

Thanks in advance.