Disabling the soap formatter!

M

mehdi_mousavi

Hi folks,
Is there anyway to disable the soap formatter for a specific web
service? Consider the following web method:

string Method1(int param1)
{
return "test";
}

when the mentioned method is called, something like this is returned to
the caller:

<?xml version "1.0" encoding="utf-8"?>
<soap:Envelope xmlns....

However, I'd like the caller to receive a plain text string, say,
"test", without being formatted into soap.

Any idea?

Thanks
Mehdi
 
C

Chad Z. Hower aka Kudzu

mehdi_mousavi said:
However, I'd like the caller to receive a plain text string, say,
"test", without being formatted into soap.

Thats not a webservice then. Look at HTTP handlers, or .ashx files.
 

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,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top