java - What's the deal with web service generation and JavaBeans? -


I have recently written some data access methods (plain old Java) that uses irreversible items for both the requested objects and the resulting data objects.

. I like irreversible things because they appear to be a good deal of confusion by appearing in the client code, which I have seen in the past when people try to mutate and reuse the objects.

Anyway, which was months ago. Now a colleague is having trouble in dealing with some web service generation (attempts to expose my methods), which hopes to be a jababeen everywhere.

My question is is that the web service is always the stuff of generation Jababeen? Is there any other way? Most web service frameworks provide some methods for you to provide custom serializers / deserlizers for you.

If it is not clear why this is necessary, it is because the Framework is important to know how to translate your Java class into XML and vice versa. Serialization and decryption of Javabins (sections with the get and set properties) are easy if you follow the naming strategy, but you can limit your custom type of serializers to classes Should not be able to provide bean patterns.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -