Jeroen van Veldhuizen
Jeroen van Veldhuizen

Reputation: 176

WSO2 esb api does not interpret xml when SOAPAction present

I have an Oracle SOA HTTP Binding that sends the XML message into WSO2 ESB. This message (incorrectly) contains a SOAPAction header. When this header is present, ESB gives the error: org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found . How can I fix this?

Upvotes: 0

Views: 371

Answers (1)

Chanaka udaya
Chanaka udaya

Reputation: 5316

WSO2 ESB does not have any issues with processing SOAPAction header. According to the error exception you are getting, it is related to the content-type of your request. Please check on the content-type of the message coming in to ESB. If the content type is text/xml, then ESB expects a SOAP message and in this particular scenario, you will get this exception if the message does not contain the soap header. If it is not a SOAP message, then change the content-type to application/xml.

Upvotes: 1

Related Questions