WS-Addressing https://www.w3.org/Submission/ws-addressing/ is a standard for adding addressing information to SOAP Messages (since this is part of the underlying protocol). Mule does not add these headers by default. This article explains how to add them.
Certain WSDLs require adding WS-Addressing headers before calling the Web Service. If you don't send this header, the Web Service will return a "SoapFault: A required header representing a Message Addressing Property is not present"
For adding a WS-Addressing header before calling a Web Service in a Mule application, you have to add an outbound Property to your application (search for "Property" in the Mule Palette in Anypoint Studio).
For example, for adding a wsa:To
Name: soap.To
Value: <wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://my-service.server.com/APIService</wsa:To>
For adding a WS-Addressing header before calling a Web Service in a Mule application, you have to set the header using Dataweave, inside the configuration of the Web Service Consumer event.
For example, for adding a wsa:To
DataWeave Expression:
%dw 2.0
output application/xml
ns wsa http://www.w3.org/2005/08/addressing
---
{
headers: [{
wsa#To: "http://my-service.server.com:port/APIFolder/APIService"
}]
}
Related articles:
Asynchronous CXF WS Addressing Example
001114596

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.