In trying to convert an existing SOAP API to REST in Apigee Edge receiving this error message...Manually setting up API with a path parameter. Any help appreciated. Links or suggestions. Thanks.
It seems you have attached the policy in the request flow where the response is not available.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <XMLToJSON async="false" continueOnError="false" enabled="true" name="XML-to-JSON-1"> <DisplayName>XML to JSON-1</DisplayName> <Properties/> <Format>yahoo</Format> <OutputVariable>response</OutputVariable> <Source>response</Source> </XMLToJSON>
Normally it looks like above when you try to convert response from xml to json. In this case the content type should be xml in the response.
"<Source>response</Source>" this is the part which creates error for you.
BTW, here's a screencast/video explaining how to do this.
Older video, and the Apigee UI has been updated since then. But the approach illustrated in the video is still relevant.