Re: How to retrieve Token from WSP

2013-06-07 Thread patch_78
I guess that this class org.apache.cxf.interceptor.security.SAMLSecurityContext is relevant to what I need. But I do not know how to use/intercept it ... :-/ patch -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-retrieve-Token-from-WSP-tp5729004p5729005.html Sent from t

How to retrieve Token from WSP

2013-06-07 Thread patch_78
Hi, I have a web service that requires SAML2 token from a STS (in client requests). How can I retrieve the token from the web service implementation class? Is it possible? This is my web service implementation class ** @WebService(targetNamespac

Fwd: What is the proper way of setting client Timeout per Webservice method ?

2013-06-07 Thread Philippe Mouawad
The right one -- Forwarded message -- From: *Daniel Kulp* Date: Wednesday, May 8, 2013 Subject: What is the proper way of setting client Timeout per Webservice method ? To: Philippe Mouawad On May 8, 2013, at 1:40 AM, Philippe Mouawad > wrote: Hello Daniel, Thanks for this. Re

Fwd: What is the proper way of setting client Timeout per Webservice method ?

2013-06-07 Thread Philippe Mouawad
Hello, Forwarding to mailing list as it contains the definite answer. Thanks Daniel. Didn't have time yet, will try to update wiki. Regards -- Forwarded message -- From: Daniel Kulp Date: Wed, May 8, 2013 at 6:41 PM Subject: Re: What is the proper way of setting client Timeout

Client timeout settings ignored when runtime endpoint protocol differs from wsdl location

2013-06-07 Thread Bartlett, Troy L
I'm trying to write some code so that the endpoint for my wsdl first soap service can be set at runtime. It mostly works, but the timeouts sometimes aren't honored. I've determined they get ignored when the protocol for the endpoint specified in the wsdl (e.g. "http://localhost/endpoint";) diffe

Re: WSDL2Java from java question

2013-06-07 Thread Daniel Kulp
I'm assuming the URLConverterImpl thing you have there is an eclipse or osgi specific class? If so, then no, we cannot do that as that would add a bunch of additional dependencies. Is this something you can do within your plugin and then pass the directory location in via the ToolContext co

Re: WSDLGetInterceptor congestion

2013-06-07 Thread Daniel Kulp
On Jun 7, 2013, at 2:01 PM, John Bellassai wrote: > Hi Daniel. I was under the impression that a new Document object is > generated and only accessible within each invocation of handleMessage() and > thus would not be susceptible to thread-safety issues, but I'll take your > advice over my ve

Re: how to specify default namespace in JSON

2013-06-07 Thread tomstark
Ok, CXF-5072 created and files attached. Let me know if there is anything else you need from me. Thanks in advance, Tom -- View this message in context: http://cxf.547215.n5.nabble.com/how-to-specify-default-namespace-in-JSON-tp5728855p5728976.html Sent from the cxf-user mailing list archive

Re: Creating input values on WADL

2013-06-07 Thread Sergey Beryozkin
Please see comments below On 07/06/13 17:21, Gonzalo Aguilar Delgado wrote: Hello, El 07/06/13 11:51, Sergey Beryozkin escribió: Hi On 07/06/13 10:13, Gonzalo Aguilar Delgado wrote: Hello, I'm using CXF to create some services. I've found that complex input parameters are not generated on desc

Re: New to REST with CXF

2013-06-07 Thread Sergey Beryozkin
add rt-rs-extension-providers & jettison 1.3.3 dependencies or JacksonJaxbJsonProvider Cheers, Sergey On 07/06/13 19:10, Alex O'Ree wrote: And magically, the last link now works. Thanks for the help. Now I get, "No message body writer has been found for response class BusinessEntity." After a q

Fwd: What is the proper way of setting client Timeout per Webservice method ?

2013-06-07 Thread Philippe Mouawad
Hello, Forwarding to mailing list as it contains the definite answer. Thanks Daniel. Didn't have time yet, will try to update wiki. Pegards Philippe -- Forwarded message -- From: *Daniel Kulp* Date: Wednesday, May 8, 2013 Subject: What is the proper way of setting client Timeout

Re: WSDLGetInterceptor congestion

2013-06-07 Thread John Bellassai
Hi Daniel. I was under the impression that a new Document object is generated and only accessible within each invocation of handleMessage() and thus would not be susceptible to thread-safety issues, but I'll take your advice over my very limited understanding of the inner workings of CXF ;). I

Re: WS-SecureConversation and SAML assertions

2013-06-07 Thread Daniel Kulp
On Jun 7, 2013, at 11:20 AM, DTaylor wrote: > Hi Colm, > > Thank you for the information. Assuming we can get the token out, for > secure conversation do you have a suggestion of where we should store in > 2.6.2 so it can be accessed on subsequent calls? Or was this a significant > change goi

Re: WSDLGetInterceptor congestion

2013-06-07 Thread Daniel Kulp
On Jun 7, 2013, at 12:30 PM, John Bellassai wrote: > Hi, > > We've been seeing an issue in production for the past few months where after > running smoothly for a couple weeks, our application hangs and stops > responding to new requests until we bounce the container (Tomcat 7/CXF 2.5.3). >

WSDLGetInterceptor congestion

2013-06-07 Thread John Bellassai
Hi, We've been seeing an issue in production for the past few months where after running smoothly for a couple weeks, our application hangs and stops responding to new requests until we bounce the container (Tomcat 7/CXF 2.5.3). Some thread/heap dump analysis for a few of these hang events have

Re: WSDLGetInterceptor congestion

2013-06-07 Thread John Bellassai
FWIW, this seems to be the same issue I'm having: https://community.jboss.org/thread/221629. --John On Jun 7, 2013, at 11:30 AM, John Bellassai wrote: > Hi, > > We've been seeing an issue in production for the past few months where after > running smoothly for a couple weeks, our applicati

WSDLGetInterceptor congestion

2013-06-07 Thread John Bellassai
Hi, We've been seeing an issue in production for the past few months where after running smoothly for a couple weeks, our application hangs and stops responding to new requests until we bounce the container (Tomcat 7/CXF 2.5.3). Some thread/heap dump analysis for a few of these hang events have

Re: Creating input values on WADL

2013-06-07 Thread Gonzalo Aguilar Delgado
Hello, El 07/06/13 11:51, Sergey Beryozkin escribió: Hi On 07/06/13 10:13, Gonzalo Aguilar Delgado wrote: Hello, I'm using CXF to create some services. I've found that complex input parameters are not generated on description. So they cannot be handled right by clients. @GET @Path("/

Re: JAX-RS bug after upgrading Jackson to 2.2

2013-06-07 Thread Sergey Beryozkin
I've updated Jackson dependency from 2.2.1 to 2.2.2, my test still works. Can you open a JIRA and attach a sample maven project ? Or an existing war ? Thanks, Sergey On 07/06/13 15:25, Nic Fellows wrote: Ive run mvn clean, and checked the date on 2.7.6-SNAPSHOT in our repository, it was updated

Re: New to REST with CXF

2013-06-07 Thread Sergey Beryozkin
Hi On 07/06/13 12:43, Alex O'Ree wrote: Sorry, not sure what I hit. I have a REST service that I'm building using CXF 2.7.5 that deploys correctly (it is listed with /services and the link returns a valid wadl), however I'm a bit confused as to what the actual invocation url is. WADL URL: http:

Re: WS-SecureConversation and SAML assertions

2013-06-07 Thread DTaylor
Hi Colm, Thank you for the information. Assuming we can get the token out, for secure conversation do you have a suggestion of where we should store in 2.6.2 so it can be accessed on subsequent calls? Or was this a significant change going forward to 2.7.5? Thanks, Dan -- View this message

how to change from java in runtime

2013-06-07 Thread Ja kub
Hallo in my cxf.xml i have conf http://localhost:8080/xxx";> it works fine, but I would like to change ReceiveTimeout in runtime before each web service client call, How can I do it ? client is configured in application.xml with http://xxx"; />

Re: how to specify default namespace in JSON

2013-06-07 Thread Sergey Beryozkin
Hi, On 07/06/13 15:22, tomstark wrote: I neglected to mention that I was already setting the ignoreNamespaces property to true. I was hoping that worked on input and output. Looks like it only works on input. Is that true? It only works on the output, i.e, the output JSON sequence can be af

Re: how to specify default namespace in JSON

2013-06-07 Thread tomstark
>> I neglected to mention that I was already setting the ignoreNamespaces >> property to true. I was hoping that worked on input and output. Looks >> like >> it only works on input. Is that true? >> >> It only works on the output, i.e, the output JSON sequence can be >> affected I meant to s

Re: JAX-RS bug after upgrading Jackson to 2.2

2013-06-07 Thread Sergey Beryozkin
On 07/06/13 14:33, Nic Fellows wrote: Thanks Sergey I tried 2.7.6-SNAPSHOT with no luck, same error. See https://issues.apache.org/jira/browse/CXF-4996?page=com.atlassian.jirafisheyeplugin:fisheye-issuepanel Can you do 'mvn clean' and double check you have 2.7.6-SNAPSHOT loaded ? So I then

Re: JAX-RS bug after upgrading Jackson to 2.2

2013-06-07 Thread Nic Fellows
Thanks Sergey I tried 2.7.6-SNAPSHOT with no luck, same error. So I then tried to fix this by wrapping the provider, but still get the same problem. I'm not 100% sure on the implementation, would you mind taking a look at it below and let me know if i'm missing anything? Cheers, Nic class J

Re: Custom STS

2013-06-07 Thread Colm O hEigeartaigh
If you want to add your own AttributeStatements to the STS you can't use the "DefaultSecurityTokenServiceProvider". Instead you will need to use the "SecurityTokenServiceProvider", and add the SAMLTokenProvider explicitly to it, with your custom AttributeStatementProvider implementation. This test

Re: CXF and swagger

2013-06-07 Thread Sergey Beryozkin
Hi Andrea On 07/06/13 12:55, eanbiso wrote: Hi Sergey, sorry for the mistake :-)! Following your suggestion, now it works! But is there the same problem for the ServiceBean? Until now I'm using: JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); sf.setServiceBea

Re: WSDL2Java from java question

2013-06-07 Thread mlabarre
I have found the problem. In Eclipse environment, ClassLoader returns a URL starting with "bundleresource:" not a "jar:" neither "file:". So, addDefaultSchemas in WSDL11Validor cannot locate the schemas. Do you think possible to add the following code in WSDL11Validator at line 250:

RE: CXF and swagger

2013-06-07 Thread eanbiso
Hi Sergey, sorry for the mistake :-)! Following your suggestion, now it works! But is there the same problem for the ServiceBean? Until now I'm using: JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); sf.setServiceBean(implementor); sf.setServiceBean(ne

