Changes for page Web Services-Controlling Enterprise Object Serialisation
Last modified by Pascal Robert on 2007/09/03 19:24
From version 2.1
edited by smmccraw
on 2007/07/08 09:46
on 2007/07/08 09:46
Change comment:
There is no comment for this version
To version 4.2
edited by Pascal Robert
on 2007/09/03 19:24
on 2007/09/03 19:24
Change comment:
Changed document parent to [xwiki:documentation.Home.Development Architecture.Web Services.WebHome].
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Programming__WebObjects-WebServices-Controlling Enterprise Object Serialisation1 +Web Services-Controlling Enterprise Object Serialisation - Parent
-
... ... @@ -1,0 +1,1 @@ 1 +documentation.Home.Development Architecture.Web Services.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. smmccraw1 +XWiki.probert - Content
-
... ... @@ -1,3 +1,1 @@ 1 -To control what attributes and relationships are serialised for an EO, subclass the //WOEnterpriseObjectSerializationStrategy// class and create one of your own. You should subclass the method //keyPathsForSerialization(...)// method and return a list of key paths (aattributes or relationships) that you would like to see serialised with the EO. Finally, to register this with a given web service (that is not D2WS), use something like //WOEnterpriseObjectSerializationStrategy.setStrategyForService(new MyEnterpriseObjectSerialisationStrategy(),"MyWebService",null);// where "MyWebService" is the name that you used to initially register the service with //WOWebServiceRegistrar//. 2 - 3 -Category:WebObjects 1 +To control what attributes and relationships are serialised for an EO, subclass the //WOEnterpriseObjectSerializationStrategy// class and create one of your own. You should subclass the method //keyPathsForSerialization(...)// method and return a list of key paths (aattributes or relationships) that you would like to see serialised with the EO. Finally, to register this with a given web service (that is not D2WS), use something like //WOEnterpriseObjectSerializationStrategy.setStrategyForService(new MyEnterpriseObjectSerialisationStrategy(),"MyWebService",null);// where "MyWebService" is the name that you used to initially register the service with //WOWebServiceRegistrar//.