View Full Version : Working with sockets
productengine
08-28-2003, 02:01 AM
Is there a way to exchange xml data (from laszlo-app to server and from server to laszlo-app) using protocol differing from HTTP? Can I work with sockets?
antun
08-28-2003, 07:50 AM
Yes - the LPS does have support for persistent connections, though they do go over HTTP. You might want to check out the chat app:
http://www.laszlosystems.com/lps-v1/viewer/viewer.jsp?file=/sample-apps/chat/chat.lzx
... to get a picture of how it works, though it may or may not be practical for your application.
SOAP support will be coming in a future release.
-Antun
productengine
09-04-2003, 07:32 AM
So how can I connect from Laszlo to back-end not through HTTP, i.e. to arbitrary host, arbitrary port and make data exchange between laszlo application and back-end not by HTTP protocol.
Is it possible?
antun
09-04-2003, 12:24 PM
One way would be to create a (jsp?) script on LPS server that acts as a tunnell - you hit it (from the client) over HTTP port 80, and it makes any kind of request you want, and replies back over port 80.
Just to clarify - you wouldn't actually be hitting the script directly from the client. Everything goes through the LPS itself, so it would really be the LPS that's hitting your script.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.