Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing XML through HTTP proxies
Message
From
12/10/2007 00:34:36
 
 
To
11/10/2007 06:57:45
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01259463
Message ID:
01260478
Views:
10
Francois

This is my code generated from VFP. The key line is the setting of the ConnectorProperty setting. This uses my settings from IE and works through the proxy.
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
	loISoapServerPort = loWSHandler.SetupClient("http://xml.redcoal.com/soapserver.dll/wsdl/ISoapServer", "ISOAPServerservice", "ISoapServerPort")
	
	* added by BAB for use behind a proxy. Comment it out if not needed
	loWSHandler.wsobject.ConnectorProperty("ProxyServer") = "<CURRENT_USER>"
	
	* Call your XML Web service here.  ex: leResult = loISoapServerPort.SomeMethod()
>Just two words: Thank you.
>
>I'm still fiddling with the beast. But it should be working OK. The strategy for the product (a VFP application that essentially consumes Internet XML resources) is the following.
>
>The application relies on the supposedly stable HTTPXML 4.0 library (that calls the WINHTT component internally when applicable)
>
>Depending on where the resources is located, parsing is done as follows:
>
>1) for local resources (on the workstation),
>use CREATEOBJECT("MSXML.DOMDocument.4.0")
>
>2) for internet resources
>use CREATEOBJECT("MSXML.XMLHTTP.4.0"), this library does use IE proxy settings when set per default (including PAC file ones),
>
>3) for internet via proxy and credentials (user/password),
>use CREATEOBJECT("MSXML.XMLHTTP.4.0"), this library does not use IE proxy settings, the user is requested to insert user/password in a VFP form prior to any call. The proxy set-up is done via proxyconfig.cfg or via ini file settings.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform