WsResetServiceProxy function (webservices.h)
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 WsResetServiceProxy(
[in] WS_SERVICE_PROXY *serviceProxy,
[in, optional] WS_ERROR *error
);
Parameters
[in] serviceProxy
The service proxy.
[in, optional] error
Specifies where additional error information should be stored if the function fails.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
The serviceProxy was in an inappropriate state. |
|
One or more arguments are invalid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | webservices.h |
Library | WebServices.lib |
DLL | WebServices.dll |