Webservices with raw post data

C

Carlo Razzeto

Hello,

I'm working on migrating a webservice my company currently has written in
PHP over to a .Net webservice. Our service works like this:

Applications makes a HTTP POST request to the webservice with the raw post
data consisting of XML.
The XML service creates the request processing object, passing the raw XML
Once the service is done, it returns the response XML on the same
connection.

This webservice does not use SOAP at all, it uses a custom request and
response schema deffined by us. My question is, how do I get access to the
raw post data in an 'offical' XML web service? Or can I even? As far as I
can see right now it seems that SOAP was basically made a requirement for
webservices in ASP.Net, and I can't find any documentation telling me how to
get access to raw post data in an XML web service. Can this be done? Or do I
need to create an ASP.Net website which consits of a single webpage wich
happend to accept only raw posted XML and happens to return only the XML
response? Any help would be appriciated. Thanks,

Carlo Razzeto
 
D

DC

What you describe is not "web services" as implemented in .NET (and most
other software app platforms). It is more like REST or just XML doc
exchange. So it is what you say - create an ASPX that accepts and generates
XML. This is possible in .NET but not with [WebMethod] and all the other
webservice goodies.

Check this working example:
http://cheeso.members.winisp.net/xml1/

-D
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top