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