Is it possible to create read only elements in SOAP web services?
问题 I have a class with a read-only property defined. In my code I define this as a property with a getter only. I want to be able to send this object back and forth across a web service. When I call a "Get" method in the service, it would be populated with a value on the service side. Once I define this property, I don't want the consumer of the web service to be able to set/change this property. When I add a reference to this web service to a project, the object has the property serialized a