GetServiceVersion Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Returns the WebServiceVersion of the MarketingWebService.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute(Action := "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices/GetServiceVersion", _
RequestNamespace := "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices", _
ResponseNamespace := "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices")> _
<WebMethodAttribute> _
Public Overridable Function GetServiceVersion As WebServiceVersion
'Usage
Dim instance As MarketingWebService
Dim returnValue As WebServiceVersion
returnValue = instance.GetServiceVersion()
[SoapDocumentMethodAttribute(Action = "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices/GetServiceVersion",
RequestNamespace = "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices",
ResponseNamespace = "https://schemas.microsoft.com/CommerceServer/2004/02/WebServices")]
[WebMethodAttribute]
public virtual WebServiceVersion GetServiceVersion()
[SoapDocumentMethodAttribute(Action = L"https://schemas.microsoft.com/CommerceServer/2004/02/WebServices/GetServiceVersion",
RequestNamespace = L"https://schemas.microsoft.com/CommerceServer/2004/02/WebServices",
ResponseNamespace = L"https://schemas.microsoft.com/CommerceServer/2004/02/WebServices")]
[WebMethodAttribute]
public:
virtual WebServiceVersion GetServiceVersion()
public function GetServiceVersion() : WebServiceVersion
Return Value
Type: Microsoft.CommerceServer..::.WebServiceVersion
A WebServiceVersion which contains the Web Service version.
Remarks
Returns the WebServiceVersion of the MarketingWebService. Used to make sure that the web service and agent have compatible versions.
Changes to the minor version indicate a backward compatible change. Changes to the major version indicate an incompatible change. A client should check the Web service version before attempting to call methods on the Web service. If the version is not compatible with the version the client was developed against, the client should abort with a clear indication to the user of what went wrong.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.