WCF Service Configuration File Attributes

The WCF Service configuration file defines important service attributes.

The project.config file that PowerBuilder generates contains attributes based on your settings in the WCF Service target wizard or Project painter. This topic documents bindings and security attributes that can be defined in the WCF Service configuration file.

Binding Attributes
Binding Binding Tag Description
BasicHttpBinding basicHttpBinding A binding that is suitable for communicating with Web services that conform to the WS-Basic Profile, such as ASP.NET Web services (ASMX)-based services. This binding uses HTTP as the transport and text/xml as the default message encoding.
WSHttpBinding wsHttpBinding A secure and interoperable binding that is suitable for non-duplex service contracts.
NetTcpBinding netTcpBinding A secure and optimized binding suitable for cross-machine communication between WCF applications.
NetNamedPipeBinding netNamedPipeBinding A secure, reliable, optimized binding that is suitable for on-machine communication between WCF applications.
WebHttpBinding WebHttpBinding The WCF Web Programming Model allows developers to expose WCF Web services through HTTP requests that use "plain old XML" (POX) style messaging instead of SOAP-based messaging. For clients to communicate with a service using HTTP requests, an endpoint of the service must be configured with the wsHttpBinding that has the WebHttpBehavior attached to it.
Security Mode Attributes
Security Mode Description
None Security is disabled.
Transport Security is provided using a secure transport (for example, HTTPS).
Message Security is provided using SOAP message security.
TransportWithMessageCredential A secure transport (for example, HTTPS) provides integrity, confidentiality, and authentication while SOAP message security provides client authentication.
TransportCredentialOnly This mode does not provide message integrity and confidentiality. It provides only HTTP-based client authentication. Use this mode with caution, in environments where the transfer security is provided by other means (such as IPSec), and where the infrastructure provides only client authentication.
Security Mode Bindings
Binding Supported Security Mode
BasicHttpBinding None, Transport, Message (default), TransportWithMessageCredential, TransportCredentialOnly
WSHttpBinding None, Transport, Message (default), TransportWithMessageCredential
NetTcpBinding None, Transport (default), Message, TransportWithMessageCredential
NetNamedPipeBinding None, Transport (default)
WebHttpBinding None (default), Transport, TransportCredentialOnly