Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing web service from VFP
Message
De
17/09/2005 13:24:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Accessing web service from VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01050620
Message ID:
01050620
Vues:
57
We have a third party web service running on a local computer. This WS monitors PBX (phone system - incoming/outgoing calls etc.)
WS can be accessed by typing the following in IE: http://localhost/consoleNET/bksxmlservice.asmx. This page provides description of available methods.
One of the methods getAllCalls() can be invoked by clicking a button. It returns an XML string. Something like this:

[XMLRTINFO]
[XMLBCALLS]
[PBXID]1[/PBXID]
[CallDur]00:08[/CallDur]
[cmdID]-1[/cmdID]
[Line][/Line]
[myUID]6.32625579569661E+17[/myUID]
[CallID]48[/CallID]
[status]3[/status]
[callType]0[/callType]
[dev0]L151[/dev0]
[dev1]319[/dev1]
[ToEXT][/ToEXT]
[Dir]IN[/Dir]
[DNIS]4206[/DNIS]
[Name]Unavailable[/Name]
[Number]1234567890[/Number]
[IntLine]65535[/IntLine]
[IntLineDN]4206[/IntLineDN]
[IntLineName]XYZ[/IntLineName]
[gotInf]1[/gotInf]
[/XMLBCALLS]
[/XMLRTINFO]
This string is shown in IE (except that I replaced all angle brackets since they get stripped out. Originally it was valid XML string). This proves that WS is working properly and method returns what is expected.

Now. I'm trying to call the same method from VFP8.

gcURL = "http://localhost/Console20/BksXmlService.asmx?wsdl"
oSOAP = CREATEOBJECT("MSSoap.SoapClient30")
oSOAP.MSSoapInit(gcURL)
gcXML = oSOAP.getAllCalls()
?gcXML

Code executes without error. But at the end variable gcXML has only [XMLRTINFO][/XMLRTINFO].
Have run both of them multiple times simultaneously. IE always returns some calls. VFP never does.

What might be the issue?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform