Regarding the concept "Why Proxy EndPoints?"

,

I created the proxy end point v2Echo, updated the basepath and added the json to xml policy from preflow's response as explined by @Anil Sagar @ Google. When I make the api call from browser with /v2/echo, it is showing fault. Why?

0 3 65
3 REPLIES 3

Not applicable

it looks your proxy endpoint is not having any target. It seems going to fault rules. Can you share the code?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ProxyEndpoint name="v2Echo"> <Description/> <FaultRules/> <PreFlow name="PreFlow"> <Request/> <Response> <Step> <Name>JSON-to-XML-1</Name> </Step> </Response> </PreFlow> <PostFlow name="PostFlow"> <Request/> <Response/> </PostFlow> <Flows/> <HTTPProxyConnection> <BasePath>/v2/echo</BasePath> <Properties/> <VirtualHost>default</VirtualHost> </HTTPProxyConnection> <RouteRule name="default"> <TargetEndpoint>default</TargetEndpoint> </RouteRule> </ProxyEndpoint>

Yes, in you code you have target endpoint as default. Do you have target endpoint?

If not then create target endpoint or else remove the target endpoint one and put route rule as no route.