Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this?
Message
De
11/03/2002 05:24:28
 
 
À
07/03/2002 11:21:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00629069
Message ID:
00630854
Vues:
25
Hi Bonnie,

Many thanks for your quick reply. I did indeed reinstall Soap, but this time Service Pack 2, which I found at www.msdn.microsoft.com/soap. The "UseProxy" parameter you mention below is apparently a new feature. Well it works, kind of. The code now looks like this :


* ...etc.
oFoxCentral=loWS.SetupClient("http://www.foxcentral.net/foxcentral.wsdl","foxcentral","foxcentralSoapPort")

IF VARTYPE(oFoxCentral)=="O"
oFoxCentral.ConnectorProperty("UseProxy") = .T.
lcXML=oFoxCentral.GetItems(DATE()-365,0,0,"")
ENDIF
*...etc


When I step through the code with the debugger, it seems to work OK, but when I run the whole thing without breakpoints, I get the same "0x800a151e: Unknown COM status code". Does anyone know what this could be due to? Synchonisation? Timeout? Any help gratefully received.

Best wishes,
Neil



>Hi Neil,
>
>Typically that error means that something's wrong with Soap ... if I were you I'd try re-installing it (note that that means, uninstalling it first and then re-installing it, do not try to just reinstall or repair it ... that may not solve the problem).
>
>The other thing, with a proxy, there is just one command you need to get past that ...
>
>oSoap.ConnectorProperty("UseProxy") = .T.
>
>(I just read this in the latest FoxPro Advisor).
>
>Anyway, hope this helps ...
>
>~~Bonnie
>
>
>>Hi all,
>>
>> I've been mucking about with Web Services, and downloaded Ken Levy's PRG from FoxCentral.Net, but can't get it to work. When I run this code :
>>
>>LOCAL oFoxCentral as FoxCentral
>>LOCAL loWS
>>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>>loWS.cWSName = "FoxCentral"
>>oFoxCentral = loWS.SetupClient("http://www.foxcentral.net/foxcentral.wsdl", "foxcentral", "foxcentralSoapPort")
>>SET STEP ON
>>IF VARTYPE(oFoxCentral)=="O"
>> lcXML=oFoxCentral.GetItems(DATE()-365,0,0,"")
>>ENDIF
>>IF NOT EMPTY(lcXML)
>> XMLTOCURSOR(lcXML)
>>ENDIF
>>

>>I get an OLE Error code 0x800a151e: Unknown COM status code on the line :
>>
>> lcXML=oFoxCentral.GetItems(DATE()-365,0,0,"")
>>

>> Does anyone know what's going on? Could this be linked to the Firewall/proxy which usually makes my life a misery?
>>
>>Best wishes,
>>Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform