A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: XML Server

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    1
    I have been developing my own server application for Flash with Delphi 5 and I am having a few issues with getting Flash to recognize the xml comming back into the flash application. I have also created my own client application and created the same environment. This worked. Is there something special about Flash that I am missing? Here is a sample of the xml that the server is sending back:

    <?xml version="1.0"?>
    <RECORD>
    <MSG>Record Found</MSG>
    <EMPIDNEXTNO>11</EMPIDNEXTNO>
    <SALARYGRADE>P4</SALARYGRADE>
    <WORKWEEKSTATUS>FULL TIME</WORKWEEKSTATUS>
    <EMPTYPE>P</EMPTYPE>
    <QRELIGIBLE>False</QRELIGIBLE>
    <CREATEDBY></CREATEDBY>
    <CREATEDATE></CREATEDATE>
    <EDITEDBY>Administrator</EDITEDBY>
    <EDITDATE>10/30/2000</EDITDATE>
    </RECORD>

    Any help would be greatly appreciated.

    Mark
    [email protected]

  2. #2
    Moderator
    Join Date
    Aug 2000
    Posts
    1,455
    Don't forget that you need to send a zero byte (0x00) at the end of each XML document when using the XMLSocket() or Flash won't know when to process the data!

    This was my first stumbling block when writing my XML server in C++!

    Regards,

    Steve

  3. #3
    Ahh, this sort of answers my question. I already knew this, but I was hoping for some way around it.

    Flash is fully capable of parsing ANY text that comes in, not just XML-style data. The problem is that the server needs to send the 0 byte, rendering flash useless for using already-existing protocols.

    Also the limited port range was implemented by macromedia, really taking a lot of the fun out of it. I think they should allow any type of connection and transfer, and it should just show a warning in the browser... oh well, add that to the wish list.

    -root

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center