473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to conume xml sent over http post

swl
How do I consume xml and send back an xml response not using SOAP in
an asp.net aspx page using vb.net?
Nov 11 '05 #1
4 26268
One way of achieving this is by using XMLHTTP on the
client to POST XML-data to server.

Then make a custom parser in the ASP.NET to read the XML
from POST-data on the Request object.

When you shall make response back to client, you put your
XML-data in the Response.Write method.

XMLHTTP will the receive the response on the client as
pure XML.

We have successfully used this method in VB6/ASP and
in .NET in order to quickly make simple websites. You
don't always have to use the whole WebForm framework :D

/Magus

-----Original Message-----
How do I consume xml and send back an xml response not using SOAP inan asp.net aspx page using vb.net?
.

Nov 11 '05 #2
working example sending back XML (sorry, C#)
http://www.winisp.net/cheeso/xml1/Xm...?orderId=11042

source code:
http://www.winisp.net/cheeso/srcview...lDataFeed.aspx
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"swl" <sw**@yahoo.com> wrote in message
news:ea**************************@posting.google.c om...
How do I consume xml and send back an xml response not using SOAP in
an asp.net aspx page using vb.net?

Nov 11 '05 #3
swl
I was thinking about using the following in the pageload

dim doc as System.Xml.XmlDocument = new XmlDocument()
doc.Load(Request.InputStream)

Once I consume the xml I want to send xml back using http post.

sw**@yahoo.com (swl) wrote in message news:<ea**************************@posting.google. com>...
How do I consume xml and send back an xml response not using SOAP in
an asp.net aspx page using vb.net?

Nov 11 '05 #4
swl
thanks for the help

the following works:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Try
Dim doc As System.Xml.XmlDocument = New XmlDocument()

doc.Load(Request.InputStream)

Dim singlenode As XmlNode =
doc.SelectSingleNode("nodename1")
Dim strnodevalue As String = singlenode.InnerText

Dim nodeatt As XmlAttribute =
singlenode.Attributes("attribute1")
Dim attributevalue As String = nodeatt.InnerXml

'do something

Dim doc2 As XmlDocument = New XmlDocument()
doc2.Load(Server.MapPath("test.xml"))


doc2.Save(Response.OutputStream)

End Sub

sw**@yahoo.com (swl) wrote in message news:<ea**************************@posting.google. com>...
I was thinking about using the following in the pageload

dim doc as System.Xml.XmlDocument = new XmlDocument()
doc.Load(Request.InputStream)

Once I consume the xml I want to send xml back using http post.

sw**@yahoo.com (swl) wrote in message news:<ea**************************@posting.google. com>...
How do I consume xml and send back an xml response not using SOAP in
an asp.net aspx page using vb.net?

Nov 11 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Douglas F. | last post by:
My host doesn't use buffering so I placed the form validation (php) ahead of the html like this: <?php if(isset($_POST)) { <do the validation processing> if(file_exists($fn)) {...
10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
4
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. ...
2
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
2
by: David | last post by:
Hello all, I have a web method that accepts compound (non-primitive) arguments. I know that the method should be applied using SOAP protocol. One of my clients does not know how to sent SOAP...
6
by: jackfoust | last post by:
I'm trying to POST from a form a simple username and password onto another website. Firefox and Opera post the data and results are returned successfully. The site returns "missing user id and...
6
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when...
6
by: CindyH | last post by:
Hi I'm not sure whether I should send this as a new message or use the one I've been using but... I'm using vb.net 2.0 - My problem is I need to send something like this: 'dim encodedstring =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.