From: Michael H. <mh...@de...> - 2010-09-03 16:33:53
|
Thanks. Cool. Michael. On 9/3/2010 9:31 AM, David Holt wrote: > Project Wonder > > Here for example: ERRestRouteExample.woa.tar.gz > <http://webobjects.mdimension.com/hudson/job/Wonder54/lastSuccessfulBuild/artifact/dist/ERRestRouteExample.woa.tar.gz> > > <http://webobjects.mdimension.com/hudson/job/Wonder54/lastSuccessfulBuild/artifact/dist/ERRestRouteExample.woa.tar.gz> > On 2010-09-03, at 8:44 AM, Michael Hast wrote: > >> If I may ask, where can I find Mikes route example code? >> >> Michael. >> >> On 9/2/2010 11:51 PM, Martin Samm wrote: >>> David, >>> >>> thanks for that; saved me from heading down a blind alley! >>> >>> I am already using non-EO classes to wrap EO classes and to allow me to >>> add extra attriburtes. I'll have a another look over Mikes route example >>> code. >>> >>> Thanks again, >>> >>> Martin >>> >>> >>> On 2 September 2010 21:05, David Avendasora >>> <web...@av... <mailto:web...@av...> >>> <mailto:web...@av...>> wrote: >>> >>> Hi Martin, >>> >>> The ERXAbstractRestResponseWriter and it's subclasses are the old >>> way of doing things. Maybe Mike will deprecate them? >>> >>> According to Mike, you want to make a custom ERXRestFormat with a >>> custom ERXRestWriter and ERXRestParser if you want to change the >>> actual format of the wire protocol. >>> >>> Now, as far as changing the structure of the XML file itself, you >>> may need to do what I spent time doing yesterday, which is creating >>> a non-EO class that has the data structure I want with things >>> flattened, and such. >>> >>> You can look at the ERRestRoutesExample project in wonder, where >>> Mike shows how to do it. >>> >>> Good luck! >>> >>> Dave >>> >>> On Sep 2, 2010, at 3:32 PM, Martin Samm wrote: >>> >>>> at the moment, i am generating a rest response like this: >>>> >>>> <Category type="Category" id="14"> >>>> <category type="MediaCategory" id="14"> >>>> <customMethodName nil="true"/> >>>> <descr>Homepage Slideshow</descr> >>>> <enabled>false</enabled> >>>> <enabledForAdmin>true</enabledForAdmin> >>>> <eventDate nil="true"/> >>>> <html nil="true"/> >>>> <mediaMetaOverrideDict nil="true"/> >>>> <passphrase nil="true"/> >>>> <posn>30</posn> >>>> <shortDescr nil="true"/> >>>> <xmlData nil="true"/> >>>> </category> >>>> <mediaList type="MediaList"> >>>> <media type="Object"> >>>> <MediaProxy type="MediaProxy" id="21"/> >>>> <MediaProxy type="MediaProxy" id="3"/> >>>> <MediaProxy type="MediaProxy" id="24"/> >>>> <MediaProxy type="MediaProxy" id="25"/> >>>> </media> >>>> </mediaList> >>>> </Category> >>>> >>>> i want to 'flatten' the XML to remove the '<media type="Object"> >>> ' node. >>>> >>>> From what I can see, i think i need to implement a custom >>> ERXAbstractRestResponseWriter. >>>> >>>> Am i right? If so, how do i plug in a such a custom implementation? >>>> >>>> Does anyone have any examples? >>>> >>>> Thanks >>>> >>>> Martin Samm >>>> >>>> >>> ------------------------------------------------------------------------------ >>>> This SF.net <http://SF.net> Dev2Dev email is sponsored by: >>>> >>>> Show off your parallel programming skills. >>>> Enter the Intel(R) Threading Challenge 2010. >>>> >>> http://p.sf.net/sfu/intel-thread-sfd_______________________________________________ >>>> Wonder-disc mailing list >>>> Won...@li... >>>> <mailto:Won...@li...> >>> <mailto:Won...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >>> >>> >>> >>> >>> -- >>> Martin Samm >>> Aetopia Ltd >>> +44 (0) 28 9099 8767 >>> ____________________________________________________________________________ >>> Aetopia Ltd is a limited company registered in Belfast, Northern Ireland, >>> with registration number NI053321, having its principal place of business >>> (and postal address) at ECIT Institute, Queens Road, BELFAST BT3 9DT >>> and registered office at 1, Lanyon Quay, BELFAST BT1 3LG >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net <http://SF.net> Dev2Dev email is sponsored by: >>> >>> Show off your parallel programming skills. >>> Enter the Intel(R) Threading Challenge 2010. >>> http://p.sf.net/sfu/intel-thread-sfd >>> >>> >>> >>> _______________________________________________ >>> Wonder-disc mailing list >>> Won...@li... >>> <mailto:Won...@li...> >>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >> >> -- >> Tel: (520) 572-9410 >> Desert Sky Software: www.desertsky.com <http://www.desertsky.com> >> Specializing in the Development and Hosting of >> e-Business Applications. >> >> ------------------------------------------------------------------------------ >> This SF.net <http://SF.net> Dev2Dev email is sponsored by: >> >> Show off your parallel programming skills. >> Enter the Intel(R) Threading Challenge 2010. >> http://p.sf.net/sfu/intel-thread-sfd >> _______________________________________________ >> Wonder-disc mailing list >> Won...@li... >> https://lists.sourceforge.net/lists/listinfo/wonder-disc > -- Tel: (520) 572-9410 Desert Sky Software: www.desertsky.com Specializing in the Development and Hosting of e-Business Applications. |