473,772 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to POST xml from VB Windows Form

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.ourdomainna me.se/xml">
<textarea name="xmlreques t" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevent s>
<header>
<saler_id>0</saler_id>
<request_id>0 </request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsetype>x ml</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>200 5-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>fa lse</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_searc hgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>219 7</request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsedateti me>2005-09-03 22:24:29</responsedatetim e>
<responsetype>x ml</responsetype>
<requestsize> 0</requestsize>
<requestindex>0 </requestindex>
<responsecount> 2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>20 05-09-08 19:00:00</eventdate>
<networkcloseti me>1900-01-01 01:00:00</networkclosetim e>
<venue_id>3</venue_id>
<venuename>CLIE NT 1</venuename>
<venuetype_id>0 </venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM 2</auditname>
<city_id>0</city_id>
<cityname>Defau lt</cityname>
<program_id>8 </program_id>
<programname>Pr ogramname</programname>
<programsubtype _id>3</programsubtype_ id>
<arrivalorder>0 </arrivalorder>
<ticketavailabl e>Y</ticketavailable >
<networkvisible >Y</networkvisible>
<eventstatus_id >1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_search getevents>

Please help me
Sep 4 '05 #1
3 2214

Have you thought of using a web service and adding that to your VB.NET
client?

You would set up the web service/web method to take each of your fields
and values.

Then add the reference to your VB.NET windows form, and consume it there.

The response would be whatever you set the return value of your web
method to.
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.ourdomainna me.se/xml">
<textarea name="xmlreques t" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevent s>
<header>
<saler_id>0</saler_id>
<request_id>0 </request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsetype>x ml</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>200 5-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>fa lse</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_searc hgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>219 7</request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsedateti me>2005-09-03 22:24:29</responsedatetim e>
<responsetype>x ml</responsetype>
<requestsize> 0</requestsize>
<requestindex>0 </requestindex>
<responsecount> 2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>20 05-09-08 19:00:00</eventdate>
<networkcloseti me>1900-01-01 01:00:00</networkclosetim e>
<venue_id>3</venue_id>
<venuename>CLIE NT 1</venuename>
<venuetype_id>0 </venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM 2</auditname>
<city_id>0</city_id>
<cityname>Defau lt</cityname>
<program_id>8 </program_id>
<programname>Pr ogramname</programname>
<programsubtype _id>3</programsubtype_ id>
<arrivalorder>0 </arrivalorder>
<ticketavailabl e>Y</ticketavailable >
<networkvisible >Y</networkvisible>
<eventstatus_id >1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_search getevents>

Please help me

Sep 4 '05 #2
Hi
The problem is that I am talking to an API which I can not rebuild so I will
have to submit the contents to this interface anyway but how do you mean I
can do this using a webservice?
"John Bailo" <ja*****@texeme .com> skrev i meddelandet
news:43******** ****@texeme.com ...

Have you thought of using a web service and adding that to your VB.NET
client?

You would set up the web service/web method to take each of your fields
and values.

Then add the reference to your VB.NET windows form, and consume it there.

The response would be whatever you set the return value of your web method
to.
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.ourdomainna me.se/xml">
<textarea name="xmlreques t" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetevent s>
<header>
<saler_id>0</saler_id>
<request_id>0 </request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsetype>x ml</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>200 5-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>fa lse</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_searc hgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>219 7</request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsedateti me>2005-09-03 22:24:29</responsedatetim e>
<responsetype>x ml</responsetype>
<requestsize> 0</requestsize>
<requestindex>0 </requestindex>
<responsecount> 2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>20 05-09-08 19:00:00</eventdate>
<networkcloseti me>1900-01-01 01:00:00</networkclosetim e>
<venue_id>3</venue_id>
<venuename>CLIE NT 1</venuename>
<venuetype_id>0 </venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM 2</auditname>
<city_id>0</city_id>
<cityname>Defau lt</cityname>
<program_id>8 </program_id>
<programname>Pr ogramname</programname>
<programsubtype _id>3</programsubtype_ id>
<arrivalorder>0 </arrivalorder>
<ticketavailabl e>Y</ticketavailable >
<networkvisible >Y</networkvisible>
<eventstatus_id >1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_search getevents>

Please help me

Sep 4 '05 #3

You can still build a web service that would communicate with the API.

Then you would 'consume' the web service from your VB.NET client.

