Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

REST-SOAP-REST working only in API Console

Not applicable

I have below URL which works in API console but doesn't work when I just paste in any form or hurl site etc.

http://kumarta-test.apigee.net/test/siebelaccountquerybyid?PrimaryRowId=1-32GF

After comparing I found out that when I don't use API console it adds a response parameter transfer-encoding which might be causing the failure to decompress error in response -

{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Failed to Decompress","faultactor":{},"detail":{"source":{"errorcode":"messaging.adaptors.http.DecompressionFailure"}}}}}}

I searched that we can remove that header from response in this link http://kumarta-test.apigee.net/test/siebelaccountquerybyid?PrimaryRowId=1-32GF so i created an assign message policy to remove it and associated to proxy end point response type. But still i keep on getting the same error.

Please help where I am wrong here.

Solved Solved
0 8 774
1 ACCEPTED SOLUTION

Not applicable

Yes it was down for some time but now it is up. BTW I managed to get the resolution for the issue. The issue is hapening becasue of the server sending chunked response back to client. The API Console is probably handling the chunked response or is sending a field to server notifying that don't send chunked.

So I removed a parameter from http request before sending to server and finally i can get the response in such scenario.

Solution: Create an AssignMessage Policy and assign to Preflow in target endpoint with removal of http header field Accept-Encoding. Using this the response will be received by any HTTP client.

Thanks all for your help. Hope it helps to resolve for some of you.

View solution in original post

8 REPLIES 8