cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle http 303 redirect message in SOAP response?

dibyajit_das
Explorer
0 Kudos

Hi,

In my scenario, I am using a custom adapter module in receiver SOAP channel to convert xml to JSON and vice versa. This is a synchronous scenario where I'll be getting JSON response back from the application. The JSON response will be converted to xml via the custom adapter module. This is working smoothly but for some cases where there are more than 40 records at a time, we are getting http 303 redirect message from the application. SOAP adapter is treating that as a response and as a result failing in the JSONtoXML custom module. To handle this we are planning to create another custom module which will identify the http 303 response from http header and call a GET to the url until HTTP 200 is received. If received, we'll capture the payload and pass it to the next JSONtoXML module. Did anybody work on such custom module to handle HTTP 303 response or what other way can we achieve this? We are using 7.4 dual stack SP05. A quick help is much appreciated.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

dibyajit_das
Explorer
0 Kudos

In fact, I am struggling for how to read the http header response from the webservice? As the webservice is already called and we are getting response back, there is no question of calling the webservice once again. Does anyone have any clue?