What Attributes do you usually suggest in your web services?

A

Anonieko

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")]
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,763
Messages
2,569,561
Members
45,035
Latest member
HoTaKeDai

Latest Threads

Top