Is there any way in highlighting a web service, I marked some properties in the object irrevocable or marked simply to read I can?
Thanks
There is nothing special about web services in this regard. If your data object is irreversible on the server side, and the client is deserialized as an irreversible class on the side, then no properties will be able to modify.
However, what is your motivation for this? Doing something irreversible with the perspective of the customer is primarily for the convenience of your server rather than any type of security / purity. If they modify their version of an object, then they will not be different for you because they are different, so if you are worried that you want to be depressed, after configuring server configuration parameters, without being able to change them, only Go ahead - sorting / deserialisation process means they do not get an copy in the context of the object.
(Note that if you are using remote object sharing like RMI or terracotta then the above paragraph may not be correct, but then this is not a web service in classical sense.)
Comments
Post a Comment