In xml camel context I have create route with WS-SEC to do following proxy:

instead of sending a SOAP request *with WS-SEC *to `https://myapp/mymethod`
I want to send a SOAP request  *without WS-SEC * which add WS-SEC for me and
sent the request with added WS-SEC to `https://myapp/mymethod`

```
    <route id="myroute">
      <from id="xxxIn" uri="cxf:bean:myProxyEndpoint?dataFormat=CXF_MESSAGE"
/>
      <to id="xxxOut" uri="cxf:bean:myEndpoint?dataFormat=CXF_MESSAGE" />
    </route>
```


 but I get error:

```
  <soap:Body>
      <soap:Fault>
         <faultcode
xmlns:ns1="http://www.w3.org/2005/08/addressing";>ns1:MessageAddressingHeaderRequired</faultcode>
         <faultstring>A required header representing a Message Addressing
Property is not present</faultstring>
      </soap:Fault>
   </soap:Body>
```

The problem is simillar to this:
https://stackoverflow.com/questions/38332788/a-required-header-representing-a-message-addressing-property-is-not-present

As I understand I should add WS-Addressing to the request in my camel
context xml but I really don't know how to do this. How to construct it in
xml?



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-dev-f569328.html

Reply via email to