This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
System.Web.Services.Protocols.ClientProtocol
The ClientProtocol class defines the base class used when implementing all client proxies generated by the WebServiceUtil utility. Note that what protocol-specific subclasses of the ClientProtocol class are used depends on the protocol used to talk to the web service.
Consumers of the proxy can set the public ClientProtocol properties/ methods to customize the proxy’s interaction with the target web service.
namespace System.Web.Service.Protocols
{
public class ClientProtocol : Component
{
// Properties
public bool AllowAutoRedirect { get; set; }
public bool EnableCookies { get; set; }
public String Path { get; set; }
public String UserName { get; set; }
public String Password { get; set; }
public String Domain { get; set; }
}
}
Properties
AllowAutoRedirect |
Prototype |
public bool AllowAutoRedirect { get; set; } |
Description |
Indicates whether proxy should automatically follow redirect requests from target web service (default is true). |
EnableCookies |
Prototype |
public bool EnableCookies { get; set; } |
Description |
Indicates whether proxy should support and maintain client side HTTP cookies between requests (default is true) |
Path |
Prototype |
public String Path { get; set; } |
Description |
Indicates path to target webservice. By default it is set to the path specified in the original SDL file. |
UserName |
Prototype |
public String UserName { get; set; } |
Description |
UserName to use when authenticating against a web service |
Password |
Prototype |
public String Password { get; set; } |
Description |
Password to use when authenticating against a web service |
Domain |
Prototype |
public String Domain { get; set; } |
Description |
Domain to use when authenticating against a web service |