Modify command test.prgIn the modify program window type:
LOCAL cc_ver ASEnd the above command with a space and intellisence will provice a drop down list. Find the service you registered above. It will be under whatever name you gave it. I give it the name of [creditcard] per the example below.
LOCAL cc_ver AS creditcard LOCAL loWS loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx") loWS.cWSName = "creditcard" cc_ver = loWS.SetupClient("http://www.iemfamily.com/iemfamily/CreditCard.asmx?WSDL",; "CreditCheck", "CreditCheckSoap") *FoxPro Provides the above code after your type LOCAL cc_ver AS * *Now check a credit card to see if its valid with the code below * cc_no=space(18) DEFINE WINDOW comment FROM 3,3 TO 17,75 ; font 'courier',12 STYLE 'N'; NOCLOSE NOFLOAT NOGROW SHADOW NOZOOM DOUBLE color scheme 10 ACTIVATE WINDOW comment do while .T. clear @ 1,2 say "Enter the credit card number" get cc_no read lee=cc_ver.VerifyCreditCard(alltrim(cc_no)) @ 3,2 say " Credit Card is: " modify window comment font 'courier',16 STYLE 'BI' @ 2.4,15 say lee modify window comment font 'courier',12 STYLE 'N' @ 8.5,2 say "Exit Credit Card Verification?" DEFINE MENU getans font 'ms sans serif',10 style 'NI' color scheme 13 DEFINE PAD yes of getans PROMPT ' \<Yes ' AT 8.8,40 DEFINE PAD no of getans PROMPT ' \<No ' AT 8.8,50 on SELECTION PAD yes of getans Deactivate MENU getans on SELECTION PAD no of getans Deactivate MENU getans Activate MENU getans Release MENU getans IF prompt() = ' Yes ' exit else cc_no=space(18) endif enddo release window comment returnI played around with this one Saturday morning and was able to get some services to register but many others would not register.