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. Advertisements

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. Simon  Willison
    Replies:
    8
    Views:
    516
    John J. Lee
    Oct 3, 2006
  2. Your Encryption Site
    Replies:
    11
    Views:
    1,019
    Kim André Akerø
    Apr 24, 2008
  3. Suganya
    Replies:
    0
    Views:
    613
    Suganya
    Apr 29, 2008
  4. puzzlecracker
    Replies:
    5
    Views:
    357
    Jorgen Grahn
    Aug 22, 2008
  5. Clueless in Seattle

    Can you suggest a reliable free web page host?

    Clueless in Seattle, May 27, 2009, in forum: HTML
    Replies:
    5
    Views:
    503
    Adrienne Boswell
    May 29, 2009
  6. Mark Shapiro
    Replies:
    3
    Views:
    737
    Mark Shapiro
    Oct 8, 2011
  7. John
    Replies:
    4
    Views:
    848
  8. PiGei

    Web Hosting - what do you suggest?

    PiGei, Mar 30, 2005, in forum: ASP General
    Replies:
    5
    Views:
    200
    Jeff Cochran
    Mar 30, 2005
Loading...