Re: Problem with CXF

2011-05-01 Thread srinivas thallapalli
Hi Aki/Daniel, Could you please let me know, if there anything wrong with WSDL and client code?. Thanks -- View this message in context: http://cxf.547215.n5.nabble.com/Problem-with-CXF-tp4341066p4364053.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread arnavawasthi
Thanks Sergey, your solution works. I have updated the source code [actually pom.xml :)]. Source code: https://bitbucket.org/arnavawasthi/apache-cxf-jaxrs-spring Hopefully that will help others facing the same issue. Regards, Arnav On Sun, May 1, 2011 at 10:45 PM, Sergey Beryozkin-5[via CXF] <

Re: CXF with HATEOS or hypermedia

2011-05-01 Thread Sergey Beryozkin
Actually, CXF JAX-RS proxies help in some way. JAX-RS subresources help with modeling the transition from root resources to subresources. On the client side, every call to a subresource method results in returning a proxy too, etc. Perhaps that is not what you're looking for but I thought i'd menti

Re: CXF with HATEOS or hypermedia

2011-05-01 Thread Sergey Beryozkin
Hi >> hi sergei : >>>  i am thinking more in terms of >>> 1. RESTfulie => >>>    https://github.com/caelum/restfulie >>>    http://restfulie.caelum.com.br/ >>>   yes which basically supports "links" with every entity or model. >>> >> >> Can you elaborate a bit more about your requirements ? >> Is i

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread Sergey Beryozkin
Please try 2.3.4 thanks, Sergey On Sun, May 1, 2011 at 3:50 PM, arnavawasthi wrote: > Souce code: > https://bitbucket.org/arnavawasthi/apache-cxf-jaxrs-spring/overview > > Test case: > I want to add multiple customers in one request. So instead of making > multiple calls, I want to make one with

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread Sergey Beryozkin
This is because CXF 2.3.0 (and Jettison 1.2) do not support reading explicit collections/arrays, thus Jettison provider return false from its isReadable Please upgrade to 2.3.4 or 2.4.0. thanks, Sergey On Sun, May 1, 2011 at 6:01 AM, arnavawasthi wrote: > Thanks, that worked. > > But now, if I

Re: confused about web.xml servlet config versus JAX-RS versus static pages

2011-05-01 Thread Sergey Beryozkin
Request URI has to match a given servlet mapping, and then whatever is left after the match, in your case it is "/admin/system-config" is matched against available destination addresses, such as "/services" so it does not work. Thus you have few options for jaxrs:address: "/", "/admin" (but this im

Re: Couldn't find MIME boundary exception while using multipart/form-data

2011-05-01 Thread Sergey Beryozkin
Thanks, I'll have a look, cheers, Sergey On Sun, May 1, 2011 at 12:13 PM, Shashank Rachamalla wrote: > On Fri, Apr 29, 2011 at 3:32 PM, Sergey Beryozkin wrote: > >> HI >> >> >> >> >> Do you have it working with a non-CXF server ? >> >> >> > >> > We are using apache tomcat. >> > >> OK, I thought y

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread arnavawasthi
Souce code: https://bitbucket.org/arnavawasthi/apache-cxf-jaxrs-spring/overview Test case: I want to add multiple customers in one request. So instead of making multiple calls, I want to make one with array of Customer objects. I expected that this array would be easily converted into List but it

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread arnavawasthi
If you want, I can share the code and use cases I am trying. On Sun, May 1, 2011 at 7:12 PM, Benson Margulies[via CXF] < ml-node+4362780-1151034013-204...@n5.nabble.com> wrote: > Now we have to wait for Sergey or someone. I'm puzzled by this > producing that particular error status. > > On Sun, M

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread Benson Margulies
Now we have to wait for Sergey or someone. I'm puzzled by this producing that particular error status. On Sun, May 1, 2011 at 9:39 AM, arnavawasthi wrote: > @Consumes("application/json") was already there. Just to experiment I added > @Consumes({"application/xml", "application/json"}) and tried w

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread arnavawasthi
@Consumes("application/json") was already there. Just to experiment I added @Consumes({"application/xml", "application/json"}) and tried with equivalent xml instead. With xml it worked. Input XML: 2999Som Awasthi3000Arnav Awasthi Output JSON: {"Customer":[{"id":2999,"name":"Som Awasthi"},{"id":30

Re: confused about web.xml servlet config versus JAX-RS versus static pages

2011-05-01 Thread Benson Margulies
Oh, D'uh, the truth suddenly dawns. I want 'address="/"' in my Spring. On Sun, May 1, 2011 at 9:17 AM, Benson Margulies wrote: > It dawns on me very belatedly that I do not understand > servlet-mapping. In the following, I'm expecting this to result in > urls like http://localhost:port/APPNAME/se

confused about web.xml servlet config versus JAX-RS versus static pages

2011-05-01 Thread Benson Margulies
It dawns on me very belatedly that I do not understand servlet-mapping. In the following, I'm expecting this to result in urls like http://localhost:port/APPNAME/services/whatever being available in CXF. (web.xml) cxf /services/* (Spring config) The following exemplifies the fact that thi

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread Benson Margulies
Don't you just need another @Consumes on the new function? Or just on the whole class? On Sun, May 1, 2011 at 1:01 AM, arnavawasthi wrote: > Thanks, that worked. > > But now, if I want to post List of Customers in JSON in the following way: > >    @POST >    @Path("/addCustomers/") >    @Consumes

Re: How to submit JSON data as request body in Apache CXF jax-rs (REST)

2011-05-01 Thread arnavawasthi
Thanks, that worked. But now, if I want to post List of Customers in JSON in the following way: @POST @Path("/addCustomers/") @Consumes(MediaType.APPLICATION_JSON) //{"Customer":[{"id":2999,"name":"Som Awasthi"},{"id":3000,"name":"Arnav Awasthi"}]} public List addCustomers(Lis

Re: Couldn't find MIME boundary exception while using multipart/form-data

2011-05-01 Thread Shashank Rachamalla
On Fri, Apr 29, 2011 at 3:32 PM, Sergey Beryozkin wrote: > HI > > >> > >> Do you have it working with a non-CXF server ? > >> > > > > We are using apache tomcat. > > > OK, I thought you were referring to some other framework facilitating > the processing of multiparts... > > > > >> A similar issue

Re: Timing issue with WS-Security

2011-05-01 Thread Blue Diamond
tatz gr8.. thanks a lot Daniel :) On Fri, Apr 29, 2011 at 11:26 PM, Daniel Kulp wrote: > On Friday, April 29, 2011 9:10:30 AM Blue Diamond wrote: > > I am getting the following exception with WS-Security when machines from > > different timezones are working together. > > > > javax.xml.ws.WebSer