variables and SSL in route rule of proxy endpoint

Not applicable

I am calling backend in proxy endpoint.

  1. can I use https endpoint in proxy endpoint ?
  2. I get malformed error when I use variables in route rule. Can I use variables in route rule url ?
<RouteRule name="default">
<URL>https://{url}/abc/{orderId}/xyz?query={pqr}</URL>
<SSLInfo><Enabled>true</Enabled></SSLInfo>
</RouteRule>
0 4 962
4 REPLIES 4

Not applicable

@ansmayank

1:Yes, i believe you can use https in proxy endpoints.As you must already including <VirtualHost>secure</VirtualHost> to hit your api's via https.

2:What's the exact error you have received.Have you extracted or store those dynamic values before forming an url.

Also why you are not mentioning target endpoint details in route rules? any specific reason.

yes that url and endpoint url has been tested with service call out policy earlier, now I am testing it with;

1) Proxyendpoint only config

2) Proxy endpoint and Target endpoint both

Currently I am implementing it for 1) st scenario.

I am getting following error while saving route rule in proxy endpoint;

Error Saving Revision

com.apigee.messaging.config.beans.SSLInfo cannot be cast to com.apigee.messaging.config.beans.TargetConnection.

I doubt that SSL and variable work in route rule as I haven't seen it as example in community posts and Apigee doc yet.

Also when I remove SSL part of cofig;

<RouteRule name="default">
<URL>http://{url}/abc/{orderId}/xyz?query={pqr}</URL>
</RouteRule>

I get Error Saving Revision , Malformed URL "http://...................." message while saving this. So it seems variable sare also not allowed.

@ansmayank

It look like so that customizing variable are not allowed in route rules.