Retry Mechanism in APIGEE API

Not applicable

I am trying to call backend service. I have to handle a situation in which if I will get the INVALID_SESSION_ID fault from backend service I need to call the backend service with new Session ID. is it possible to call the backend service again in such scanario if yes, how to do it.

Solved Solved
1 4 2,423
1 ACCEPTED SOLUTION

Not applicable

Pls check this link http://apigee.com/docs/api-services/cookbook/implementing-http-clients-javascript

You can use javascript to make http calls .

waitForComplete() on first send and based on the response you can take necessary action .

View solution in original post

4 REPLIES 4

Not applicable

Pls check this link http://apigee.com/docs/api-services/cookbook/implementing-http-clients-javascript

You can use javascript to make http calls .

waitForComplete() on first send and based on the response you can take necessary action .

Not applicable

@maruti.chow

Thanks. It helped me a bit.

However is there any pointers how to send the SOAP request and parse it using the java script code.

If you can share similar code for Java as well then I can tryout that as well.

Not applicable

If you want to parse SOAP request /response in java , that is pretty much possible but its better you use XSL or jsc as it will be easy if your payload is big and even trouble shooting will be better .

Depends on what you are comfortable with though .

There is a webinar coming up on this topic , feel free to register and you can get more ideas and answers .

https://attendee.gotowebinar.com/register/4008160052469476353?mkt_tok=3RkMMJWWfF9wsRonuqnMcu%2FhmjTE...

Not applicable

@maruti.chow

Thanks again for reply.

I have to call one or two service from APIGEE depend on the condition. Here is the scenarios.

1. Client -> APIGEE -> Login Service -> APIGEE -> Backend Service -> APIGEE -> Client

2. Client -> APIGEE -> Backend Service -> APIGEE ->Client

3. Client -> APIGEE -> Backend Service -> APIGEE -> Login Service -> APIGEE -> Backend Service -> APIGEE -> Client

Login Service will be call when The session id is not available in Key Value map of APIGEE or the session id in invalid.

So i thought to put this all logic in javascript. however login service is SOAP service and backend service is REST service.

I was not able to send the payload and not able to parse it using javascript.