How do we hide public properties when using a XMLweb service?
XML / XSL
1
Posts
1
Posters
1
Views
1
Watching
-
Hi, I have created a XMLWeb Service and there is a class like this class CUSTOMER { public string user; public string password; } I have to used above two attributes in many classes inside the namespace .That 's why I have to declare them as public. In addition , I need to hide above attributes when clients access my xmlwebservice. becasue those variables are using inside the namespace classes only. abcservice lobjservice=new abcservice() lobjservice.customer.user=""; lobjservice.customer.password=""; How do I hide 'user' and 'password' ,when we are accessing the service?