Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xmethods & wsdl
Message
De
15/08/2002 10:17:04
 
 
À
14/08/2002 16:47:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Divers
Thread ID:
00689729
Message ID:
00689952
Vues:
22
Hi Martin.

>LOCAL loEmail as validateemail
>LOCAL loWS
>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>loWS.cWSName = "validateemail"
>loEmail = loWS.SetupClient("http://ws.serviceobjects.net/ev/EmailValidate.asmx?WSDL", "EmailValidate", "EmailValidateSoap")
>kk = loEmail.ValidateEmail('go4s1@hotmail.com',0)
>MESSAGEBOX(kk)

Some Web Services return an XML DOM object rather than an XML string; this is such an example. IntelliSense helps nicely here; if you suspend the program and type "KK." in the Command window, you'll see the PEMs of the DOM object. Here's what I found from your code:
? kk.length
* 3
* collection is 0-based, so 3 items means elements 0 - 2
? kk.item(0).xml
* <SyntaxCheck xmlns="http://www.serviceobjects.com/">Passed</SyntaxCheck>
? kk.item(1).xml
* <DNSCheck xmlns="http://www.serviceobjects.com/">Passed</DNSCheck>
? kk.item(2).xml
* <SMTPCheck xmlns="http://www.serviceobjects.com/">Passed</SMTPCheck>
? kk.item(0).parentnode.xml
* <ValidateEmailResult xmlns="http://www.serviceobjects.com/">
<SyntaxCheck>Passed</SyntaxCheck>
<DNSCheck>Passed</DNSCheck>
<SMTPCheck>Passed</SMTPCheck>
</ValidateEmailResult>
Hope this helps.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform