473,386 Members | 1,610 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,386 software developers and data experts.

Post in VB.NET with XML

I have a HTML-form that I need to be able to POST from my VB.NET client
application and store the resulting XML in a STRING or XML-document.

This is the HTML-form code:
<form name="form1" method="post" action="http://www.ourdomainname.se/xml">
<textarea name="xmlrequest" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevents>
<header>
<saler_id>0</saler_id>
<request_id>0</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsetype>xml</responsetype>
</header>
<request>
<size>0</size>
<index>0</index>
<event_id>0</event_id>
<eventname></eventname>
<city_id>0</city_id>
<venue_id>0</venue_id>
<venuetype_id>0</venuetype_id>
<venuename></venuename>
<audit_id>0</audit_id>
<program_id>0</program_id>
<programtype_id>0</programtype_id>
<fromdate>2005-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>false</otavailable>
</request>
</searchgetevents>
</textarea>
<br>
<input type="submit" name="Submit" value="Send">
</form>

I need to submit that from inside VB windows form and I have tried several
solutions with no success. Please help me solve this urgent issue.

The HTML-form works greats and it will give me this result back in the
browser:
<?xml version="1.0" encoding="ISO-8859-2" ?>
- <response_searchgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>2197</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsedatetime>2005-09-03 22:24:29</responsedatetime>
<responsetype>xml</responsetype>
<requestsize>0</requestsize>
<requestindex>0</requestindex>
<responsecount>2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>2005-09-08 19:00:00</eventdate>
<networkclosetime>1900-01-01 01:00:00</networkclosetime>
<venue_id>3</venue_id>
<venuename>CLIENT 1</venuename>
<venuetype_id>0</venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM2</auditname>
<city_id>0</city_id>
<cityname>Default</cityname>
<program_id>8</program_id>
<programname>Programname</programname>
<programsubtype_id>3</programsubtype_id>
<arrivalorder>0</arrivalorder>
<ticketavailable>Y</ticketavailable>
<networkvisible>Y</networkvisible>
<eventstatus_id>1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_searchgetevents>

Please help me
Nov 21 '05 #1
2 2012
Look into using the Web.WebClient class. You would do something along
the lines of WebClient.DownloadString(location, args() as object)

You would specify args() being an array of objects which will end up
being the parameters. But don't quote me on this. I remember doing
something along these lines a while back, but a simple google search
will reveal all.

Andreas Kviby wrote:
I have a HTML-form that I need to be able to POST from my VB.NET client
application and store the resulting XML in a STRING or XML-document.

This is the HTML-form code:
<form name="form1" method="post" action="http://www.ourdomainname.se/xml">
<textarea name="xmlrequest" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevents>
<header>
<saler_id>0</saler_id>
<request_id>0</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsetype>xml</responsetype>
</header>
<request>
<size>0</size>
<index>0</index>
<event_id>0</event_id>
<eventname></eventname>
<city_id>0</city_id>
<venue_id>0</venue_id>
<venuetype_id>0</venuetype_id>
<venuename></venuename>
<audit_id>0</audit_id>
<program_id>0</program_id>
<programtype_id>0</programtype_id>
<fromdate>2005-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>false</otavailable>
</request>
</searchgetevents>
</textarea>
<br>
<input type="submit" name="Submit" value="Send">
</form>

I need to submit that from inside VB windows form and I have tried several
solutions with no success. Please help me solve this urgent issue.

The HTML-form works greats and it will give me this result back in the
browser:
<?xml version="1.0" encoding="ISO-8859-2" ?>
- <response_searchgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>2197</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsedatetime>2005-09-03 22:24:29</responsedatetime>
<responsetype>xml</responsetype>
<requestsize>0</requestsize>
<requestindex>0</requestindex>
<responsecount>2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>2005-09-08 19:00:00</eventdate>
<networkclosetime>1900-01-01 01:00:00</networkclosetime>
<venue_id>3</venue_id>
<venuename>CLIENT 1</venuename>
<venuetype_id>0</venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM2</auditname>
<city_id>0</city_id>
<cityname>Default</cityname>
<program_id>8</program_id>
<programname>Programname</programname>
<programsubtype_id>3</programsubtype_id>
<arrivalorder>0</arrivalorder>
<ticketavailable>Y</ticketavailable>
<networkvisible>Y</networkvisible>
<eventstatus_id>1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_searchgetevents>

Please help me

Nov 21 '05 #2
Here's a link to an example:

http://www.experts-exchange.com/Prog..._21368850.html

Andreas Kviby wrote:
I have a HTML-form that I need to be able to POST from my VB.NET client
application and store the resulting XML in a STRING or XML-document.

This is the HTML-form code:
<form name="form1" method="post" action="http://www.ourdomainname.se/xml">
<textarea name="xmlrequest" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevents>
<header>
<saler_id>0</saler_id>
<request_id>0</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsetype>xml</responsetype>
</header>
<request>
<size>0</size>
<index>0</index>
<event_id>0</event_id>
<eventname></eventname>
<city_id>0</city_id>
<venue_id>0</venue_id>
<venuetype_id>0</venuetype_id>
<venuename></venuename>
<audit_id>0</audit_id>
<program_id>0</program_id>
<programtype_id>0</programtype_id>
<fromdate>2005-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>false</otavailable>
</request>
</searchgetevents>
</textarea>
<br>
<input type="submit" name="Submit" value="Send">
</form>

I need to submit that from inside VB windows form and I have tried several
solutions with no success. Please help me solve this urgent issue.

The HTML-form works greats and it will give me this result back in the
browser:
<?xml version="1.0" encoding="ISO-8859-2" ?>
- <response_searchgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>2197</request_id>
<requestdatetime>2005-09-03</requestdatetime>
<responsedatetime>2005-09-03 22:24:29</responsedatetime>
<responsetype>xml</responsetype>
<requestsize>0</requestsize>
<requestindex>0</requestindex>
<responsecount>2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>2005-09-08 19:00:00</eventdate>
<networkclosetime>1900-01-01 01:00:00</networkclosetime>
<venue_id>3</venue_id>
<venuename>CLIENT 1</venuename>
<venuetype_id>0</venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM2</auditname>
<city_id>0</city_id>
<cityname>Default</cityname>
<program_id>8</program_id>
<programname>Programname</programname>
<programsubtype_id>3</programsubtype_id>
<arrivalorder>0</arrivalorder>
<ticketavailable>Y</ticketavailable>
<networkvisible>Y</networkvisible>
<eventstatus_id>1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_searchgetevents>

Please help me

Nov 21 '05 #3

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

Similar topics

15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
1
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: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form of: Variable1=Value1&Variable2=Value2 etc. I...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
9
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very appreciated to those who are willing to help with their...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
10
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server with and xmlhttprequest. I can understand why...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.