Re: Href attribute support in soap envelope body

2008-02-25 Thread pierre post
Thanks for pointing me in the right direction, Ian. I also suspected that it's an encoding problem but I wasn't sure. Unfortunately, after some more trialerror tests, I didn't come to a positive result. Removing the @SOAPBinding i.e. using wrapped document/literal/wrapped generates a far more

Re: Restful Declarative security?

2008-02-25 Thread Sergey Beryozkin
Hi jsr-311 api 0.6 introduces a SecurityContext[1] to be available to a user code. Using Acegi (provided Acegi is enhanced a bit) as originally suggested by Donal seems like a more scalable solution in terms of the code maintenance. Cheers, Sergey [1]

Re: JAX-RS API version change

2008-02-25 Thread Sergey Beryozkin
Hi This update is in place now, so if you're using CXF JAX-RS then please give it a try. Please note that a newer 0.6 version is already available, and from the user's perspective, upgrading to 0.6 will mean that existing @UriParam annotations will need to be replaced with @PathParam ones. It

Re: How to pass a HashMap

2008-02-25 Thread Li, Weiye
Should be the latest one:2.0.4 Thanks for the reply. On 2/23/08 11:49 AM, Benson Margulies [EMAIL PROTECTED] wrote: What version of CXF have you got? On Fri, Feb 22, 2008 at 4:39 PM, Li, Weiye [EMAIL PROTECTED] wrote: The CXF document says that Aegis data binding can even works on Map. I

Re: How to pass a HashMap

2008-02-25 Thread Benson Margulies
Please try my suggestion of declaring MapType,Type in your SEI instead of just 'map'. On Mon, Feb 25, 2008 at 10:04 AM, Li, Weiye [EMAIL PROTECTED] wrote: Should be the latest one:2.0.4 Thanks for the reply. On 2/23/08 11:49 AM, Benson Margulies [EMAIL PROTECTED] wrote: What version of

Re: How to pass a HashMap

2008-02-25 Thread Li, Weiye
I think I may have to declare .aegis.xml. It was my 2nd try (I mean, use Map only). I did use MapInteger, Employee on my first try and the outcome is the same: empty map returned. On 2/24/08 12:09 PM, Benson Margulies [EMAIL PROTECTED] wrote: It does work. But you have to tell it what's in the

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-25 Thread Phil Weighill-Smith
Dan, I've tried out the 2.1 snapshot available today and found that the API has changed in some way in CXF so now trying to generate a WSDL from Java code gives: Exception in thread main java.lang.NoSuchMethodError:

How to work with document type?

2008-02-25 Thread Li, Weiye
My testing Jax-WS with Aegis worked only with RPC style. When I changed soapbinding with RPC style, the same codes give exception. Here's my WS file: @WebService(name=EmicroManager, targetNamespace=http://emicro.test;) @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,

Re: JAX-RS API version change

2008-02-25 Thread Arul Dhesiaseelan
Sergey Beryozkin wrote: Hi This update is in place now, so if you're using CXF JAX-RS then please give it a try. Please note that a newer 0.6 version is already available, and from the user's perspective, upgrading to 0.6 will mean that existing @UriParam annotations will need to be

Re: JAX-RS API version change

2008-02-25 Thread Daniel Kulp
Just to be clear: I do have a question. 0.6 started implementing a REST client API. Does CXF plan to use this Client API or do you suggesting using the HTTP Client used in samples? If it's part of the spec, then yes, we do plan on providing it, just probably not immediately. The server

Re: How to work with document type?

2008-02-25 Thread Benson Margulies
If you get rid of all your JAX-WS annotations except @WebParam, which are not needed for CXF, you won't get this error. I tried it with your test case. On Mon, Feb 25, 2008 at 10:35 AM, Li, Weiye [EMAIL PROTECTED] wrote: My testing Jax-WS with Aegis worked only with RPC style. When I changed

Re: Href attribute support in soap envelope body

2008-02-25 Thread Daniel Kulp
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Body SOAP-ENV:stringTestFromDelphi/SOAP-ENV:string SOAP-ENV:stringArray

Re: JAX-RS API version change

2008-02-25 Thread Sergey Beryozkin
Client API It's not part of the spec (at the moment). It's something Jersey will provide Cheers, Sergey - Original Message - From: Daniel Kulp [EMAIL PROTECTED] To: cxf-user@incubator.apache.org Sent: Monday, February 25, 2008 4:26 PM Subject: Re: JAX-RS API version change Just to

Re: How to pass a HashMap

2008-02-25 Thread Daniel Kulp
On Monday 25 February 2008, Benson Margulies wrote: The use of HashMap as a JAX-WS wrapper type may be a problem. Let me try the Mapx,y experiment in my testbed. Uhh yea. In general, unless you REALLY know what you are doing, for code first, don't put @RequestWrapper and

Re: JAX-RS API version change

2008-02-25 Thread Daniel Kulp
Client API It's not part of the spec (at the moment). It's something Jersey will provide Oh. Ok. Well, my comment still stands. Any help adding it to CXF would be greatly appreciated. :-) Dan On Monday 25 February 2008, Sergey Beryozkin wrote: Cheers, Sergey - Original

Re: JAX-RS API version change

2008-02-25 Thread Sergey Beryozkin
Well, my comment still stands. Any help adding it to CXF would be greatly appreciated. :-) +1 :-) Cheers, Sergey Client API It's not part of the spec (at the moment). It's something Jersey will provide Oh. Ok. Well, my comment still stands. Any help adding it to CXF would be

Re: MTOM attachments question

2008-02-25 Thread Daniel Kulp
On Saturday 23 February 2008, Benson Margulies wrote: 2.0.4 doesn't know anything about xmime:expectedContentType, AFAIK. Do you have the @MTOM annotation in place to enable the threshold? Yea, you're backwords 2.0.4 should deal with the expectedContentType stuff fine. It DOESN'T,

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-25 Thread Daniel Kulp
Hmm.. Is this in maven or other build system? It looks like its picking up some old jars someplace as the class: org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor no longer even exists. Note that this is both in the IDEA integration with CXF and via the command line. The JDK

RE: How to pass a HashMap

2008-02-25 Thread Doubleday, Dennis
I reported the same issue in 2.0.3 a while back, and I did have my Map specified as MapString, String. (It was a service that had previously worked under XFire.) I got no response, so I switched to JAXB and just wrapped the Map inside a bean. -Original Message- From: Benson Margulies

best practices for Map and List in webservices

2008-02-25 Thread Daniel Lipofsky
I have got some WebServices that basically take and return MapString,String and ListString. I am wondering what is considered the best way to do this, especially for interoperability with both Java and .NET. I don't have to use the Java collections (although it sure is convenient). Previously

Re: best practices for Map and List in webservices

2008-02-25 Thread Benson Margulies
Maps are hard. JAXB barely support them, with a ton of snails, in 2.1. I would personally recommend specifying a vector or list of pairs instead. On Mon, Feb 25, 2008 at 6:24 PM, Daniel Lipofsky [EMAIL PROTECTED] wrote: I have got some WebServices that basically take and return