Disabling the soap formatter!

Discussion in 'ASP .Net Web Services' started by mehdi_mousavi, May 11, 2005.

  1. 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
    mehdi_mousavi, May 11, 2005
    #1
    1. Advertising

  2. "mehdi_mousavi" <> wrote in
    news::
    > 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.


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Blog: http://blogs.atozed.com/kudzu
    Chad Z. Hower aka Kudzu, May 11, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward Yang

    About ViewState and LOS formatter

    Edward Yang, Nov 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    876
    bruce barker
    Nov 22, 2004
  2. David Herbst
    Replies:
    1
    Views:
    3,232
    David Herbst
    Jan 29, 2006
  3. Timo Nentwig

    JSP formatter

    Timo Nentwig, Aug 1, 2004, in forum: Java
    Replies:
    4
    Views:
    1,135
  4. Michael B. Williams

    java.util.Formatter and JCreator

    Michael B. Williams, Oct 21, 2004, in forum: Java
    Replies:
    6
    Views:
    830
    Thomas Weidenfeller
    Oct 22, 2004
  5. A.M-SG

    Switching from XML formatter to Binary Formatter

    A.M-SG, Nov 21, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    325
    Steven Cheng[MSFT]
    Nov 22, 2005
Loading...

Share This Page