<html><head><style type='text/css'>body { font-family: 'Verdana'; font-size: 10pt; color: #000000}</style></head><body><P>Hi</P>
<P>In our case it can be pretty big, we do need the performance.</P>
<P>So the actual response format is truly binary (SWF) and not XML at all? in that case the content-type is correct I guess.</P>
<P>or is it text wtih just the encoding set to SWF? in that case I guess we could figure a workaround?</P>
<P>Thank you!</P>
<P>Gilad</P>
<P><BR><BR>Gilad&nbsp;Parann-Nissany<BR><BR>----- Original Message -----<BR>From: "Henry Minsky" &lt;henry.minsky@gmail.com&gt;<BR>To: "Gilad Parann-Nissany" &lt;gilad.parann.nissany@g.ho.st&gt;<BR>Cc: "laszlo-user" &lt;laszlo-user@openlaszlo.org&gt;, "Yazan Ghandour" &lt;Yazan.Ghandour@corp.g.ho.st&gt;, "Rami Khalayleh" &lt;Rami.Khalayleh@corp.g.ho.st&gt;, "Anas Jadallah" &lt;Anas.Jadallah@corp.g.ho.st&gt;, "Elias Khalil" &lt;Elias.Khalil@corp.g.ho.st&gt;<BR>Sent: Tuesday, March 25, 2008 3:53:16 PM (GMT+0200) Auto-Detected<BR>Subject: Re: [Laszlo-user] XML RPC requests return a "application/x-shockwave-flash" data type<BR><BR>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></P>
<DIV class=gmail_quote>On Tue, Mar 25, 2008 at 9:33 AM, Gilad Parann-Nissany &lt;<A href="mailto:gilad.parann.nissany@g.ho.st" target=_blank>gilad.parann.nissany@g.ho.st</A>&gt; wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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?&nbsp;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&amp;lzr=swf8&amp;proxied=true&amp;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&amp;headers=Content%2DType%3A+text%2Fxml&amp;url=xmlrpc%3A%2F%2Flocalhost%2Fvcweb%2FGhostXmlrpc&amp;reqtype=POST&amp;lzt=data&amp;ccache=false&amp;cache=false&amp;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&amp;lzr=swf8" target=_blank>http://localhost/lps/workspace/VC/client/welcomei.lzx?lzt=swf&amp;lzr=swf8</A><BR>x-flash-version: 9,0,115,0<BR><FONT color=#888888><BR><BR>Gilad&nbsp;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" target=_blank>hminsky@laszlosystems.com</A><BR><BR></body></html>