question

njprnd-6575 avatar image
0 Votes"
njprnd-6575 asked ·

Adding ws-addressing "To" in APIM policy set-header or set-body

From APIM, I am calling a WCF backend service, which expects ws-addressing "To" set as default or to a certain value. Tried below combination but no luck <set-header name="Content-Type" exists-action="override"> <value>application/soap+xml; charset=utf-8; Action="http://tempuri.org/Iwap"; To="https://message-dev.abc.org.au/Services/Iwap.svc"</value>; </set-header> <set-header name="SOAPAction" exists-action="override"> <value>http://tempuri.org/Iwap</value>; </set-header> <set-header name="SOAPTo" exists-action="override"> <value>https://message-dev.abc.org.au/Services/Iwap.sv</value>; </set-header> still get this error The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.

azure-api-management
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @njprnd-6575, Thank you for reaching out. I am currently working on the issue faced, I will share my updates soon.

0 Votes 0 ·
ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered ·

Hello @njprnd-6575,
You can try setting the <wsa:To> header in following manner.

         <set-body template="liquid">
             <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://tempuri.org/" >
                 <soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
                     <wsa:To>https://message-dev.abc.org.au/Services/Iwap.svc</wsa:To>
                 </soap:Header>
                 <soap:Body>
                 </soap:Body>
             </soap:Envelope>
         </set-body>

Please let me know if there are any additional concerns, I will be glad to continue with our discussion. Thank you!





·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

njprnd-6575 avatar image
0 Votes"
njprnd-6575 answered ·

Thank you Chaitanya, this works.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.