What Attributes do you usually suggest in your web services?

Discussion in 'ASP .Net Web Services' started by Anonieko, Jan 17, 2006.

  1. Anonieko

    Anonieko Guest

    What XML attributes do you use in your web services.

    1. Declaring Webmethods

    Example:

    [WebMethod(Description="\nThe Description goes here")]
    [SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Bare)]
    [XmlInclude(typeof(AuthorizationRequest) )]
    public ResponseType getData( AuthorizationRequest req)
    {
    //
    // put stuff here etc.
    //
    }




    2. Schema Types

    Example:


    [XmlType(Namespace="http://riag.com/schema/ccsettle/1.0")]
    public class BaseResponseType
    {
    //
    // put members or properties here.
    //
    }


    Sometimes I see also these in WebMethods

    [return:
    System.Xml.Serialization.XmlElementAttribute("getDownloadableProductsReturn",
    Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]


    Sometime I see also these in Types


    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://data.mapping.rgs.com")]
    Anonieko, Jan 17, 2006
    #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. Miguel Dias Moura

    How is this usually done?

    Miguel Dias Moura, Dec 30, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    292
  2. Kuidros via DotNetMonster.com
    Replies:
    0
    Views:
    375
    Kuidros via DotNetMonster.com
    Oct 25, 2005
  3. Reuben L.
    Replies:
    9
    Views:
    462
    William Tasso
    Nov 1, 2003
  4. Simon  Willison
    Replies:
    8
    Views:
    278
    John J. Lee
    Oct 3, 2006
  5. puzzlecracker
    Replies:
    5
    Views:
    297
    Jorgen Grahn
    Aug 22, 2008
Loading...

Share This Page