Google "consume web service windows client" and take a look at some of
the articles.
Andreas Kviby wrote:
Hi
The problem is that I am talking to an API which I can not rebuild so I will
have to submit the contents to this interface anyway but how do you mean I
can do this using a webservice?
"John Bailo" <ja*****@texeme .com> skrev i meddelandet
news:43******** ****@texeme.com ...
Have you thought of using a web service and adding that to your VB.NET
client?

You would set up the web service/web method to take each of your fields
and values.

Then add the reference to your VB.NET windows form, and consume it there.

The response would be whatever you set the return value of your web method
to.
Andreas Kviby wrote:
I have a HTML-form that I need to be able to POST from my VB.NET client
applicatio n 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.ourdomainna me.se/xml">
<textarea name="xmlreques t" cols="80" rows="20">
<?xml version="1.0" encoding="UTF-8"?>
<searchgetev ents>
<header>
<saler_id>0</saler_id>
<request_id>0 </request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsetype>x ml</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>200 5-09-03 17:00:00</fromdate>
<todate>2005-10-03 17:00:00</todate>
<otavailable>fa lse</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_searc hgetevents>
- <header>
<saler_id>0</saler_id>
<request_id>219 7</request_id>
<requestdatetim e>2005-09-03</requestdatetime >
<responsedateti me>2005-09-03 22:24:29</responsedatetim e>
<responsetype>x ml</responsetype>
<requestsize> 0</requestsize>
<requestindex>0 </requestindex>
<responsecount> 2</responsecount>
</header>
- <response>
- <event>
<event_id>20</event_id>
<eventdate>20 05-09-08 19:00:00</eventdate>
<networkcloseti me>1900-01-01 01:00:00</networkclosetim e>
<venue_id>3</venue_id>
<venuename>CLIE NT 1</venuename>
<venuetype_id>0 </venuetype_id>
<audit_id>6</audit_id>
<auditname>ROOM 2</auditname>
<city_id>0</city_id>
<cityname>Defau lt</cityname>
<program_id>8 </program_id>
<programname>Pr ogramname</programname>
<programsubtype _id>3</programsubtype_ id>
<arrivalorder>0 </arrivalorder>
<ticketavailabl e>Y</ticketavailable >
<networkvisible >Y</networkvisible>
<eventstatus_id >1</eventstatus_id>
<eventstatus />
<colour>0</colour>
<auditlink />
<programlink />
<picturelink />
</event>
</response>
</response_search getevents>

Please help me


Sep 5 '05 #4

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

Similar topics

15
3131
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. When I find is that if I send the value by the GET method, response.write("From QueryString: " & Request.QueryString("usernamefromform") & "<br><br>")
6
1620
by: Paul Perot | last post by:
Hi All: I was wondering if it was possible to evoke a post back event during code execution. I have a form that contains file specific information. I would like to iterate through an array of files and have the information on each file posted and displayed on my form as I pragmatically manipulate that file data. I know that this simple task should easily be done.... It is just a matter of how. Do I need the server side code behind to...
0
2559
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below) now renders "Page not Found" when launched on the new Windows 2003 server (ws-server1). The form is designed to use the write.asp program to write to an Acccess database and is successful on any Windows 2000 server. This is frustrating because...
1
2976
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 used Live Http Headers to retrieve the POST information, I included it at the end of this message. Can anyone tell me how to make THIS kind of post? Another thing, "Content-Type: multipart/form-data;
1
2359
by: Dave Brown | last post by:
I am attempting to post to a url (https://FakeURL/logon.asp) using the HttpWebRequest class. The response for a succesful post will contain the html for the logon user's default page. We've accomplished this in the past utilizing the ServerXMLHTTP object. When I try an equivalent? post utilizing the HttpWebRequest class, the response contains the html for logon.asp (the same page that was posted to), which indicates to me that in some...
1
14458
by: Jason Ho | last post by:
Hi, I would like to send a jpg file to a HTTP server by POST request. But I am not using a browser to do this, I use a Windows Form instead. I know how to send typical request by POST with code below. But I don't know how to encode the data file so the server can be recognized. 1 ) Traditional HTML code for upload a file: <form action="http://abc.com/save_photos.php" name="upload_form" enctype="multipart/form-data" method="POST">
3
292
by: Andreas Kviby | last post by:
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>
6
32818
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 submitted displays the results as you would expect. However when I send the same data using the PHP script I get a 400 error: Bad Request
3
5038
by: Jag | last post by:
Hi I am facing a strange issue. I have 3 ASP pages in the default website 1. auth.aspx <html> <body>
0
9619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.