On Thursday, April 19, 2012 01:10:14 AM yuflyud wrote:
> Hello,
>
> Today I tried to call web-services using generated stub and everything
> worked fine. When I use Dispatch API for that purpose I set the Soap
> action manually (specify the operation that I want to call), define
> StreamSource object of request XML (with root element <..operation
> name..>).
You MAY also need to do:
dispatch.getRequestContext().put(MessageContext.WSDL_OPERATION,
new QName(ns, operationName));
to let CXF know which operation you are calling. That may work. We've
recently added some ability to look into the Source objects to match the
operation, but with a StreamSource, I'm not sure if we try or not. Just
specifying the operation like above would avoid quite a bit of extra work
though.
Dan
>
>
> But it does not encrypt body of the message as this part is specified in
> wsdl as
>
>
> ...
> ...
>
> When I put this policy within element everything works fine.
>
>
>
> How should I resolve this policy reference for specific operation?
>
> Thanks
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-to-resolve-PolicyReference-using-Disp
> atch-API-tp5651158p5651158.html Sent from the cxf-user mailing list
> archive at Nabble.com.
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com