Share via


<defaultPort> Element

Specifies a value indicating the default port for a connection.

<microsoft.web.services2> Element
  <messaging> Element
    <transports> Element
      <add> Element for <transports>

<transports>
  <add scheme="soap.tcp" >
    <defaultPort value/>
  </add>
</transports>

Attributes and Elements

Attributes

Attribute Description

value

Required attribute. Specifies the default port for a connection.

Child Elements

None

Parent Elements

Element Description

<add> Element for <transports>

Adds a SOAP transport to the system.

Example

The following code example adds the soap.tcp transport to the system with a default port value of 8081.

<configuration>
  <microsoft.web.services2>
    <messaging>
      <transports>
        <add scheme="soap.tcp" >
          <defaultPort value="8081" />
        </add>
      </transports>
    </messaging>
  </microsoft.web.services2>
</configuration>

See Also

Reference

<messaging> Element
<transports> Element
<add> Element for <transports>