Re: New to REST with CXF

2013-06-07 Thread Alex O'Ree
Sorry, not sure what I hit. I have a REST service that I'm building using CXF 2.7.5 that deploys correctly (it is listed with /services and the link returns a valid wadl), however I'm a bit confused as to what the actual invocation url is. WADL URL: http://localhost:8080/juddiv3/services/inquiryR

New to REST with CXF

2013-06-07 Thread Alex O'Ree
I have a REST service that I'm building using CXF 2.7.5 that deploys correctly (it is listed with /services and the link returns a valid wadl), however I'm a bit confused as to what the actual invocation url is. WADL URL: http://localhost:8080/juddiv3/services/inquiryRest?_wadl Base URL from WADL:

Re: JAX-RS bug after upgrading Jackson to 2.2

2013-06-07 Thread Sergey Beryozkin
Hi On 07/06/13 11:29, Nic Fellows wrote: I have just upgraded from Jackson 2.1.1 to 2.2.2 and it has caused the following exception: javax.ws.rs.client.ClientException: .No message body writer has been found for class : class uk.co.tbp.gabble.domain.User, ContentType : application/json. Has s

Re: CXF and swagger

2013-06-07 Thread Sergey Beryozkin
Hi On 07/06/13 10:44, eanbiso wrote: Hi Jersey, You meant CXF :-) ? the project https://github.com/wordnik/swagger-core/tree/develop-1.3/samples/java-jaxrs-cxf works for me (with this shrewdness: from swagger u.i when you put the address http://localhost:8002/api/api-docs.json you must remo

