Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a Web Service from behind a firewall
Message
From
15/11/2001 08:50:56
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00579797
Message ID:
00581996
Views:
52
James another thing that you can heave in your application instead of having the user to specify if he is using a proxy is the following :
lo = CreateObject("WScript.Shell")
ln=lo.RegRead('HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable')
now ln will have a value of 0 if the user isn't using a proxy and a value of 1 if the user is using a proxy base on that you can now specify UseProxy before doing the SOAP call.

>>James the response is at the end.
>>
>>>>Evan you can try the following:
>>>>lo = CREATEOBJECT('mssoap.soapclient')
>>>>lo.mssoapinit('your wsdl location')
>>>>lo.ConnectorProperty("UseProxy") = .t.
>>>>
>>>>now you can do your call
>>>>
>>>>by default soap doesn't use a proxy you need to state after every mssoapinit that you want to use a proxy.
>>>>
>>>>the UseProxy is Boolean property that specifies whether a to use a proxy server. By default, this property is set to False indicating that a proxy server should not be used. Set this property to True if you want to use a proxy server.
>>>>If you set this property to True and don't specify the ProxyServer property, then the HttpConnector uses the proxy server set in the default settings of Microsoft® Internet Explorer.
>>>>
>>>>In this release, the HttpConnector ignores the "Bypass Proxy" settings in Internet Explorer
>>>>
>>>>This was taken from the soap user guide help file.
>>>>WE developers have a statement that we normally say to the user that is RTFM, but we sometimes forget to do the same.
>>>
>>>I've been lurking on this thread since the beginning, wondering what the outcome will be. Does this mean that if you distribute an application that uses soap to access web services you need to check for a proxy server?
>>
>>The answer for now is Yes but then again so this is true for internet explorer if you are using a proxy server and don't configure IE then you won't bwe able to access the internet.
>>What you can do in your application is to have an option screen an in that screen put an option specified if you are using a proxy or not and if that option is true then after eachmssoapinit you do the useproxy property.
>
>Excellent! Congratulations to you and all the other contributors for the great detective work.
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform