Hi Dan:
Thank you for the reply. I have been looking at CXF this morning and
googling for examples. Is there an installation guide? I plan to test CXF
by embedding it as part of a war file. What are the recommened jars that I
need? Or should I grab everything from the lib directory? Do I need to
edit my web.xml file? As I look at the samples in the 2.0 distribution zip
file, where should I deploy my POJOs and the JAXB schema for it so that CXF
will find it? Or should I jar it up and deploy in the Web-Inf directory?
Thanks,
Southin
On 2/19/07, Dan Diephouse <[EMAIL PROTECTED]> wrote:
Hi Southin,
We use JAXB to do the databinding, so you need to tell JAXB that you want
a
particular property to be an attribute. If you're doing code first I think
it looks like this:
public class People {
@XmlAttribute
public String getId() {...}
..
}
If you're doing schema first development, simply change your schema:
<element name="People">
<complexType>
<attribute name="id" type="xsd:string"/>
</complexType>
</element>
Cheers,
- Dan
On 2/19/07, Southin Simphoukham <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I am new to cxf and looked at the Restful Service/Http binding example.
In
> that example for People Service there was do attributes in the element
> Person.
>
> Can someone provide me with code snippet in who to best retrieve an
> attribute in that scenario.
>
> For example,
>
> <getPeople>
> <Person id="123456">....<Person>
> </getPeople>
>
> Thank you,
>
> Southin
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog