Throw Exception when there is a semicolon in header parameter value

2010-06-01 Thread Indumuni Abeyaratna
Hi All, I am getting below exception when I am trying to download a file using our API which uses CXF. java.lang.IllegalArgumentException: Wrong media type parameter, seperator is missing at org.apache.cxf.jaxrs.impl.MediaTypeHeaderProvider.fromString(MediaTypeHeaderProvider.java:65) at

Re: DOSGI JAX-RS and Gzip

2010-06-01 Thread kdog
Yeah, the gzip filter thing doesn't seem to work... Doesn't look like anything is in the response to gzip, so it probably wasn't intended for such a thing. As for the intent map, sounds promising. Docs on the intent-map are kind of sparse, so I didn't know what that was :) Anyway, it seems maybe

Re: DOSGI JAX-RS and Gzip

2010-06-01 Thread Sergey Beryozkin
Hi I'm not sure it can help in your case, though may be it is worth trying. Another thing you might want to experiment with is to try to define your own custom intent, 'GZIP' , please check the archives (I recall Eoghan Glynn sending some feedback...) Sergey [1] http://svn.apache.org/repos/asf/c

Re: Need CXF to marshal JAXB bean to JSON

2010-06-01 Thread Sergey Beryozkin
Hi Perhaps you can use a CXF JAXRS WebClient in the A servlet, for talking to the servlet B ? By setting an json specific media type on this WebClient you can get JSON on the wire, still reusing JAXB beans; you can register Jackson if needed too with a given WebClient cheers, Sergey On Tue, Jun

Re: Exception handling

2010-06-01 Thread Glen Mazza
Oops, I forgot that interceptors also have fault chains, thanks for the correction. Glen dkulp wrote: > > On Tuesday 01 June 2010 11:21:46 am Glen Mazza wrote: >> When exceptions occur, the interceptor chain is processed in reverse >> direction (same with JAX-WS handlers). You'll need to do y

Re: response message soap header reading problem

2010-06-01 Thread cstreiff
Hi Dan, excellent, you're absolutely right! It worked just the way you said it would. Thank you very much for your answer and for saving me another sleepless night. chriss Actually, I don't think it really is null. If you look at the log for the line: log.info("header="+hr.getObject())

Re: Change Address For Client At Runtime

2010-06-01 Thread Daniel Kulp
JAX-WS spec covers this: ((BindingProvider)proxy).getRequestContext().put( BindingProvider.ENDPOINT_ADDRESS_URL, "http://192.168.2.0/address";) And that should be it. Dan On Sunday 30 May 2010 8:58:08 am Carlo Camerino wrote: > Hi, > > I have a web service client developed using CXF.

Re: response message soap header reading problem

2010-06-01 Thread Daniel Kulp
Actually, I don't think it really is null. If you look at the log for the line: log.info("header="+hr.getObject()); you see: (btpool0-4:) header=[correlationId: null] That is actually how the Xerces DOM would look on a toString. The Xerces toString impl is pathetic.I'm willing to be

Re: Exception handling

2010-06-01 Thread Daniel Kulp
On Tuesday 01 June 2010 11:21:46 am Glen Mazza wrote: > When exceptions occur, the interceptor chain is processed in reverse > direction (same with JAX-WS handlers). You'll need to do your error > handling towards the beginning of the service-side interceptor chain, not > at the end of it. Well,

Need CXF to marshal JAXB bean to JSON

2010-06-01 Thread Willard, Jonathan
I have two servlets, A the CXF servlet can receive and respond to RESTful HTTP calls using JAXB beans. Servlet B (on a different machine) is not using CXF but it makes calls to servlet A providing a URL and user credentials. At some point in time servlet A will send data to Servlet B using the pr

Re: Exception handling

2010-06-01 Thread Glen Mazza
When exceptions occur, the interceptor chain is processed in reverse direction (same with JAX-WS handlers). You'll need to do your error handling towards the beginning of the service-side interceptor chain, not at the end of it. HTH, Glen sur04sep wrote: > > Hi, > I need to send custom error

Exception handling

2010-06-01 Thread sur04sep
Hi, I need to send custom error codes for all kind of exceptions(even run time exception). For this I wrote a OutInterceptor extending AbstractSoapInterceptor with super(Phase.MARSHAL) constructor. But control is not going to this interceptor in case of any run time exception. Only in case of succ

RE: xsd validation no checking. why?

2010-06-01 Thread KARR, DAVID (ATTSI)
> -Original Message- > From: Glen Mazza [mailto:glen.ma...@gmail.com] > Sent: Tuesday, June 01, 2010 7:14 AM > To: users@cxf.apache.org > Subject: Re: xsd validation no checking. why? > > > Are you using JAXB? It's doesn't validate many types of constraints. > I > believe XMLBeans does a

Re: DOSGI JAX-RS and Gzip

2010-06-01 Thread kdog
Actually, it looks like in 1.2 snapshot the ability to add custom servlet filters to your endpoints have been added (https://issues.apache.org/jira/browse/DOSGI-67). I will probably go this route for now. Thanks for your reply. Sergey Beryozkin-5 wrote: > > Looks like a blocker all right... > I

Re: xsd validation no checking. why?

2010-06-01 Thread Glen Mazza
Are you using JAXB? It's doesn't validate many types of constraints. I believe XMLBeans does a better job, but haven't used it before. Glen jimmy6 wrote: > > How come the following restriction not working? Suppose it can only pass > in A and C. But why my following code is able to pass throu

Re: Adding Security to SOAP

2010-06-01 Thread Glen Mazza
For starters, links #4 and #8 here: http://www.jroller.com/gmazza/entry/blog_article_index HTH, Glen Suresh.T.K wrote: > > Hello, could you please guide me how can I implement SSL using CXF ? > > Thanks & Best Regards > Suresh > > -- View this message in context: http://old.nabble.com/Ad

Re: Newbie question

2010-06-01 Thread Glen Mazza
Interceptor tutorial: http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors (which links to the JAX-WS handler tutorial, both provide opportunities to get to HTTP and SOAP headers.) Glen Gabo Manuel wrote: > > Hi Ted, > > Try: > > message.getExchange() from an interceptor > >

Re: Receiving a hashmap in a web service from another web service

2010-06-01 Thread Glen Mazza
Unfortunately can't help you precisely, but when (A) calls (B) you should see something on the wire--perhaps Wireshark[1] can help you in debugging. Another option is to try to make the A->B web service call using the Dispatch interface[2], perhaps it can give you more information about the probl

Changes needed to service implementation bean for async calls?

2010-06-01 Thread Glen Mazza
Hello, question: In order to support SOAP clients making asynchronous SOAP calls (similar to here[1]) does anything need to be done to the service implementation bean--does it need additional methods to handle those async calls, *or* is it the same synchronous method called on the web service side

Re: Problem with form posting

2010-06-01 Thread Enrico Boldrini
Hello, for interested people, I found a useful workaround for this problem: just write an interceptor that convert from the form post message to a xml message and attach it to the RECEIVE phase. you will end up with something like: [urlencoded post message here] that doesn't break the subs

Receiving a hashmap in a web service from another web service

2010-06-01 Thread balson1980
Hi all, some times back, i was posting repeatedly questions on how to return a hashmap in apache based CXF web service using wsdl first approach. Somehow, i could achieve this. Now, i want to write a web service (A) in which a web service method invoke its private method which in turn invoke anoth