This content has been marked as final. Show 9 replies
You can also try using weborb at http://www.themidnightcoders.com. It takes a bit to set up but works very nicely after all is said and done.
I don't do much Java, but I believe RemoteObject can call a servlet directly.
With a Red5 server, for sample, you can pass the XML directly through RemoteObject.
I like the RemoteObject idea, but doesn't Flex/AS3 have something that works like an Ajax's XMLHttpRequest object where I can just send a request and use a callback for an answer?
You can use an HttpService to send data to Servlet
You can use HTTPService or RemoteObject.
If you are using HTTPService, then it is very similar to Form post from a HTML page. HTTPService will allow you to select the method (POST/GET) in which you want to send the data to the server. You can add parameters with the data and the send the request to the server. On the server side, you can either use JSP/Servlet/ASP or any other server side scripting technology and access the parameters using request.getParameter("<parameter name>"). Please find more details on how to pass parameters at the URL below.
If you are using RemoteObject, then you need to have BlazeDS/LCDS on the server which will allow you to invoke methods in any Java class. When invoking any method you can pass arguments as you were invoking that method from another Java class. Please find more details on how to use RemoteObject at the URL below.
Hope this helps.
Yes, very sorry, I meant HTTPService, not HTTPRequest. Musta been looking at your post whle I was typing!
I find this protocol to be the easiest of all to use, I say try it first.
I think u can use BlazeDS ,which uses Remote Object
Please go through the following link