The Laszlo HTTP loader machinery for Flash runtimes is built on top of the sendAndLoad API that Flash provides, and it is lacking a number of HTTP options. Looking to the future, the DHTML runtime uses XMLHTTPRequest, and so provides  somewhat better HTTP controls, and the Flash 9 runtime looks a lot better in terms of support for HTTP network
operations which are closer to what you get from the java.net API.

 It is actually possible to send raw POST data I believe, if you use the XML object in Flash instead of the LoadVars which is used by the system currently, but it would be somewhat difficult to work into the existing loader machinery. The major complication in the loader system is due to the fact that we have to implement our own loader queue because Flash silently drops requests that are made when the browser's maximum number of network connections are opened. So for example if your app happens to be loading an image or other data resource, your code cannot just make a request safely. Internet Explorer has a maximum of 2 open connections available to each web page.

Anyway, I could suggest some workarounds if you really want to pursue this, otherwise I suggest writing a little
server side proxy that your app communicates with, that can handle all the SOAP HTTP protocol issues, and return
just the XML that you want.



On 8/28/06, Mikko Valjento <[EMAIL PROTECTED]> wrote:
Which on closer inspection might not work. Since it's not possible to set
HTTP headers in SOLO applications, it will not be possible to send for
example SOAPAction headers either, but then the SOAPAction header is not
mandatory.

LZX Reference states the following:

---
implementation of XMLHttpRequest (also called "AJAX")
_javascript_: XMLHttpRequest

Extends Node This class implements the XMLHTTPRequest as specified by the
WHATWG consortium.

In SOLO deployed applications, this class departs from the specification in
these ways:

Cannot set HTTP headers
Cannot access response headers
Cannot send raw POST data
Cannot send repeated query args in a POST using LoadVars
Username/password Auth args to send() not supported
---

regards,
mikko


-----Alkuperainen viesti-----
Lahettaja: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ]Puolesta Mikko Valjento
Lahetetty: 28. elokuuta 2006 10:44
Vastaanottaja: [email protected]
Aihe: [Laszlo-user] Connecting SOLO to a web service


The OpenLaszlo's built-in SOAP handling capabilities apparently work only in
proxied applications. Has anyone tried using web services with a SOLO
application by writing their own SOAP client code?

I found this one for _javascript_, I'll attempt to implement it in Laszlo in
order to connect my .NET web service with a SOLO application:

http://www.codeproject.com/Ajax/_javascript_SOAPClient.asp

If you have any suggestions or comments about this, I'd like to hear them!

Regards,
Mikko




_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user



_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user



--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to