Hi all,
I know this is a Wonder question, but for some reason the source forge mail
servers tend to refuse my mail.
I'm trying to use ERRest to replace some existing XML service calls, the
problem is that the current formatting of the XML files produced is somewhat
arbitrary, as in it doesn't match the data model.
For example, we have two entities: Identity and Account. Each identity can have
multiple accounts, but in the XML, they are flattened into a "person" node so
we currently have:
<person>
<id>1928374</id>
<username>StrudelCutie4427</username>
<firstname>Heinz</firstname>
<lastname>Doofenshmirtz</lastname>
</person>
ERRest is producing:
<Accounts type="Account" id="10201040013">
<userName>StrudelCutie4427</userName>
<identity type="Identity" id="1040013">
<id>1928374</id>
<firstname>Heinz</firstname>
<lastname>Doofenshmirtz</lastname>
</identity>
</Accounts>
So I want to override not just what the entities are called (just for this one
request - not for all requests against Account and Identity) but I also want to
flatten some of the relationships and rename attributes.
I can't see any built-in way to do this kind of toying with the object graph,
unless I'm missing something.
So, if ERRest can't do it, what would be some suggestions on how to do it?
Create a non-EO class that manually flattens the information and have ERRest
vend that?
Dave _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]