|
| web services (proxy port) |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.webservices.
| Afsheen |
Hi,
I have a client calling a web service. I need to check at the client end the auto detect proxt setting if they are not set then the client should connect to internet by specifying the proxy port and proxy number for them to start using a web service. I have to port code from vb 6 to vb.net. In vb 6 there are properties to do that when creating a soap object with soap toolkit ... Whats the equivalent of this in .net .. the vb 6 code is given below. How can i check in .net whether the proxy settings are automatic or not.
Set ObjSP = New MSSOAPLib30.SoapClient30
ObjSP.MSSoapInit Trim(gObjSys.ExtractWSDLUrl), Trim(ExtractService), Trim(ExtractPort)
ObjSP.ConnectorProperty("ConnectTimeout") = 5000
'// if auto detect then use these settings If gObjSys.ProxyUse = "1" Then ObjSP.ConnectorProperty("ProxyServer") = ProxyName & ":" & ProxyPort Else ObjSP.ConnectorProperty("ProxyServer") = "<CURRENT_USER>" ObjSP.ConnectorProperty("EnableAutoProxy") = True End If
If gObjSys.SOAPTimeOut <> "0" Then If IsNumber(SOAPTimeOut) Then ObjSP.ConnectorProperty("Timeout") = CLng(SOAPTimeOut) End If
thnaks Afsheen
|
|
|
| |
|
| |
| | |
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|