The WCFConnection class specifies the properties required for a WCF client to connect to a WCF or Web service. WCFConnection is the base class for the WCFConnection object.
WCFConnection property | Type | Description |
---|---|---|
BindingType | WCFBindingType (enumeration) |
Specifies the binding type and communciation format
to use when accessing a service.
The default value is generated from the service contract. If you delete this value, the connection is attempted using BasicHttpBinding as the default binding type. Values are: BasicHttpBinding, wsHttpBinding, NetTcpBinding, and NetNamedPipeBinding
.
WCF connection bindings are described on the MSDN Web site: http://msdn.microsoft.com/en-us/library/ms731092.aspx. |
ClientCredential | WCFClientCredential (class) | Specifies the WCF credential to use for communication with the service. |
EndpointAddress | WCFEndpointAddress (class) | Specifies a URL for the remote service, and tells the service engine where the service resides. If the endpoint is not explicitly set, the service engine uses the default endpoint embedded in the service contract file and in the generated service assembly. |
ProxyServer | WCFProxyServer (class) | Allows you to specify credentials for a proxy server if the client machine is behind a firewall. If the client machine is directly connected to the Internet, you need not set this property. |
Timeout | String | Specifies how long the WCF engine waits, while invoking the service, before timing out. The default value is 10 minutes ("00:10:00"). The format for the time is "hh:mm:ss". The service might have a different timeout value on the server side. |
BasicHttpBinding | WCFBasicHttpBinding (class) | Defines binding settings for BasicHttpBinding. This property is used only when the BindingType property is BasicHttpBinding. |
wsHttpBinding | WCFwsHttpBinding (class) | Defines binding settings for wsHttpBinding. This property is used only when the BindingType property is wsHttpBinding. |
netTcpBinding | WCFNetTcpBinding (class) | Defines binding settings for NetTcpBinding. This property is used only when the BindingType property is NetTcpBinding. |
netNamedPipeBinding | WCFNetNamedPipeBinding (class) | Defines binding settings for NetNamedPipeBinding. This property is used only when the BindingType property is NetNamedPipeBinding. |
SoapMessageHeader | WCFSoapMessageHeader (class) | Defines SoapHeader items for the SOAP request message. |
These binding types are not currently supported: WS2007HttpBinding, WSFederationHttpBinding, WS2007FederationHttpBinding, NetMsmqBinding, WebHttpBinding, WSDualHttpBinding, NetPeerBinding, and MsmqIntegrationBinding.