Please provided ability to pass timeToKeepState from Factory methods

2014-03-14 Thread wizpar
Hi, for JAXRSClientFactory and WebClient methods that allow user to pass in true for creating thread safe proxies there is no way to pass in  long timeToKeepState to specify how long before cleaning up that state to be passed down to ThreadLocalClientState constructor. It's a minor change but wi

Re: Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Sergey Beryozkin
Hi, sure, see changes at https://issues.apache.org/jira/browse/CXF-5619 Cheers, Sergey On 14/03/14 18:06, Jose María Zaragoza wrote: 2014-03-14 18:41 GMT+01:00 Sergey Beryozkin : Fortunately the bug is in CXF JSONUtils, whcih always passes UTF-8 to Jettison. So it's now fixed, thanks for spotti

Re: Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Jose María Zaragoza
2014-03-14 18:41 GMT+01:00 Sergey Beryozkin : > Fortunately the bug is in CXF JSONUtils, whcih always passes UTF-8 to > Jettison. So it's now fixed, thanks for spotting it Thank you How can I get this JSONUtils fixed ? I would like to backport this patch to CXF 2.7.8 , could you help me to know

Re: Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Sergey Beryozkin
Fortunately the bug is in CXF JSONUtils, whcih always passes UTF-8 to Jettison. So it's now fixed, thanks for spotting it Cheers, Sergey On 14/03/14 16:02, Sergey Beryozkin wrote: Looks like it is something related to Jettison...XML works OK. Need to investigate more. Thanks, Sergey On 14/0

Re: CXF and kerberos authentication

2014-03-14 Thread Sergey Beryozkin
Hi Sorry I got distracted when you asked on IRC. As I said, I can only point at this stage to https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSKerberosBookTest.java;h=1a05eaa17ce405e2448efe952bd0c6e25d64ffc0;hb=HEA

CXF and kerberos authentication

2014-03-14 Thread Marco Di Sabatino Di Diodoro
Hi, I’m an PMC member of Apache Syncope[1]. We are building a new connector bundle for Connid[2] that needs to connect with FreeIpa server. The connector bundle use JSON-RPC to communicate with the server that is protected by Kerberos. We followed this guide (http://cxf.apache.org/docs/jaxrs-k

Re: WebServiceContext always null for SAML

2014-03-14 Thread Colm O hEigeartaigh
CXF 2.6.6 is quite old. Could you try with a newer version to see if it is fixed? I tried with the latest trunk code and the user principal is correct. Colm. On Fri, Mar 14, 2014 at 4:03 PM, bob45 wrote: > I am using CXF 2.6.6. > > The service is implemented as follows: > > @WebServlet(name="t

Re: WebServiceContext always null for SAML

2014-03-14 Thread bob45
I am using CXF 2.6.6. The service is implemented as follows: @WebServlet(name="test", urlPatterns={"/test"}) @InInterceptors (interceptors={"org.apache.cxf.interceptor.LoggingInInterceptor"}) @OutInterceptors (interceptors={"org.apache.cxf.interceptor.LoggingOutInterceptor"}) @EndpointProperties(

Re: Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Sergey Beryozkin
Looks like it is something related to Jettison...XML works OK. Need to investigate more. Thanks, Sergey On 14/03/14 12:29, Jose María Zaragoza wrote: I've got to return "application/json;charset=iso-8859-1" but i've checked that it always returns UTF-8 encoding I tested with universalchardet

Re: WebServiceContext always null for SAML

2014-03-14 Thread Colm O hEigeartaigh
It should contain the subject from the SAML Token. What does your configuration for the service look like? And what version of CXF are you using? Colm. On Fri, Mar 14, 2014 at 3:42 PM, bob45 wrote: > Hi, > > I have a web service that receives a SAML Token issued by an STS. > The web service ha

WebServiceContext always null for SAML

2014-03-14 Thread bob45
Hi, I have a web service that receives a SAML Token issued by an STS. The web service has the property: @Resource WebServiceContext context; When the web service is called with a valid SAML token, the service operation is executed and the context is set. But context.getUserPrincipal() returns nu

Re: Adding SAML token to request from 3rd Service

2014-03-14 Thread Colm O hEigeartaigh
There is no standard way of doing this that is currently supported in CXF. Your requirements are pretty similar to this JIRA: https://issues.apache.org/jira/browse/CXF-3520 You essentially need to write an interceptor to carry out the two STS calls. There are two ways of doing it - you could call

http-conduit timeout for long delay decoupled responses

2014-03-14 Thread Guzmán Llambías
Hi guys! I tried using the http-conduit and worked fine but when the service has a long delay to send the answer, a timeout error occurs. I tried to use the receiveTimeout attribute but it didn't work. Could you please tell me how to config this timeout? Here's my cxf.xml configuration:

WSDL2JAVA question

2014-03-14 Thread Michel Labarre
Hello We running CXF 1.6.7 version with SOAP 1.1 wsdl. All run fine. New services are required with SOAP 1.2. I run the Web Service generator under eclipse to generate all classes from WSDL. Generation works fine but when I test with SOAPUI on the newly installed server I obtain a fault with th

NTLM Authentication being cached

2014-03-14 Thread Karnam, Jayashankar
Hi, Is CXF trying to cache the Authorization objects somewhere? I have been trying NTLM authentication with CXF, it works fine for the first invocation if I provide wrong credentials, throws a 401 but the scenario changes after a successful invoke. No matter how many times I change the user nam

Re: Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Jose María Zaragoza
I've got to return "application/json;charset=iso-8859-1" but i've checked that it always returns UTF-8 encoding I tested with universalchardet by Mozilla , with Firefox browser ( changing View -> Encoding ) and with InputStreamReader(connection.getInputStream(),"iso-8859-1")); For example: CODE

Re: How do get repository

2014-03-14 Thread Sergey Beryozkin
Well, JSONProvider needs to know if the sequence is root-less or not, Jettison does not do this kind of analysis. So "supportUnwrapped" (not the best property name I admit) is the indicator. It is redundant really when 'wrapperName' property is also used, which the only minor optimization that

Re: Reset operation on Performance.Counter.Server CXF JMX Bean

2014-03-14 Thread Sergey Beryozkin
Hi On 06/03/14 23:22, kaputabo wrote: Hi, I am using cxf 2.7.10 as the jax-rs implementation for my restful webservices. In order to do performance monitoring i registered the Counter Repository and InstrumentationManager in my spring config file. When i start up the application and make a few

Adding SAML token to request from 3rd Service

2014-03-14 Thread Alexander Savinov
Hello everybody I have a problem configuring CXF. First of all the Architecture I am using is the following. I have an STS, an AdmissionTokenService (ATS) and a WebService. So my Client need to request(via x509) a SAML Token from the STS in order to communicate with the Service. This wor

Charset encoding other than UTF-8 (as ISO-8859-1) not working (CXF 2.7.8)

2014-03-14 Thread Jose María Zaragoza
Hello: I'm using CXF 2.7.8 I've created a JAX-RS service with JSON databinding provider (Jettison) Service is running on Tomcat server in a Windows machine I've annotated my service class as @Consumes("*/*") @Produces("application/json;charset=ISO-8859-1") but it always returns Content-Type=[a

Re: How do get repository

2014-03-14 Thread Manula Thantriwatte
Yes, this is working. But is there a way to get repository details without the supportUnwrapped configuration. On Fri, Mar 14, 2014 at 3:22 PM, Sergey Beryozkin wrote: > Hi > > On 14/03/14 07:41, Manula Thantriwatte wrote: > >> Hi All, >> >> I have the following JSON request. I want to get the r

Re: wadl2java and generated interfaces, how to use with jersey?

2014-03-14 Thread Sergey Beryozkin
Hi, Please ask the question on Jersey users list - I'm not sure why the concrete implementation class is ignored... Cheers, Sergey On 14/03/14 10:46, Graham Leggett wrote: Hi all, I have wadl2java generating an interface as below, and I have an implementation in the same package that imple

wadl2java and generated interfaces, how to use with jersey?

2014-03-14 Thread Graham Leggett
Hi all, I have wadl2java generating an interface as below, and I have an implementation in the same package that implements that interface, but jersey cannot find it: @GET @Produces("application/json") @Path("/browse/{mail}") Response retrieveUser(@PathParam("mail") String mail,

Re: How do get repository

2014-03-14 Thread Sergey Beryozkin
Hi On 14/03/14 07:41, Manula Thantriwatte wrote: Hi All, I have the following JSON request. I want to get the repository details from it. I tried in several ways. But I'm unable to do that. Can anyone help me on this. I want to do this without adding following configurations. With this following

Re: dropRootElement for specific rest endpoint

2014-03-14 Thread Sergey Beryozkin
Hi On 14/03/14 08:34, Manula Thantriwatte wrote: Hi All, Can I used dropRootElement property for specific rest endpoint only. If so how can I do it ? Sure, you can have multiple JSON providers, with each of them allocated to specific endpoints... Cheers, Sergey Thanks !

dropRootElement for specific rest endpoint

2014-03-14 Thread Manula Thantriwatte
Hi All, Can I used dropRootElement property for specific rest endpoint only. If so how can I do it ? Thanks ! -- Regards, Manula Thantriwatte.

How do get repository

2014-03-14 Thread Manula Thantriwatte
Hi All, I have the following JSON request. I want to get the repository details from it. I tried in several ways. But I'm unable to do that. Can anyone help me on this. I want to do this without adding following configurations. With this following configuration it works.