Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    4

    Load XML to IP and Port (request and response)

    I'm new to AutoPlay and have done the following in Flash but will need to do the same in AutoPlay.

    Send XML schema in memory to a certain IP and port number. This would be the request.

    Then AutoPlay should be waiting for the response in XML as well. Then I could parse it and do what I need with it.

    Here is how I did it in Flash Actionscript:

    Code:
    var respFromServer = new XML();
    respFromServer.onLoad = respParser;
    reqToServerXML.sendAndLoad("http://127.0.0.1:8321", respFromServer);
    Is there an equivalent in this application?

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Not sure exactly, but have a look at the XML actions and HTTP.Submit.
    --[[ Indigo Rose Software Developer ]]

  3. #3
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    4
    Thanks Lorne.

    Where can I find documentation for XML and Http.submit?

  4. #4
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    In the Help file (press F1 inside AutoPlay), under:

    Action Reference > HTTP > HTTP.Submit
    Action Reference > XML
    --[[ Indigo Rose Software Developer ]]

  5. #5
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    4
    Thanks! I might be missing something, but the functions don't all me to do the following:

    How can I create XML structure in memory?

    for example
    <test></test>

  6. #6
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    So maybe I'm overlooking the obvious, but why not use the FLASH object and your flash app?

  7. #7
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    4
    There was an application that was previously developed using AutoPlay...so instead of using the flash application that I was developing, it was decided to use the existing AutoPlay application for our demo.

    Or else it would be done all in Flash.

  8. #8
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Quote Originally Posted by zeldawii View Post
    Thanks! I might be missing something, but the functions don't all me to do the following:

    How can I create XML structure in memory?

    for example
    <test></test>
    Form it in a string. XML is essentially just a string anyway. If you just want to pass a preset XML string to the server, just store it in a variable as text.

    You only need to use the XML actions if you want to form the XML programmatically, building the XML one element or attribute at a time. Note that you can use the XML.SetXML action to "load" XML directly from memory.
    --[[ Indigo Rose Software Developer ]]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts