Hi All, The addition of the "Content-Type: application/xml" header seems to make synapse behave as expected. Thanks for all of your help. However, I'm having trouble using an xml parser on the client end because of some additional characters in the response. Here is the tcpmon output:
============== Listen Port: 8888 Target Host: 127.0.0.1 Target Port: 8080 ==== Request ==== POST /soap/StockQuote HTTP/1.1 Connection: close Content-Type: application/xml User-Agent: Jakarta Commons-HttpClient/3.1 Host: 127.0.0.1:8888 Content-Length: 91 <m0:getQuote xmlns:m0="http://services.samples/xsd"><m0:requol></m0:request></m0:getQuote> ==== Response ==== HTTP/1.1 200 OK Content-Type: application/xml; charset=UTF-8 X-Powered-By: PHP/5.2.5 Keep-Alive: timeout=5, max=100 Vary: Accept,Accept-Encoding Date: Mon, 05 May 2008 16:54:31 GMT Server: Synapse-HttpComponents-NIO Transfer-Encoding: chunked Connection: close 2df <ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><ns:return type="samples.services.GetQuoteResponse"><ns:change>-2.8645613863894557</ns:change><ns :earnings>12.30521720248757</ns:earnings><ns:high>-151.78678259858341</ns:high><ns:last>154.53038305767686</ns:last><ns:lastTradeTimestamp>Sat May 03 18:55:1 7 PDT 2008</ns:lastTradeTimestamp><ns:low>160.3361975912104</ns:low><ns:marketCap>-358967.49623407796</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>15 9.5352172771564</ns:open><ns:peRatio>25.471190753873586</ns:peRatio><ns:percentageChange>-1.7026538696082525</ns:percentageChange><ns:prevClose>168.240970024 54968</ns:prevClose><ns:symbol>IBM</ns:symbol><ns:volume>5145</ns:volume></ns:return></ns:getQuoteResponse> 0 ============== Note the "2df" before the response xml and the "0" after. Is anyone seeing the same thing? Any ideas where that is from? I've attached a JMeter test that I used to call the service. Note that the "View Results Tree" listener cannot render the xml after executing the test. Thanks again, Garth On Sun, May 4, 2008 at 10:05 AM, Asankha C. Perera <[EMAIL PROTECTED]> wrote: > Garth > > It seems like Synapse "detects" the initial request it passes to your > service as SOAP! This should be because of the 'Content-type' used by that > message. Any possibility for you to use TCPMon > (http://ws.apache.org/commons/tcpmon/) to capture this request with the HTTP > headers etc? > > This is why you are required to use format="pox".. since if it was > 'detected' as POX/REST, this would not have been necessary > > asankha > >
