System.ServiceModel Namespace
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Contains the classes, enumerations, and interfaces necessary to build Windows Phone applications that can be used to access distributed applications.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
| Class | Description | |
|---|---|---|
![]() | ActionNotSupportedException | This exception is thrown on the client when the action related to the invoked operation does not match the action of any operation available in the service. |
![]() | BasicHttpBinding | Represents a binding that a Windows Phone client can use to configure endpoints that can communicate with ASMX-based Web services and other services that conform to the WS-I Basic Profile 1.1. |
![]() | BasicHttpSecurity | Specifies the security used for a Windows Phone client configured with a BasicHttpBinding. |
![]() | ChannelFactory | Creates and manages the channels that are used by clients to send messages to service endpoints. |
![]() | ChannelFactory<TChannel> | A factory that creates channels of different types that are used by clients to send messages to variously configured service endpoints. |
![]() | ClientBase<TChannel> | Provides the base implementation used to create Windows Phone client objects (proxies) that can call services. |
![]() | ClientBase<TChannel>.ChannelBase<T> | This class is used by automatically generated client proxies to call services and should not be used otherwise. |
![]() | ClientBase<TChannel>.InvokeAsyncCompletedEventArgs | Stores the results from an asynchronous call made by the client. |
![]() | CommunicationException | Represents a communication error in either the service or client application. |
![]() | CommunicationObjectAbortedException | The exception that is thrown when the call is to an ICommunicationObject object that has aborted. |
![]() | CommunicationObjectFaultedException | The exception that is thrown when a call is made to a communication object that has faulted. |
![]() | DataContractFormatAttribute | Instructs the Windows Phone infrastructure to use the DataContractSerializer. |
![]() | EndpointAddress | Provides a unique network address that a client uses to communicate with a service endpoint. |
![]() | EndpointAddressBuilder | A factory for producing new (immutable) endpoint addresses with specific property values. |
![]() | EndpointNotFoundException | The exception that is thrown when a remote endpoint could not be found or reached. |
![]() | EnvelopeVersion | Contains information related to the version of SOAP associated with a message and its exchange. |
![]() | ExceptionDetail | Represents fault detail information. |
![]() | FaultCode | Represents a SOAP fault code. |
![]() | FaultContractAttribute | Specifies one or more SOAP faults that are returned when a service operation encounters processing errors. |
![]() | FaultException | Represents a SOAP fault. |
![]() | FaultException<TDetail> | Used in a client application to catch contractually specified SOAP faults. |
![]() | FaultReason | Provides a text description of a SOAP fault. |
![]() | FaultReasonText | Represents the text of the reason of a SOAP fault. |
![]() | InvalidMessageContractException | Represents a message contract that is not valid. |
![]() | MessageBodyMemberAttribute | Specifies that a member is serialized as an element inside the SOAP body. |
![]() | MessageContractAttribute | Defines a strongly typed class that corresponds to a SOAP message. |
![]() | MessageContractMemberAttribute | Declares the base members for MessageBodyMemberAttribute. |
![]() | MessageHeaderException | The exception that is thrown when the expectations regarding headers of a SOAP message are not satisfied when the message is processed. |
![]() | MessageParameterAttribute | Controls the name of the request and response parameter names. Cannot be used with Message or message contracts. |
![]() | OperationContext | Provides access to the execution context of a service method. |
![]() | OperationContextScope | Creates a block within which an OperationContext object is in scope. |
![]() | OperationContractAttribute | Indicates that a method defines an operation that is part of a service contract in a Windows Phone application. |
![]() | ProtocolException | The exception seen on the client that is thrown when communication with the remote party is impossible due to mismatched data transfer protocols. |
![]() | QuotaExceededException | The exception that is thrown when a message quota has been exceeded. |
![]() | ServerTooBusyException | The exception that is thrown when a server is too busy to accept a message. |
![]() | ServiceActivationException | The exception that is thrown when a service fails to activate. |
![]() | ServiceContractAttribute | Indicates that an interface or a class defines a service contract in a Windows Phone client application. |
![]() | ServiceKnownTypeAttribute | Specifies known types to be used by a service when serializing or deserializing. |
![]() | UnknownMessageReceivedEventArgs | Contains the message received by a channel and cannot be associated with any pending request. |
![]() | XmlSerializerFormatAttribute | Instructs the Windows Phone infrastructure to use the XmlSerializer instead of the XmlObjectSerializer to serialize a method or class. |
| Interface | Description | |
|---|---|---|
![]() | IClientChannel | Defines the behavior of outbound request and request/reply channels used by client applications. |
![]() | ICommunicationObject | Defines the contract for the basic state machine for all communication-oriented objects in the system, including channels, the channel managers, factories, listeners, and dispatchers, and service hosts. |
![]() | IContextChannel | Defines the interface for the context control of a channel. |
![]() | IDefaultCommunicationTimeouts | Defines the interface for specifying the communication time-outs used by channels and channel managers, such as channel factories. |
![]() | IExtensibleObject<T> | Enables an object to participate in custom behavior, such as registering for events, or watching state transitions. |
![]() | IExtension<T> | Enables an object to extend another object through aggregation. |
![]() | IExtensionCollection<T> | A collection of the IExtension<T> objects that allow for retrieving the IExtension<T> objects by their type. |
| Delegate | Description | |
|---|---|---|
![]() | ClientBase<TChannel>.BeginOperationDelegate | A delegate that is used by InvokeAsync for calling asynchronous operations on the client. |
![]() | ClientBase<TChannel>.EndOperationDelegate | A delegate that is invoked by InvokeAsync on successful completion of the call made by InvokeAsync to ClientBase<TChannel>.BeginOperationDelegate. |
| Enumeration | Description | |
|---|---|---|
![]() | BasicHttpMessageCredentialType | Enumerates credential types that the client can authenticate with when security is enabled in the BasicHttpBinding binding. |
![]() | BasicHttpSecurityMode | Specifies the types of security that can be used with the system-provided BasicHttpBinding binding. |
![]() | CommunicationState | Defines the states in which an ICommunicationObject can exist. |
![]() | OperationFormatStyle | Represents the SOAP style that determines how the WSDL metadata for the service is formatted. |




