Yes it works! Thank you! What is you advise about Source implementation to use (DOMSource, SAXSource..)? Also I have one more issue: When server returns fail it looks like this:
Action name: <a:Action s:mustUnderstand="1" u:Id="_4">http://.../ExecuteOrganizationServiceFaultFault</a:Action> Body is encrypted. It's OK, but the following exception is thrown: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:407) ... ... ... Exception in thread "main" java.lang.NullPointerException at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:454) at com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultRole(Fault1_2Impl.java:338) at com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultActor(Fault1_2Impl.java:574) at org.apache.cxf.jaxws.JaxWsClientProxy.createSoapFault(JaxWsClientProxy.java:219) at org.apache.cxf.jaxws.DispatchImpl.mapException(DispatchImpl.java:278) at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:389) at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:242) at com.ibi.xrmclient.XRMClient.main(XRMClient.java:76) Why can't I retrieve the body of the message? I know that there is an error description there. -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-resolve-PolicyReference-using-Dispatch-API-tp5651158p5662311.html Sent from the cxf-user mailing list archive at Nabble.com.
