Hi Niranjan. Hope you talking about call mediator non-blocking mode. I have checked the attached configuration with the ESB 4.9.0 and got the correct response to the client side. Please check with the attached configuration.
[2016-04-10 00:48:51,839] DEBUG - wire >> "POST /services/Pass202 HTTP/1.1[\r][\n]" [2016-04-10 00:48:51,839] DEBUG - wire >> "Host: wso2s-macbook-pro-2.local:8280[\r][\n]" [2016-04-10 00:48:51,839] DEBUG - wire >> "Connection: keep-alive[\r][\n]" [2016-04-10 00:48:51,839] DEBUG - wire >> "Content-Length: 0[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Origin: chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept: */*[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Encoding: gzip, deflate[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Language: en-US,en;q=0.8[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "Cookie: _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]" [2016-04-10 00:48:51,840] DEBUG - wire >> "[\r][\n]" [2016-04-10 00:48:51,888] INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout [2016-04-10 00:48:51,986] DEBUG - wire << "POST /test HTTP/1.1[\r][\n]" [2016-04-10 00:48:51,986] DEBUG - wire << "Cookie: _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]" [2016-04-10 00:48:51,986] DEBUG - wire << "Origin: chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]" [2016-04-10 00:48:51,986] DEBUG - wire << "Accept: */*[\r][\n]" [2016-04-10 00:48:51,986] DEBUG - wire << "Cache-Control: no-cache[\r][\n]" [2016-04-10 00:48:51,986] DEBUG - wire << "Accept-Encoding: gzip, deflate[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "Accept-Language: en-US,en;q=0.8[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "Content-Type: application/x-www-form-urlencoded; charset=UTF-8[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "Host: demo4010703.mockable.io:80 [\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "0[\r][\n]" [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]" [2016-04-10 00:48:52,318] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]" [2016-04-10 00:48:52,318] DEBUG - wire >> "Content-Type: application/xml; charset=UTF-8[\r][\n]" [2016-04-10 00:48:52,318] DEBUG - wire >> "access-control-allow-origin: *[\r][\n]" [2016-04-10 00:48:52,318] DEBUG - wire >> "Date: Sat, 09 Apr 2016 19:18:52 GMT[\r][\n]" [2016-04-10 00:48:52,318] DEBUG - wire >> "Server: Google Frontend[\r][\n]" [2016-04-10 00:48:52,319] DEBUG - wire >> "Content-Length: 11[\r][\n]" [2016-04-10 00:48:52,319] DEBUG - wire >> "[\r][\n]" [2016-04-10 00:48:52,319] DEBUG - wire >> "<x>test</x>" [2016-04-10 00:48:52,329] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "access-control-allow-origin: *[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "Content-Type: application/xml; charset=UTF-8[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "Date: Sat, 09 Apr 2016 19:18:52 GMT[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "Connection: keep-alive[\r][\n]" [2016-04-10 00:48:52,329] DEBUG - wire << "[\r][\n]" [2016-04-10 00:48:52,330] DEBUG - wire << "b[\r][\n]" [2016-04-10 00:48:52,330] DEBUG - wire << "<x>test</x>[\r][\n]" [2016-04-10 00:48:52,330] DEBUG - wire << "0[\r][\n]" [2016-04-10 00:48:52,330] DEBUG - wire << "[\r][\n]" Thanks On Sat, Apr 9, 2016 at 9:36 PM, Niranjan Karunanandham <[email protected]> wrote: > Hi ESB Team, > > In ESB 4.9.0, the call mediator is not sending the response body to the > client when the backend sends a 202 response with body. The wirelogs are > available [1]. Is this a known bug? > > [1] - > [2016-04-08 10:52:41,048] DEBUG - wire >> "POST /services/test4 > HTTP/1.1[\r][\n]" > [2016-04-08 10:52:41,048] DEBUG - wire >> "User-Agent: curl/7.35.0[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "Host: localhost:8243[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "Accept: application/xml[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "Content-Type: > application/xml[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "Content-Length: 12[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "[\r][\n]" > [2016-04-08 10:52:41,049] DEBUG - wire >> "<x>hello</x>" > [2016-04-08 10:52:41,051] INFO - LogMediator To: /services/test4, > MessageID: urn:uuid:3ab84305-2bda-465d-b60d-2cf13fa54e51, Direction: request > [2016-04-08 10:52:41,054] DEBUG - wire << "POST /services/MyMockProxy > HTTP/1.1[\r][\n]" > [2016-04-08 10:52:41,054] DEBUG - wire << "Content-Type: application/xml; > charset=UTF-8[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "Accept: application/xml[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "Transfer-Encoding: > chunked[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "Host: localhost:8281[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "User-Agent: > Synapse-PT-HttpComponents-NIO[\r][\n]" > [2016-04-08 10:52:41,055] DEBUG - wire << "[\r][\n]" > [2016-04-08 10:52:41,056] DEBUG - wire << "c[\r][\n]" > [2016-04-08 10:52:41,056] DEBUG - wire << "<x>hello</x>[\r][\n]" > [2016-04-08 10:52:41,056] DEBUG - wire << "0[\r][\n]" > [2016-04-08 10:52:41,056] DEBUG - wire << "[\r][\n]" > [2016-04-08 10:52:41,058] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]" > [2016-04-08 10:52:41,058] DEBUG - wire >> "Host: localhost:8281[\r][\n]" > [2016-04-08 10:52:41,058] DEBUG - wire >> "Content-Type: application/xml; > charset=UTF-8[\r][\n]" > [2016-04-08 10:52:41,058] DEBUG - wire >> "Accept: application/xml[\r][\n]" > [2016-04-08 10:52:41,059] DEBUG - wire >> "Date: Fri, 08 Apr 2016 05:22:41 > GMT[\r][\n]" > [2016-04-08 10:52:41,059] DEBUG - wire >> "Transfer-Encoding: > chunked[\r][\n]" > [2016-04-08 10:52:41,059] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]" > [2016-04-08 10:52:41,059] DEBUG - wire >> "[\r][\n]" > [2016-04-08 10:52:41,060] DEBUG - wire >> "10[\r][\n]" > [2016-04-08 10:52:41,060] DEBUG - wire >> "<hello>s</hello>[\r][\n]" > [2016-04-08 10:52:41,060] DEBUG - wire >> "0[\r][\n]" > [2016-04-08 10:52:41,060] DEBUG - wire >> "[\r][\n]" > [2016-04-08 10:52:41,062] INFO - LogMediator To: > http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , > MessageID: urn:uuid:6514f496-88f6-4ca2-bd38-9ad8b22f236f, Direction: > request, HTTP_Status = 202, Envelope: <?xml version='1.0' > encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/ > "><soapenv:Body/></soapenv:Envelope> > [2016-04-08 10:52:41,064] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]" > [2016-04-08 10:52:41,064] DEBUG - wire << "Host: localhost:8281[\r][\n]" > [2016-04-08 10:52:41,064] DEBUG - wire << "Content-Type: application/xml; > charset=UTF-8; charset=UTF-8[\r][\n]" > [2016-04-08 10:52:41,064] DEBUG - wire << "Accept: application/xml[\r][\n]" > [2016-04-08 10:52:41,065] DEBUG - wire << "Date: Fri, 08 Apr 2016 05:22:41 > GMT[\r][\n]" > [2016-04-08 10:52:41,065] DEBUG - wire << "Transfer-Encoding: > chunked[\r][\n]" > [2016-04-08 10:52:41,065] DEBUG - wire << "[\r][\n]" > [2016-04-08 10:52:41,065] DEBUG - wire << "0[\r][\n]" > [2016-04-08 10:52:41,065] DEBUG - wire << "[\r][\n]" > > Regards, > Nira > > -- > > *Niranjan Karunanandham* > Senior Software Engineer - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Prabath Ariyarathna* *Associate Technical Lead* *WSO2, Inc. * *lean . enterprise . middleware * *Email: [email protected] <[email protected]>* *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>* *Flicker : https://www.flickr.com/photos/47759189@N08 <https://www.flickr.com/photos/47759189@N08>* *Mobile: +94 77 699 4730 *
<?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="Pass202" transports="http https" startOnLoad="true" trace="disable"> <description/> <target> <inSequence> <call> <endpoint> <address uri="http://demo4010703.mockable.io/test"/> </endpoint> </call> <respond/> </inSequence> </target> </proxy>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
