Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Real time weather on a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01211915
Message ID:
01228808
Vues:
27
Timothy, Great!!, that is because it needs the "value" of the one "string" parameter, just click on the column "value", just after the word "string" and replace it with your 5 digits zip code, hit ok and you should see a window with the xml values, i.e. if you enter 33029 you should get:



result code="200"
item zip="33029" state="FL" latitude="26.00637" longitude="-80.40212"
result


and if you click "Data view" you should get a table with the values from
the xml.

And of course you can now implement the previous code we were playing with.

Good luck.


>Luis, UPDATE, I got the task panel to work and I registered the USzip that you gave me. When I click VALIDATEZip in the task panel dropdown and TEST THIS SERVICE, I get a "zipcode=(string) message then I click OK and this comes up
>
>Error: 1429 - OLE IDispatch exception code 0 from Client: Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A13BE - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A13BE - Client:Unspecified client error. HRESULT=0x800A13BE..
>Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A13BE - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A13BE - Client:Unspecified client error. HRESULT=0x800A13BE


>
>>Hi Timothy, Yes it is suppose to work as it is, I copy the code from this message in my computer running VFP8 and it ran without a problem, see
>>if in the code when you type "loNotification." opens the intellisense, it should. What version of Fox are you using?, What version of the SOAP client?
>> Let me know.
>
>>>>LOCAL loNotification AS "MSSOAP.SoapClient30"
>>>>* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
>>>>*__VFPWSDef__: lonotification = http://www.webservicemart.com/uszip.asmx?wsdl notification , notificationSoap
>>>>
>>>>lcZip = "33029"
>>>>loNotification = CREATEOBJECT("MSSOAP.SoapClient30")
>>>>
>>>>leRtnVal = loNotification.MSSoapInit("http://www.webservicemart.com/uszip.asmx?wsdl")
>>>>
>>>>
>>>>leResult = loNotification.ValidateZip(lcZip)
>>>>
>>>>XMLTOCURSOR(leResult,'ZIP')
>>>>
>>>>SELECT ZIP
>>>>BROWSE
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform