[CXF2.2.3] On exception handling

2009-08-06 Thread Gabo Manuel
Hi All, I created and registered an ExceptionMapper implementation as follows: public class RuntimeExceptionMapper implements ExceptionMapper{ private static Logger logger = Logger.getLogger(RuntimeExceptionMapper.class); public Response toResponse(RuntimeException fault) { lo

Re: JAX-RS : initial WADL support

2009-08-06 Thread Gabo Manuel
Hi Sergey, Just tested the recent release 2.2.3. I was able to retrieve the generated wadl using _wadl. Some comments: 1. The resources tags could use a new line after the closing tag for readability. Just a nice to have. 2. Example: Class 1 is annotated with @Path("/Service") Class 2 is an

static properties file can't be found in JAXRSInInterceptor

2009-08-06 Thread Sam.Wang
Hello everyone, I have an issue about the static file mapping. The Application_**.properties can't be found in out demo. but it works well when I bring it out into tomcat. 2009-8-7 13:59:08 org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor processRequest Warning: .No root resource matching req

Re: Handling Collection returns via JAX-RS

2009-08-06 Thread Gabo Manuel
Hi Sergey, By default, pluralized XMLRootElement name attribute will be used as a wrapper, namespace-prefixed if needed, if no name attribute is there then a lower-case pluralized class name will be used. Just tested the latest release 2.2.3. The rest services handle the collections. Just a co

SAXParseException: cos-nonambig Error

2009-08-06 Thread Suneet Shah
Hello I am trying to build a service that combines types are in two different name spaces: urn:oasis:names:tc:SPML:2:0 and urn:oasis:names:tc:SPML:2:0:password. However, some of the complex types refer to the same types. As I have things setup up right now with the annotations, the wsdl that

Re: problem using args with wsdl2java cxf-codegen-plugin

2009-08-06 Thread Daniel Kulp
Does your project have a dependency on the soap binding somehow? (cxf-rt- binding-soap)? Doing the extended soap header processing requires the soap- binding to be available. Also, run with "mvn -X" to turn on the logging to make sure those flags are properly being passed into wsdl2java.

Re: Sending Attachments and streaming

2009-08-06 Thread Benson Margulies
Those instructions don't actually mention importing the xmime schema into your schema. On Thu, Aug 6, 2009 at 4:55 PM, Adnan Memon wrote: > http://cwiki.apache.org/CXF20DOC/mtom-attachments-with-jaxb.html ... if you > haven't looked at it. > - > Adnan > > On Thu, Aug 6, 2009 at 10:57 AM, conficio

Re: Sending Attachments and streaming

2009-08-06 Thread Adnan Memon
http://cwiki.apache.org/CXF20DOC/mtom-attachments-with-jaxb.html ... if you haven't looked at it. - Adnan On Thu, Aug 6, 2009 at 10:57 AM, conficio wrote: > > Never mind, > my query yesterday for this question did not bring up things, but reading > more of the recent posts got me the answer anyw

problem using args with wsdl2java cxf-codegen-plugin

2009-08-06 Thread Sadhana Jain
Hi, I am trying to pass the -exsh true arg for wsdl2java using the maven plugin But it doesn't seem to work as expected. When I run wsdl2java from command line, it generates the soapheader (header=true) parameter in the service port but when I use the plugin by passing in like this it doesn't

Re: Problem with annotations in Aegis & CXF

2009-08-06 Thread evilhare
For all who will find this topic in search engines: resolved, see explanation here: http://issues.apache.org/jira/browse/CXF-2382 04.08.09, 22:32, "Benson Margulies" : > I'll look into this. > On Tue, Aug 4, 2009 at 10:41 AM, wrote: > > Hi! I am using cxf 2.2 with aegis. Here is a part of my sp

Re: Sending Attachments and streaming

2009-08-06 Thread conficio
Never mind, my query yesterday for this question did not bring up things, but reading more of the recent posts got me the answer anyway. Thanks Dan for fixing this in 2.0.12 conficio wrote: > > I want to send rather large reports that are generated on a server as an > attachment. From the Inte

Sending Attachments and streaming

2009-08-06 Thread conficio
I want to send rather large reports that are generated on a server as an attachment. From the Interface it looks like the DataHandler does some streaming of the attachment. Is that true streaming, so that there is not more than a certain buffer size held in the cxf library? Or is the document bu

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread conficio
Thanks guys for a very informative discussion. It saves me a lot of digging in the code and still having the feeling I might have missed something. Kaj -- View this message in context: http://www.nabble.com/Asynchronous-Invocation-and-connection-keep-alive-on-the-TCP-level-tp24835434p24849984.h

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Daniel Kulp
On Thu August 6 2009 11:21:03 am Eric Johnson wrote: > See http://fusesf.fusesource.org/docs/2.2/bind_trans/HTTPDecoupled.html for > a discussion of decoupled endpoints. > > http://iona.com/support/docs/artix/5.5/jaxrpc_pguide/references12.html > talks about using a WSDL callback pattern. The code

RE: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Eric Johnson
See http://fusesf.fusesource.org/docs/2.2/bind_trans/HTTPDecoupled.html for a discussion of decoupled endpoints. http://iona.com/support/docs/artix/5.5/jaxrpc_pguide/references12.html talks about using a WSDL callback pattern. The code examples are all from JAX-RPC, but it should be an OK start

RE: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread EVENO Manuel
Do you have example or documentation of a "decoupled response endpoint" or the callbacks-tyle mecanism you wrote about ? I can find anything on the CXF Wiki ... Manuel -Message d'origine- De : Eoghan Glynn [mailto:eogl...@gmail.com] Envoyé : jeudi 6 août 2009 16:04 À : users@cxf.apache.

Using CXF Endpoint to expose WSDL

2009-08-06 Thread jp4
I have a web service that doesn't do much more than translate a common api into one of two different legacy api's. I'd like to serve the WSDL's from Mule (2.2.1)... When I startup the server it hangs and I see this in the log file. 08/06/09 10:03:27:599|main|INFO|org.mule.component.DefaultJavaC

RE: WS-ReliableMessaging

2009-08-06 Thread EVENO Manuel
Wouldn't it be possible to store the unsent reponse in a cache. On a response receive timeout, the client could resent the request and the service could send back the response without executing the work again (the web service could assert that it is the same initial message with the WS-Adressing m

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Daniel Kulp
On Thu August 6 2009 10:03:57 am Eoghan Glynn wrote: > Andrew is correct. > > JAX-WS async is purely a convenience mechanism to allow the application > avoid creating a separate thread to manage the invocation direction. > > What you really need to avoid is tying up the client->server connection fo

Re: WS-ReliableMessaging

2009-08-06 Thread Eoghan Glynn
Yes, the source and destination roles are reversed for the response. That's really what I meant when I talked about WS-RM treating "the request message stream and response message stream as being entirely separate from a reliability point of view". So an unacknowledged response would be resent, ju

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Eoghan Glynn
Andrew is correct. JAX-WS async is purely a convenience mechanism to allow the application avoid creating a separate thread to manage the invocation direction. What you really need to avoid is tying up the client->server connection for the duration of the long-running invocation. This could be a

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Andrew Clegg
2009/8/5 conficio : > My question is: Does the asynchronous Web service some active polling across > the TCP connection to keep it alive? Is that the solution I'm looking for, > Asynchronous invocation? I'm happy to be corrected if wrong, but I believe the actual TCP conversation is basically the

RE: WS-ReliableMessaging

2009-08-06 Thread EVENO Manuel
I was aware of that but I was thinking that the same mecanism would apply for the web service while sending back the response ... In that case (for the response), the RM Source is the webservice and the RM Destination is the client, we should have some kind of retry mecanism until the reponse hav

RE: @XmlRootElement with jax-rs/jax-ws

2009-08-06 Thread Sergey Beryozkin
Hi Returning JAXBElement will work in JAX-RS as it is required by the spec, provided it's possible for a user to have explicit JAXBElements in method signatures (for ex, return types). JAX-RS JAXBElementProvider can actually be told to wrap a given object in a JAXBElement, but so far this opti