Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proxy problem
Message
De
10/10/2010 10:35:31
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Proxy problem
Divers
Thread ID:
01484621
Message ID:
01484621
Vues:
98
We have web service in Russia for getting currencies rates
I have code worked ok with it for 5 years
At new place of job we have proxy and code failed to work
I added few strings for proxy with address, but it did not help
The string, wich fails is -tt=o.GetCursOnDate(date())
The text of error is client got unticipated result
Our system men have one computer without proxy
They checked code on it and it worked good ( not strings for proxy address and port)
On pc with proxy in ie the link http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx
shows normal xml text
There are no any users or passwords or ssl for proxy
It seams to me, the problem string dos not wait 60000 * 1000 before showing error message
Set Talk Off

Public o

CLEAR ERROR

o=Createobject("MSSoap.SoapClient30")

o.ConnectorProperty("ProxyServer") = "10.1.0.1" && our "Ip-??????"
**** or could be o.ConnectorProperty("ProxyServer") = "10.1.0.1:3128"
****in IE namelly this numbers
o.ConnectorProperty("ProxyPort") = 3128

o.ConnectorProperty("Timeout") = 60000 * 1000

loexception=Null

o.MSSoapInit("http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx?WSDL", "DailyInfo", "DailyInfoSoap")

Catch To loexception

Messagebox('Import error','')
*** no error here

Messagebox('Error #' + Transform(loexception.ErrorNo) + Chr(13) + ;

'Message: ' + loexception.Message)

Release o

Return

loexception=Null

if ('tt')!='U'

Release tt
ENDIF

PUBLIC

tt as object

tt=o.GetCursOnDate(date())
****error is here

Catch To loexception

Messagebox('import error ','')

Messagebox('Error2 #' + Transform(loexception.ErrorNo) + Chr(13) + ;

'Message: ' + loexception.Message)
Release o
Return
Endtry





MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform