XML + Flash + PHP
- Started
- Last post
- 3 Responses
- scott512
Trying to juggle XML documents that have been created in Flash and sent to a PHP script.
Having trouble......
Looking at using RPC (Remote Proceedure Call)
Anyone have some experience with this?
Could use some pinters.....
Thanks
- scott5120
Nobody have anything?
- metonym0
I saw this at DevShed:
http://www.devshed.com/Server_Si…How will you be calling the RPC? It seems to me that the only real option you have is to pass the xml via post or get. Though I could be wrong, I don't know that it will pass as an xml object . The problem herein could be that Flash can't explicitly set the http headers before it sends data. This is the main reason that SOAP doesn't work without a middleware script interpreting the data you send it.
Perhaps your answer is something along these lines or go with a solution that involves Flash Remoting to access methods directly on the server. Solutions are available for CFMX, .NET, and JRUN. Check out Object Oriented Programming with Actionscript, page 342
- scott5120
Well, Flash MX uses the XML.send method, what this does, is take an XML Object within Flash and compile it into an XML document, with headers and POSTs it to a URL,
so by using the XML.send method you can send the XML as a valid XML doc.
Any thoughts?