Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get XML from Request object

    Here what I am doing and please tell me what I am doing wrong.

    Client code:
    countryDS.dataURL = 'accidents.asp?datarequest=xml';
    countryDS.dataProtocol = 'postParams';
    frmGeneral.saveData();

    from here it goes to accidents.asp with no problem.
    accidents.asp:
    <SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
    var oComObj = new ActiveXObject('webconnector.connector');
    oComObj.minitiate(Server, Request, Response, Session);

    then it goes to my com object with still no problem.
    Code in my com:
    poClientData = CREATEOBJECT("Msxml2.FreeThreadedDOMDocument")
    poClientData.async = .F.
    poClientData.Load(Request)
    I am checking poClientData.xml and it's empty.
    What am I doing wrong?

    #2
    Just to close this thread: as covered in more detail in another thread, dataProtocol:"postParams" sends values like an HTTP form does, not as XML.

    Comment

    Working...
    X