System.ServiceModel
TOC
Collapse the table of content
Expand the table of content

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.

  ClassDescription
Public classActionNotSupportedExceptionThis 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.
Public classBasicHttpBindingRepresents 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.
Public classBasicHttpSecuritySpecifies the security used for a Windows Phone client configured with a BasicHttpBinding.
Public classChannelFactoryCreates and manages the channels that are used by clients to send messages to service endpoints.
Public classChannelFactory<TChannel>A factory that creates channels of different types that are used by clients to send messages to variously configured service endpoints.
Public classClientBase<TChannel>Provides the base implementation used to create Windows Phone client objects (proxies) that can call services.
Protected classClientBase<TChannel>.ChannelBase<T>This class is used by automatically generated client proxies to call services and should not be used otherwise.
Protected classClientBase<TChannel>.InvokeAsyncCompletedEventArgsStores the results from an asynchronous call made by the client.
Public classCommunicationExceptionRepresents a communication error in either the service or client application.
Public classCommunicationObjectAbortedExceptionThe exception that is thrown when the call is to an ICommunicationObject object that has aborted.
Public classCommunicationObjectFaultedExceptionThe exception that is thrown when a call is made to a communication object that has faulted.
Public classDataContractFormatAttributeInstructs the Windows Phone infrastructure to use the DataContractSerializer.
Public classEndpointAddressProvides a unique network address that a client uses to communicate with a service endpoint.
Public classEndpointAddressBuilderA factory for producing new (immutable) endpoint addresses with specific property values.
Public classEndpointNotFoundExceptionThe exception that is thrown when a remote endpoint could not be found or reached.
Public classEnvelopeVersionContains information related to the version of SOAP associated with a message and its exchange.
Public classExceptionDetailRepresents fault detail information.
Public classFaultCodeRepresents a SOAP fault code.
Public classFaultContractAttributeSpecifies one or more SOAP faults that are returned when a service operation encounters processing errors.
Public classFaultExceptionRepresents a SOAP fault.
Public classFaultException<TDetail>Used in a client application to catch contractually specified SOAP faults.
Public classFaultReasonProvides a text description of a SOAP fault.
Public classFaultReasonTextRepresents the text of the reason of a SOAP fault.
Public classInvalidMessageContractExceptionRepresents a message contract that is not valid.
Public classMessageBodyMemberAttributeSpecifies that a member is serialized as an element inside the SOAP body.
Public classMessageContractAttributeDefines a strongly typed class that corresponds to a SOAP message.
Public classMessageContractMemberAttributeDeclares the base members for MessageBodyMemberAttribute.
Public classMessageHeaderExceptionThe exception that is thrown when the expectations regarding headers of a SOAP message are not satisfied when the message is processed.
Public classMessageParameterAttributeControls the name of the request and response parameter names. Cannot be used with Message or message contracts.
Public classOperationContextProvides access to the execution context of a service method.
Public classOperationContextScopeCreates a block within which an OperationContext object is in scope.
Public classOperationContractAttributeIndicates that a method defines an operation that is part of a service contract in a Windows Phone application.
Public classProtocolExceptionThe exception seen on the client that is thrown when communication with the remote party is impossible due to mismatched data transfer protocols.
Public classQuotaExceededExceptionThe exception that is thrown when a message quota has been exceeded.
Public classServerTooBusyExceptionThe exception that is thrown when a server is too busy to accept a message.
Public classServiceActivationExceptionThe exception that is thrown when a service fails to activate.
Public classServiceContractAttributeIndicates that an interface or a class defines a service contract in a Windows Phone client application.
Public classServiceKnownTypeAttributeSpecifies known types to be used by a service when serializing or deserializing.
Public classUnknownMessageReceivedEventArgsContains the message received by a channel and cannot be associated with any pending request.
Public classXmlSerializerFormatAttributeInstructs the Windows Phone infrastructure to use the XmlSerializer instead of the XmlObjectSerializer to serialize a method or class.

  InterfaceDescription
Public interfaceIClientChannelDefines the behavior of outbound request and request/reply channels used by client applications.
Public interfaceICommunicationObjectDefines 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.
Public interfaceIContextChannelDefines the interface for the context control of a channel.
Public interfaceIDefaultCommunicationTimeoutsDefines the interface for specifying the communication time-outs used by channels and channel managers, such as channel factories.
Public interfaceIExtensibleObject<T>Enables an object to participate in custom behavior, such as registering for events, or watching state transitions.
Public interfaceIExtension<T>Enables an object to extend another object through aggregation.
Public interfaceIExtensionCollection<T>A collection of the IExtension<T> objects that allow for retrieving the IExtension<T> objects by their type.

  DelegateDescription
Protected delegateClientBase<TChannel>.BeginOperationDelegateA delegate that is used by InvokeAsync for calling asynchronous operations on the client.
Protected delegateClientBase<TChannel>.EndOperationDelegateA delegate that is invoked by InvokeAsync on successful completion of the call made by InvokeAsync to ClientBase<TChannel>.BeginOperationDelegate.

  EnumerationDescription
Public enumerationBasicHttpMessageCredentialTypeEnumerates credential types that the client can authenticate with when security is enabled in the BasicHttpBinding binding.
Public enumerationBasicHttpSecurityModeSpecifies the types of security that can be used with the system-provided BasicHttpBinding binding.
Public enumerationCommunicationStateDefines the states in which an ICommunicationObject can exist.
Public enumerationOperationFormatStyleRepresents the SOAP style that determines how the WSDL metadata for the service is formatted.

Show:
© 2016 Microsoft