Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   What Attributes do you usually suggest in your web services? (http://www.velocityreviews.com/forums/t785748-what-attributes-do-you-usually-suggest-in-your-web-services.html)

Anonieko 01-17-2006 08:30 PM

What Attributes do you usually suggest in your web services?
 
What XML attributes do you use in your web services.

1. Declaring Webmethods

Example:

[WebMethod(Description="\nThe Description goes here")]
[SoapDocumentMethod(ParameterStyle=SoapParameterSty le.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("getD ownloadableProductsReturn",
Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]


Sometime I see also these in Types


[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://data.mapping.rgs.com")]



All times are GMT. The time now is 10:52 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.