-
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.
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|