Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to web service
Message
From
30/08/2004 01:02:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Passing parameters to web service
Miscellaneous
Thread ID:
00937499
Message ID:
00937499
Views:
35
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
Next
Reply
Map
View

Click here to load this message in the networking platform