Web Method Attributes

Discussion in 'ASP .Net Web Services' started by jeff@cumpsty.co.uk, Feb 22, 2007.

  1. Guest

    I have a Web Service with the following structure...

    [WebMethod]
    [return: XmlElementAttribute("Response", Namespace="http://
    www.abc.biz/")]
    public ResponseType DeliverRequest(string M, StateType CS,
    ErrorCodeType EC, InfoType I)
    {
    ResponseType c = new ResponseType();

    Return c;
    }

    Its Soap Response is ...
    <soap:Envelope ...>
    <soap:Body>
    <DeliverRequestResponse xmlns="http://www.abc.biz/">
    <Response />
    </DeliverRequestResponse >
    </soap:Body>
    </soap:Envelope>

    But I want it to be...
    <soap:Envelope ...>
    <soap:Body>
    <Response />
    </soap:Body>
    </soap:Envelope>


    Is there a method attribute that I can set to accomplish this?
     
    , Feb 22, 2007
    #1
    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. Max
    Replies:
    1
    Views:
    497
    Joe Kesselman
    Sep 22, 2006
  2. P4trykx
    Replies:
    2
    Views:
    1,843
    bruce barker
    Jan 31, 2007
  3. james_027

    class attributes & data attributes

    james_027, Jun 20, 2007, in forum: Python
    Replies:
    2
    Views:
    385
    Bruno Desthuilliers
    Jun 20, 2007
  4. Kyle Schmitt
    Replies:
    3
    Views:
    202
    Kyle Schmitt
    Jul 24, 2007
  5. Jayden
    Replies:
    16
    Views:
    539
    Steven D'Aprano
    Sep 29, 2012
Loading...

Share This Page