You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ssigabudeen <ss...@qatarairways.com.qa> on 2012/04/04 13:59:48 UTC
JAX-WS client consuming WCF(wsHttpBinding)services.
Hi,
Looking for your inputs.
I need to consume WCF service(wsHttpBinding) enabled through jax-ws client.
I tried with the proxy classes created through JAX-WS, got the error
message "javax.xml.ws.soap.SOAPFaultException: An error occurred when
verifying security for the message."
Service service = new Service(urlAddress);
IService iService = service.getWso2InteropBindingIService(new
AddressingFeature(true, true));
BindingProvider bp = (BindingProvider) iService;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
address);
iService.getData(10);
Kindly let me know the steps if i need to use the certificates.
I have .pfx file and converted the same to .jks file.
Thanks & Regards
Jawahar
--
View this message in context: http://cxf.547215.n5.nabble.com/JAX-WS-client-consuming-WCF-wsHttpBinding-services-tp5617562p5617562.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: JAX-WS client consuming WCF(wsHttpBinding)services.
Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, April 04, 2012 04:59:48 AM ssigabudeen wrote:
> Hi,
>
> Looking for your inputs.
> I need to consume WCF service(wsHttpBinding) enabled through jax-ws
> client. I tried with the proxy classes created through JAX-WS, got the
> error message "javax.xml.ws.soap.SOAPFaultException: An error occurred
> when verifying security for the message."
>
> Service service = new Service(urlAddress);
> IService iService = service.getWso2InteropBindingIService(new
> AddressingFeature(true, true));
> BindingProvider bp = (BindingProvider) iService;
> bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
> address);
> iService.getData(10);
>
> Kindly let me know the steps if i need to use the certificates.
> I have .pfx file and converted the same to .jks file.
You would need to look into the WS-SecurityPolicy in the WSDL to figure out
what policies it is expecting. For the most part, it's then just filling
in properties on the request context. See:
http://cxf.apache.org/docs/ws-securitypolicy.html
for details.
Dan
>
> Thanks & Regards
> Jawahar
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/JAX-WS-client-consuming-WCF-wsHttpBinding
> -services-tp5617562p5617562.html Sent from the cxf-user mailing list
> archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com