Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmethods & wsdl
Message
 
 
To
14/08/2002 16:47:03
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Miscellaneous
Thread ID:
00689729
Message ID:
00689953
Views:
22
Service can return a complex type with up to four elements.
type of response for SOAP request from service WDSL
- <s:complexType name="Email">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="SyntaxCheck" type="s:string" /> 
  <s:element minOccurs="0" maxOccurs="1" name="DNSCheck" type="s:string" /> 
  <s:element minOccurs="0" maxOccurs="1" name="SMTPCheck" type="s:string" /> 
  <s:element minOccurs="0" maxOccurs="1" name="Error" type="s:string" /> 
  </s:sequence>
  </s:complexType>

* Processing response

loObj = loEmail.ValidateEmail('go4s1@hotmail.com',0)

FOR i=0 TO loObj.length-1
	WITH loObj.item(i)
		? .nodeName, ":", .text
	ENDWITH
ENDFOR
>I found the Training Videos on XML & Web Services very interesting. After duplicating the demos, I tried experimenting on few others on the www.xmethods.com site and ran into several undecipherable results.
>
>One interesting site promises to validate email addresses:
>http://www.xmethods.com/ve2/ViewListing.po?serviceid=98431
>
>I tried using the code below and it returned an object, not a string.
>
>Anybody have an idea on how to proceed from here?
>
>
>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)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform