Expand Minimize

WsResetServiceProxy function

Resets service proxy.

WsResetServiceProxy provides a convenient way to reuse the service proxy. Once the proxy is closed, the application can call WsResetServiceProxy to reuse it.

Reusing the service proxy is helpful in scenarios where an application connects to the same service time and time again. The cost of initialization is only paid once during the initial creation of the service proxy.

Syntax


HRESULT WINAPI  WsResetServiceProxy(
  _In_      WS_SERVICE_PROXY* serviceProxy,
  _In_opt_  WS_ERROR* error
);

Parameters

serviceProxy [in]

The service proxy.

error [in, optional]

Specifies where additional error information should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
WS_E_INVALID_OPERATION

The serviceProxy was in an inappropriate state.

E_INVALIDARG

One or more arguments are invalid.

 

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft