Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

WebObjects/Web Services/Controlling Enterprise Object Serialisation

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

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.