Forum Moderators: open

Message Too Old, No Replies

public variables in web service

wsdl file question

         

f00sion

7:49 pm on May 11, 2004 (gmt 0)

10+ Year Member



I have just a basic web service class set up and want the public variables to be accessible to users, but the wsdl file that is generated doesnt have them and they dont show up in the intellisense of a project that consumes the service... is there some directive i can add similar to [webmethod] that will expose the variables in the service?

Easy_Coder

12:25 am on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might reconsider properties in a ws. your asking the service to remotely maintain state across the network/internet. I'd pass everything in a method call.

f00sion

6:03 am on May 12, 2004 (gmt 0)

10+ Year Member



yeah, thats what i figured out...thought the web service was more like a com object and would maintain state...got it all condensed in one method now though.