<compatibility> Element
Specifies the wire format used by outgoing SOAP messages.
<microsoft.web.services2> Element
<compatibility mode />
Attributes and Elements
Attributes
Attribute | Description |
---|---|
mode |
Specifies the wire format used by outgoing SOAP messages. The default is WSE2RTM. |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Controls the configuration options defined by WSE. |
Remarks
Use the <compatibility> element to generate SOAP messages that are compatible with a specific release of WSE 2.0.
When a SOAP recipient is expected to return a SOAP response to the SOAP messages sender, WSE returns the SOAP response in the same format as the SOAP request. That is, if a SOAP request is received in WSE2RTM format and the receiving application is running WSE 2.0 SP2, the SOAP response is returned in WSE2RTM format, regardless of the value of the <compatibility> element.
WSE accepts wire formats for the current version of WSE 2.0 and all previous minor releases.
The WSESP1 and WSERTM wire formats are identical.
Example
The following code example causes WSE to generate SOAP messages that are compatible with WSE 2.0 service pack 2.
<configuration>
<configSections>
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<microsoft.web.services2>
<compatibility mode="WSE2SP2" />
</microsoft.web.services2>
</configuration>