General information
Title:
Properties Not Exposed?
I just created my first Web service and published it thru IIS. Then, on another machine through the internet, I registered it and tried to use it. Even though the methods of the web service are accessible, none of the properties of the web service are accessible. I did not make the properties PROTECTED or HIDDEN. The class definition looks like this:
DEFINE CLASS WSTest AS Session OLEPUBLIC
WSName="WSTest"
FUNCTION SayHello AS String
RETURN "Hello, from "+This.WSName
ENDFUNC
FUNCTION SayHelloX (tcName AS String) AS String
RETURN "Hello, "+tcName+", from "+This.WSName
ENDFUNC
ENDDEFINE
When accessing this webserver on a different machine, I can run the following (I didn't include the "automatic code" that is entered by the intellisense)
LOCAL oWS AS WSTest
* Code is automatically entered by my intellisense...
? oWS.SayHello() && ==> displays "Hello, from WSTest"
? oWS.SayHelloX("Alan") &&==> displays "Hello, Alan, from WSTest"
? oWS.WSName && ==> Results in an error, unknown name.
Do I need to explicitly expose the properties?
Thanks
Alan
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only