473,395 Members | 1,568 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 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.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
Sep 4 '05 #1
3 2186

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.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

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.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

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
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


Sep 5 '05 #4

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....
6
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...
0
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)...
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...
1
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...
1
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...
3
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"...
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...
3
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
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...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.