简体   繁体   中英

SoapMessageValidation Policy Apigee

I am trying to validate my yahoo weather response with xsd using Soap Message Validation policy. I am referring to xml which I get in response from http://weather.yahooapis.com/forecastrss?w=12797282

And I am receiving following error response: {"fault":"{\\"detail\\":{\\"errorcode\\":\\"steps.messagevalidation.Failed\\"},\\"faultstring\\":\\"MessageValidation soapmessagevalidation-1 failed with reason: \\\\"root element must be {http:\\/\\/schemas.xmlsoap.org\\/soap\\/envelope\\/}Envelope or {http:\\/\\/www.w3.org\\/2003\\/05\\/soap-envelope}Envelope [Line:2]\\\\"\\"}"}

Looks like your response is RSS 1.0 and is not SOAP. The error is about not finding expected SOAP elements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM