The issue is that the implementation in swf was written to compile the return data as a Flash swf binary file. The implementation for DHTML uses a JSON encoding. The fix for this would need to be to switch to using the JSON encoding with the swf runtime. We do have a JSON parser for SWF7/8, it would be somewhat slower than the direct-to-swf transport being used now, but that might be acceptable if the amount of data you are sending in each request is not very large. <br>
<br><br><div class="gmail_quote">On Tue, Mar 25, 2008 at 9:33 AM, Gilad Parann-Nissany <<a href="mailto:gilad.parann.nissany@g.ho.st">gilad.parann.nissany@g.ho.st</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><p>Hi all</p>
<p>We have an app using Laszlo XML RPC rather heaviliy, our version is 4.0.8.</p>
<p>Looking at the logs one sees that the REQUESTS produced by our client for XML-RPC are of type "application/x-www-form-urlencoded"</p>
<p>(which makes sense - it is the correct content-type for a POST request).</p>
<p>However the RESPONSEs are of type "application/x-shockwave-flash" which is strange.</p>
<p>We would expect the reponse type to be text/xml or something like that. This is creating a real-world problem for us on various consumers e.g. JMeter - which expect the text/xml to function correctly.</p>
<p>Do you have any experience with this issue? Suggestions or workarounds?</p>
<p>Detailed info from the logs is below.</p>
<p>Thanks </p>
<p>Gilad</p>
<p>P.S. For example: something like the following response headers</p>
<p>----------------</p>
<p>HTTP/1.1 200 OK<br>Expires: Fri, 05 Oct 2001 00:00:00 GMT<br>Date: Tue, 25 Mar 2008 11:51:13 GMT<br>Server: Apache-Coyote/1.1<br>Cache-Control: no-store<br>Content-Type: application/x-shockwave-flash<br>Content-Length: 437<br>
Server: Apache-Coyote/1.1</p>
<p>----------------</p>
<p>is returned from the following request:</p>
<p>----------------</p>
<p>POST <a href="http://localhost/lps/workspace/VC/client/welcomei.lzx?__lzbc__=1205615513625" target="_blank">http://localhost/lps/workspace/VC/client/welcomei.lzx?__lzbc__=1205615513625</a></p>
<p>POST data:<br>fpv=9%2E115&lzr=swf8&proxied=true&lzpostbody=%3C%3Fxml+version%3D%221%2E0%22%3F%3E%0A%3CmethodCall%3E%0A%3CmethodName%3EClientInfo%2EgetGhostInitInfo%3C%2FmethodName%3E%0A%3Cparams%3E%0A%3Cparam%3E%0A%3Cvalue%3E%3Cstring%3E%3C%2Fstring%3E%3C%2Fvalue%3E%0A%3C%2Fparam%3E%0A%3C%2Fparams%3E%0A%3C%2FmethodCall%3E&headers=Content%2DType%3A+text%2Fxml&url=xmlrpc%3A%2F%2Flocalhost%2Fvcweb%2FGhostXmlrpc&reqtype=POST&lzt=data&ccache=false&cache=false&sendheaders=false</p>
<p>Cookie Data:<br>JSESSIONID=2FEEB2B9C6B91302795CD62AD3D274A6</p>
<p>Request Headers:<br>User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)<br>Host: localhost<br>Accept-Encoding: gzip, deflate<br>Accept-Language: he-IL<br>Pragma: no-cache<br>
Content-Type: application/x-www-form-urlencoded<br>UA-CPU: x86<br>Accept: */*<br>Content-Length: 462<br>Connection: keep-alive<br>Referer: <a href="http://localhost/lps/workspace/VC/client/welcomei.lzx?lzt=swf&lzr=swf8" target="_blank">http://localhost/lps/workspace/VC/client/welcomei.lzx?lzt=swf&lzr=swf8</a><br>
x-flash-version: 9,0,115,0<br><font color="#888888"><br><br>Gilad Parann-Nissany<br></font></p></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br>
<br>