cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message Validation Policy of API Management is not validating the payload

Hira
Participant
0 Kudos
260

Good Day Reader,

I am facing issue while trying to validate SOAP Payload which internally calling a SOAP API (which makes a RFC call).

On proxy endpoint I am trying to apply a Message Validation Policy. But policy is not getting validated somehow and passing invalid payload to SOAP API (target endpoint). 

Message Validation

<MessageValidation async="false" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
<Element namespace="urn:sap-com:document:sap:rfc:functions">ZSD_ESALES_TRUCKS_LIST</Element>
<Source>request</Source>
<ResourceURL>wsdl://ZSD_ESALES_TRUCKS_LIST.wsdl</ResourceURL>
</MessageValidation>

 

View Entire Topic
VCIntegration
Newcomer
0 Kudos

try add <SOAPMessage version= "1.1/1.2" /> to your policy. 

<MessageValidation async="false" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
<Element namespace="urn:sap-com:document:sap:rfc:functions">ZSD_ESALES_TRUCKS_LIST</Element>
<SOAPMessage version= "1.1/1.2" />
<Source>request</Source>
<ResourceURL>wsdl://ZSD_ESALES_TRUCKS_LIST.wsdl</ResourceURL>
</MessageValidation>