Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to web service
Message
De
30/08/2004 01:02:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Passing parameters to web service
Divers
Thread ID:
00937499
Message ID:
00937499
Vues:
36
I am a first-time Web Service creator and am trying to figure out how accept parameters. The parameter lnUniqid isn't accepted when I run my web service (it works fine without any parament). Here is my web service code:
DEFINE CLASS LanduseInq AS Session OLEPUBLIC

   PROCEDURE SingleAddress AS String
      PARAMETERS lnUniqid   
      LOCAL loXMLAdapter AS XMLAdapter
      LOCAL lcXMLAddress AS String

      loXMLAdapter = CREATEOBJECT("XMLAdapter")
	      
      OPEN DATABASE "c:\commcity\data\landuse"
      SET PATH TO c:\city\data\landuse
      nUniqid=IIF(TYPE('lnUniqid')<>'N',123,lnUniqid)
      USE landuse_view

      loXMLAdapter.AddTableSchema("landuse_view")
      loXMLAdapter.UTF8Encoded = .T.
      loXMLAdapter.ToXML("lcXMLAddress")

      CLOSE DATABASES ALL

      RETURN lcXMLAddress
   ENDPROC
ENDDEFINE
thanks

bonnie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform