Share via


SoapHelper.GetContentType Method

Gets a string for the SOAP content type.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim soapVersion As SoapProtocolVersion
Dim returnValue As String
returnValue = SoapHelper.GetContentType(soapVersion)

Syntax

'Declaration
Public Shared Function GetContentType( _
    ByVal soapVersion As SoapProtocolVersion _
) As String
public static string GetContentType(
    SoapProtocolVersion soapVersion
);
public:
static String^ GetContentType(
    SoapProtocolVersion^ soapVersion
);
public static System.String GetContentType(
    SoapProtocolVersion soapVersion
);
public static function GetContentType(
     soapVersion : SoapProtocolVersion
) : String;

Parameters

  • soapVersion
    The SOAP version.

Return Value

A string for the SOAP content type.

Remarks

The Content-Type header for a SOAP messages specifies the MIME type. The value returned depends on whether the soapVersion is a SOAP 1.1 or SOAP 1.2.

For SOAP 1.1 the value is always "text/xml". For SOAP 1.2 the value is always "application/soap+xml".

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapHelper Class
SoapHelper Members
Microsoft.Web.Services3 Namespace