UddiConnection.HttpClient Property
Note: The Microsoft UDDI SDK is not supported by or included in Microsoft Windows versions after Microsoft Windows Server 7. The Microsoft UDDI V3 SDK is included with Microsoft BizTalk Server. For more information about the Microsoft UDDI V3 SDK, see Microsoft BizTalk Server documentation
Gets the SoapHttpClientProtocol object for this connection.
Namespace: Microsoft.Uddi
Assembly: microsoft.uddi (in microsoft.uddi.dll)
Usage
Visual Basic |
---|
Dim instance As UddiConnection Dim value As SoapHttpClientProtocol value = instance.HttpClient |
Syntax
'Declaration
PublicReadOnlyPropertyHttpClientAsSoapHttpClientProtocol
publicSoapHttpClientProtocolHttpClient { get; }
public:
propertySoapHttpClientProtocol^ HttpClient {
SoapHttpClientProtocol^ get ();
}
/** @property */
publicSoapHttpClientProtocolget_HttpClient ()
publicfunction getHttpClient () : SoapHttpClientProtocol
Property Value
The SoapHttpClientProtocol object for this connection.
Example
The following example shows how to use the Visual C# programming language to specify a proxy server, someproxy, and a port, 80, for a UddiConnection.
// Create a UddiConnection using the Inquiry URL of a UDDI server.
UddiConnection oConnection = new Microsoft.Uddi.UddiConnection("http://test.uddi.contoso.com/inquire");
// Create an instance of the System.Net.IWebProxy class using the
// System.Net.WebProxy method, which takes two parameters. The first
// parameter is the address and port of the proxy and the second
// parameter is a Boolean value that indicates whether to bypass the
// proxy for local addresses.
System.Net.IWebProxy oProxy = new System.Net.WebProxy("http://someproxy:80",true);
// Use the UddiConnection.HttpClient property to access the
// SoapHttpClientProtocol object and set the
// SoapHttpClientProtocol.Proxy property to oProxy.
oConnection.HttpClient.Proxy = oProxy;
// Insert code that uses the UddiConnection.
Remarks
The HttpClient property of the UddiConnection object exposes the underlying SoapHttpClientProtocol object. This object enables the configuration of many low-level HTTP connection properties. Properties of particular interest include the following:
Credentials
Enables you to specify alternate Windows authentication credentials.
Proxy
Contains the settings that are required for making connections to a server through a firewall or proxy.
Timeout
Indicates the time (in milliseconds) that the client waits for a UDDI request to be completed.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Target Platforms
Windows Server 2008, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP
See Also
Reference
UddiConnection Class
UddiConnection Members
Microsoft.Uddi Namespace