JAX-RS bug after upgrading Jackson to 2.2

2013-06-07 Thread Nic Fellows
I have just upgraded from Jackson 2.1.1 to 2.2.2 and it has caused the following exception: javax.ws.rs.client.ClientException: .No message body writer has been found for class : class uk.co.tbp.gabble.domain.User, ContentType : application/json. Has something changed in the way I need to c

Re: WS-SecureConversation and SAML assertions

2013-06-07 Thread Colm O hEigeartaigh
Hi Dan, It should be possible, although I haven't tried it in the context of Secure Conversation. Once the security header has been processed as per WSS4JInInterceptor, then you have full access to the security results from the message context. Colm. On Thu, Jun 6, 2013 at 4:33 PM, DTaylor wro

Re: Creating input values on WADL

2013-06-07 Thread Sergey Beryozkin
Hi On 07/06/13 10:13, Gonzalo Aguilar Delgado wrote: Hello, I'm using CXF to create some services. I've found that complex input parameters are not generated on description. So they cannot be handled right by clients. @GET @Path("/list/detail/{query}/get") @WebMethod(operationNam

RE: CXF and swagger

2013-06-07 Thread eanbiso
Hi Jersey, the project https://github.com/wordnik/swagger-core/tree/develop-1.3/samples/java-jaxrs-cxf works for me (with this shrewdness: from swagger u.i when you put the address http://localhost:8002/api/api-docs.json you must remove the .json from it, otherwise it does not work). I try t

Creating input values on WADL

2013-06-07 Thread Gonzalo Aguilar Delgado
Hello, I'm using CXF to create some services. I've found that complex input parameters are not generated on description. So they cannot be handled right by clients. @GET @Path("/list/detail/{query}/get") @WebMethod(operationName = "queryDetails") @WebResult(name = "response")

Re: CXF and swagger

2013-06-07 Thread Sergey Beryozkin
Hi Andrea On 07/06/13 07:37, eanbiso wrote: I attach also the pom.xml file with required jar of the project (if it was more useful)... it is the pom.xml file of the example at: https://github.com/wordnik/swagger-core/tree/develop-1.3/samples/java-jaxrs-cxf that I've tried to replicate in mine pro

Re: how to specify default namespace in JSON

2013-06-07 Thread Sergey Beryozkin
Hi On 06/06/13 20:31, tomstark wrote: Hi Sergey, Thanks for the quick response. I neglected to mention that I was already setting the ignoreNamespaces property to true. I was hoping that worked on input and output. Looks like it only works on input. Is that true? It only works on the outpu

Re: Custom STS

2013-06-07 Thread Iván Brencsics
Hi again patch, I will need to do the same soon. My plan is to implement a custom org.apache.cxf.sts.claims.ClaimsHandler, like org.apache.cxf.fediz.service.sts.FileClaimsHandler, that collects the claims from DB. Cheers, Ivan 2013/6/7 Mond > unsubscribe > > > Mond > > > On Thursday 6 June 20