Hi,
Im using Apache cxf core 3.x jars.
Im trying to consume a wcf wshttpbinding web service which has
authentication.
I added the authentication like this :
Map ctx =
((BindingProvider)ss.getPort(IService1.class)).getRequestContext();
ctx.put("ws-security.username", username);
ctx.put("ws-security.password", password);
org.apache.cxf.endpoint.Client client =
ClientProxy.getClient(port);
org.apache.cxf.endpoint.Endpoint cxfEndpoint =
client.getEndpoint();
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(ctx);
cxfEndpoint.getOutInterceptors().add(wssOut);
However , whenever i call the web service i always get :
javax.xml.ws.soap.SOAPFaultException: No signature token
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy44.getTansactionAuthorization(Unknown Source)
at
com.microsoft.schemas._2003._10.serialization.Teste.main(Teste.java:48)
Caused by: org.apache.cxf.ws.policy.PolicyException: No signature token
Can someone please advise the issue here.
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/Creating-a-client-for-WCF-wshttpbinding-tp5777965.html
Sent from the cxf-user mailing list archive at Nabble.com.