XML and POST

A

ats@jbex

Can anybody point me in the direction of some help/advice/tutorials etc on
the subject of filling an xml template and then posting it to another site.

I have a template for an xml document that I want to populate from a form
on the website. Once this is done I need to POST it to another URL and
receive and parse a Response back from them.

TIA
--
ats@jbex

It's easy to lay down and hide
Where's the warrior without his pride?

Adam and The Ants - Dog Eat Dog
 
M

Martin Honnen

ats@jbex said:
Can anybody point me in the direction of some help/advice/tutorials etc on
the subject of filling an xml template and then posting it to another site.

I have a template for an xml document that I want to populate from a form
on the website. Once this is done I need to POST it to another URL and
receive and parse a Response back from them.

Infer a schema from the XML template document that you have, then use
the schema to infer .NET classes you can use for
serialization/deserialization, then you can instantiate those classes
and populate members with data from your form and serialize the objects
to send XML to the other URL.
The xsd.exe tool in the .NET framework SDK
http://msdn.microsoft.com/en-us/library/x6c1kb0s(VS.80).aspx helps you
to infer a schema and to generate classes.
Then you can serialize your objects to the request stream of a
HttpWebRequest.
 
R

rowe_newsgroups

Can anybody point me in the direction of some help/advice/tutorials etc on
the subject of filling an xml template and then posting it to another site.

I have a template for an xml document that I want to populate from a form
on the website. Once this is done I need to POST it to another URL and
receive and parse a Response back from them.

TIA
--
ats@jbex

It's easy to lay down and hide
Where's the warrior without his pride?

Adam and The Ants - Dog Eat Dog

Are you creating both ends? If so a standard web service would be the
easiest (imo) and the entire boxing / sending of the xml is
encapsulated by the IDE

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
A

ats@jbex

Are you creating both ends? If so a standard web service would be the
easiest (imo) and the entire boxing / sending of the xml is
encapsulated by the IDE

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/

No, I am not creating both ends. I will be sending the xml data to a
payment service. It will contain credit/debit card info etc and the
response is say wether the payment was accepted or not.
--
ats@jbex

The world is my expense
The cost of my desire
Jesus blessed me with its future
And I protect it with fire

Rage Against The Machine - Sleep Now In The Fire
 
A

ats@jbex

Infer a schema from the XML template document that you have, then use
the schema to infer .NET classes you can use for
serialization/deserialization, then you can instantiate those classes
and populate members with data from your form and serialize the objects
to send XML to the other URL.
The xsd.exe tool in the .NET framework SDK
http://msdn.microsoft.com/en-us/library/x6c1kb0s(VS.80).aspx helps you
to infer a schema and to generate classes.
Then you can serialize your objects to the request stream of a
HttpWebRequest.

Thanks for this. I will have a look at the link you posted.

--
ats@jbex

Boats an' tanks and planes, it's your game
Kings an' queens an' generals learn your name
I see all the innocents, the human sacrifice
And if death comes so cheap
Then the same goes for life!

The Clash - Tommy Gun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Page Load 9
RichTextBox 4
POST xml and read response 2
Email Archive program 12
XML 5
XML 2
Last Friday of each month 3
Form to XML 2

Top