users@jaxb.java.net

Re: What's a good Patern for the following?

From: Martin Grebac <martin.grebac_at_oracle.com>
Date: Wed, 26 Oct 2011 10:16:21 +0200

I'd suggest to ask at the Jersey mailing list where they can guide you
more on the REST patterns to follow,

http://jersey.java.net

 MartiNG

On 10/25/2011 10:11 PM, John Smith wrote:
> Say i have the following model
>
> class PET
> {
> name
> age
> }
>
> And I want to create a veterinerean REST service where you can
> register it for checkup or operation or what ever.
>
> So I have the following XML
>
> <VET>
> <Username>
> <Passowrd>
> <Pet>
> </VET>
>
> Whats the Best way to represent this as a model?
>
> class Vet
> {
> username
> password
> pet
> }
>
> Now that's just an example...
>
> Say I was creating a REST service for a general interface that gives
> access to various services...
>
> I want the base XML to be...
>
> <Services>
> <Username>
> <Password>
> Service specific XML here?
> </Services>
>
> Is there a specific pattern to this?
>

-- 
Martin Grebac, GlassFish/Metro/JAXWS/JAXB/Tooling at Oracle
http://blogs.oracle.com/mgrebac
ICQ: 93478885