You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Anthony Schexnaildre <ap...@gmail.com> on 2008/06/28 02:03:41 UTC
@Context in message body provider? - was CXF REST - Constrain the xml elements in output
I see the use of @Context in this example but the docs state:
"Injection of contexts into message body providers is not supported
yet."
Which is correct?
-Anthony
>> @Context
>> public void setUriInfo(UriInfo ui) {
>> currentQuery = ui.getQueryparameters();
>> }
>> void writeTo(Contacts cs, Class<Contacts> clazz, ...,
>> OutputStream os) {
>> // write start tag
>> for (Contact c : cs) {
>> if
>> (c.getName().equals(currentQuery.getFirst("firstName"))) {
>> // write
>> }
>> }
>> // write end tag
>> }
>> }
Re: cxfjsutils?
Posted by Christine Karman <ch...@christine.nl>.
On Fri, 2008-07-04 at 21:22 -0400, Benson Margulies wrote:
> Otherwise, we put it in the etc directory.
Yes, of course, how silly of me :-)
Thanks.
Christine
>
> On Fri, Jul 4, 2008 at 4:14 PM, Christine <ch...@christine.nl>
> wrote:
> Hi,
> I want to create a javascript soap client, I have used wsdl2js
> to create
> a javascript, now I seem to need cxfjsutils. Where do I get
> those and
> how do I use them?
> I am new to web services, today I created my first web service
> and it
> worked within five minutes. I like cxf :-)
>
> Christine
>
> --
> dagdag is just a two character rotation of byebye
> www.christine.nl
>
>
--
dagdag is just a two character rotation of byebye
www.christine.nl
Re: cxfjsutils?
Posted by Benson Margulies <bi...@gmail.com>.
If you use the ?js URL to get the javascript, it is automatically included.
Otherwise, we put it in the etc directory.
On Fri, Jul 4, 2008 at 4:14 PM, Christine <ch...@christine.nl> wrote:
> Hi,
> I want to create a javascript soap client, I have used wsdl2js to create
> a javascript, now I seem to need cxfjsutils. Where do I get those and
> how do I use them?
> I am new to web services, today I created my first web service and it
> worked within five minutes. I like cxf :-)
>
> Christine
>
> --
> dagdag is just a two character rotation of byebye
> www.christine.nl
>
>
cxfjsutils?
Posted by Christine <ch...@christine.nl>.
Hi,
I want to create a javascript soap client, I have used wsdl2js to create
a javascript, now I seem to need cxfjsutils. Where do I get those and
how do I use them?
I am new to web services, today I created my first web service and it
worked within five minutes. I like cxf :-)
Christine
--
dagdag is just a two character rotation of byebye
www.christine.nl
Re: @Context in message body provider? - was CXF REST - Constrain the xml elements in output
Posted by Sergey Beryozkin <se...@iona.com>.
It's on the trunk now. Have a look please at the updated documentation too....
Cheers, Sergey
----- Original Message -----
From: "Anthony Schexnaildre" <ap...@gmail.com>
To: <us...@cxf.apache.org>
Sent: Thursday, July 03, 2008 2:01 AM
Subject: Re: @Context in message body provider? - was CXF REST - Constrain the xml elements in output
> Please let us know when you have had a chance to commit these changes.
> I would love to get rid of some ugly hacks i have in place.
>
> -Anthony
>
> On Jun 30, 2008, at 8:12 AM, Sergey Beryozkin wrote:
>
>> Hi
>>
>> I'm jumping a bit ahead here. On the trunk it's not supported. I'm
>> hoping to do a merge sometimes this week and the injection for all
>> types of providers will also be supported.
>>
>> Cheers, Sergey
>>
>>> I see the use of @Context in this example but the docs state:
>>>
>>> "Injection of contexts into message body providers is not supported
>>> yet."
>>>
>>> Which is correct?
>>>
>>> -Anthony
>>>
>>>>> @Context
>>>>> public void setUriInfo(UriInfo ui) {
>>>>> currentQuery = ui.getQueryparameters();
>>>>> }
>>>>> void writeTo(Contacts cs, Class<Contacts> clazz, ...,
>>>>> OutputStream os) {
>>>>> // write start tag
>>>>> for (Contact c : cs) {
>>>>> if
>>>>> (c.getName().equals(currentQuery.getFirst("firstName"))) {
>>>>> // write
>>>>> }
>>>>> }
>>>>> // write end tag
>>>>> }
>>>>> }
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
>> Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
Re: @Context in message body provider? - was CXF REST - Constrain the xml elements in output
Posted by Anthony Schexnaildre <ap...@gmail.com>.
Please let us know when you have had a chance to commit these changes.
I would love to get rid of some ugly hacks i have in place.
-Anthony
On Jun 30, 2008, at 8:12 AM, Sergey Beryozkin wrote:
> Hi
>
> I'm jumping a bit ahead here. On the trunk it's not supported. I'm
> hoping to do a merge sometimes this week and the injection for all
> types of providers will also be supported.
>
> Cheers, Sergey
>
>> I see the use of @Context in this example but the docs state:
>>
>> "Injection of contexts into message body providers is not supported
>> yet."
>>
>> Which is correct?
>>
>> -Anthony
>>
>>>> @Context
>>>> public void setUriInfo(UriInfo ui) {
>>>> currentQuery = ui.getQueryparameters();
>>>> }
>>>> void writeTo(Contacts cs, Class<Contacts> clazz, ...,
>>>> OutputStream os) {
>>>> // write start tag
>>>> for (Contact c : cs) {
>>>> if
>>>> (c.getName().equals(currentQuery.getFirst("firstName"))) {
>>>> // write
>>>> }
>>>> }
>>>> // write end tag
>>>> }
>>>> }
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
> Ireland
Re: @Context in message body provider? - was CXF REST - Constrain the xml elements in output
Posted by Sergey Beryozkin <se...@iona.com>.
Hi
I'm jumping a bit ahead here. On the trunk it's not supported. I'm hoping to do a merge sometimes this week and the injection for
all types of providers will also be supported.
Cheers, Sergey
>I see the use of @Context in this example but the docs state:
>
> "Injection of contexts into message body providers is not supported
> yet."
>
> Which is correct?
>
> -Anthony
>
>>> @Context
>>> public void setUriInfo(UriInfo ui) {
>>> currentQuery = ui.getQueryparameters();
>>> }
>>> void writeTo(Contacts cs, Class<Contacts> clazz, ...,
>>> OutputStream os) {
>>> // write start tag
>>> for (Contact c : cs) {
>>> if
>>> (c.getName().equals(currentQuery.getFirst("firstName"))) {
>>> // write
>>> }
>>> }
>>> // write end tag
>>> }
>>> }
>
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland