Retrieving data sent from a vb app to an asp page


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Retrieving data sent from a vb app to an asp page

Hybrid View

  1. #1
    Edward Guest

    Retrieving data sent from a vb app to an asp page


    I'm using a vb application to post xml to an asp page. I'm using MSXML2.XMLHTTP30
    in my vb application. My question is how do I retrieve the xml data that
    I sent from my vb application in the asp page so that I can use dom to use
    the data?

    Here's a snipet of the vb code:
    Dim xmlHttp As New MSXML2.XMLHTTP30

    xmlHttp.Open "POST", txtUrl.Text, False
    xmlHttp.setRequestHeader "Content-type", "text/xml"
    xmlHttp.send strPostBody 'Xml data

    I'm able to do this from one asp page to another because I can use the request
    object and get the form element I set in the sending asp page(i.e. Request.Form(txtXml))
    However, I'm not sure what the format is when I send it from a vb or a c++
    application.

  2. #2
    Peter Vervoorn Guest

    Re: Retrieving data sent from a vb app to an asp page

    "Edward" <ecartagena@unicru.com> wrote in message
    news:3c3c6a3f$1@147.208.176.211...
    >
    > I'm using a vb application to post xml to an asp page. I'm using

    MSXML2.XMLHTTP30
    > in my vb application. My question is how do I retrieve the xml data that
    > I sent from my vb application in the asp page so that I can use dom to use
    > the data?
    >
    > Here's a snipet of the vb code:
    > Dim xmlHttp As New MSXML2.XMLHTTP30
    >
    > xmlHttp.Open "POST", txtUrl.Text, False
    > xmlHttp.setRequestHeader "Content-type", "text/xml"
    > xmlHttp.send strPostBody 'Xml data
    >
    > I'm able to do this from one asp page to another because I can use the

    request
    > object and get the form element I set in the sending asp page(i.e.

    Request.Form(txtXml))
    > However, I'm not sure what the format is when I send it from a vb or a c++
    > application.


    <%
    dim xmlDOM

    set xmlDOM = server.createobject("msxml2.domdocument")
    xmlDOM.loadxml request.form
    if xmlDOM.parseerror.number = 0 then
    'do something
    else
    'oops, error
    end if
    %>

    regards,

    Peter
    --
    Software Engineer / Trainer
    Vervoorn IT



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center