By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

How to POST xml from VB Windows Form

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.