SOAP, XML + Web Services Questions!!!! - HELP!

May 2 2009 11:29 AM

Hi,

 

I’m new to the world of C# and .Net and I need some help with web services.

 

What I’m trying to do is write a web service (application 1) that takes an SOAP request from a client, and then transform it to an XML  document (in a different format), which sends it off to another web application (application 2) for further processing.

 

Application 2 then returns a response (as an xml document) to Application 1. Application 1 then returns a Soap request to the client.

 

My issues are:

 

·         I don’t know how to read in the SOAP request to Application 1, does anyone have any idea how I would do this? Example Client code sending a SOAP request would be ideal!

·         I have an XML schema to use for the XML document I want to send to Application 2, is this even possible? Searching around this looks like serialising the object to XML?

·         I don’t want to use local files, is it possible to use memory streams rather than explicitly writing files to a local disk? If so does anyone have any example code?

·         How do I read the response XML document from Application 2 into Application 1? (is this de serialising again?)

 

Apologies if my questions are somewhat basic, and if I’ve already answered them, any help anyone could give would be great.

 

Thanks! George B