RE: How to access jaxws:properties in a CXF Interceptor

2014-06-25 Thread XiLai Dai
Hi, message.getContextualProperty(myKey) will works for you. Regards. -Original Message- From: Frizz [mailto:frizzthe...@googlemail.com] Sent: Wednesday, June 25, 2014 12:23 PM To: users@cxf.apache.org Subject: How to access jaxws:properties in a CXF Interceptor I have defined a WS

RE: How to access jaxws:properties in a CXF Interceptor

2014-06-25 Thread Andrei Shakirin
Hi, The easiest way is read these properties from message using org.apache.cxf.message.Message.getContextualProperty(String key) in your interceptor. Method tries to get the property from message, client, endpoint, etc in determined order. Regards, Andrei. -Original Message- From:

Re: Catching java.io.IOException on the server side

2014-06-25 Thread Sergey Beryozkin
Hi I'm not sure sure how it can be done with CXF 2.6.9 but I think it can be with CXF 3.0.0 and JAX-RS 2.0 AsyncResponse. You'd use AsyncResponse as one of the method parameters, set a timeout, shorter than 15 sec, say 5 sec, and then if the response is not ready then set another timeout

Re: Catching java.io.IOException on the server side

2014-06-25 Thread Sergey Beryozkin
On 25/06/14 10:13, Sergey Beryozkin wrote: Hi I'm not sure sure how it can be done with CXF 2.6.9 but I think it can be with CXF 3.0.0 and JAX-RS 2.0 AsyncResponse. You'd use AsyncResponse as one of the method parameters, set a timeout, shorter than 15 sec, say 5 sec, and then if the response

Re: Catching java.io.IOException on the server side

2014-06-25 Thread Jason Pell
This is similiar to what we do http://stackoverflow.com/questions/8066474/how-to-transform-soapfault-to-soapmessage-via-interceptor-in-cxf On 25/06/2014 11:27 AM, harald sunny...@rainyday.de wrote: I hope somebody can point me in the right direction with the following: Think of a simple

Re: CXF String transport? [SEC=UNCLASSIFIED]

2014-06-25 Thread Sergey Beryozkin
CXF in interceptors can abort the chain and get the flow continued starting from the outgoing chain, example: private Message createOutMessage(Message inMessage) { Endpoint e = inMessage.getExchange().get(Endpoint.class); Message mout = e.getBinding().createMessage(); //

Re: WS-Security

2014-06-25 Thread Colm O hEigeartaigh
Could you create a zip file instead that I can just extract and run please? Colm. On Tue, Jun 24, 2014 at 1:49 PM, Stephanie Dammann stephanie.damm...@mpag.eu wrote: Hello again, thanks for your answer. Here is a sample project. I think some configurations might be wrong, but I can't

Re: WS-Security

2014-06-25 Thread Colm O hEigeartaigh
Running with mvn -Pclient I get: java.lang.ClassNotFoundException: net.eads.astrium.client.CurrentTimeClient Colm. On Wed, Jun 25, 2014 at 11:49 AM, Stephanie Dammann stephanie.damm...@mpag.eu wrote: Hallo, here is the project exported as a .zip file. Sorry for an inconvenience.

CXF 2.5.x/2.7.x authentication using NTLM with SharePoint Web Services

2014-06-25 Thread Sandeep Khanzode
Hi,   I am trying to authenticate for SharePoint 2010/2013 web services using NTLM.  The SOAP web services are consumed using the Apache CXF 2.5.x client. I have also tried 2.7.x versions.  My client programming is in Java, JDKv1.7. However, the NTLM authentication does not work. I have been

RE: cxf logging and log4j

2014-06-25 Thread Stephen.CTR.Chappell
I'm having the same issue as Aaron, if anyone can give a few pointers. My ultimate goal is to create an audit log as described at http://owulff.blogspot.ch/2013/05/logging-in-apache-cxf-sts-enhanced.html. I've done the following (running CXF 2.7.12-SNAPSHOT on Tomcat 7.0.52): 1. Added a bunch

RE: cxf logging and log4j

2014-06-25 Thread Stephen.CTR.Chappell
I've made some progress, but I am not getting exactly what I expect. Using a log4j.xml file to configure log4j does get me some logging redirected to another file - DEBUG and INFO statements are redirected. But, I'm not getting the audit logging I was expecting. My log4j.xml has this definition

Re: Best way to send and receive a document from a resource method in rest based webservice

2014-06-25 Thread priya
Hello , Please take a look at my posting below and let me know your thoughts. If it is the incapability of WADL to define the request/response parameter types in case of multipart, then that definitely seems to be a weak point of REST based webservices. Is there any enhancements or future work

jax-rs (jackson) cannot deserialize form parameter

2014-06-25 Thread Vassilis Virvilis
Hi, My problem looks like this http://mail-archives.apache.org/mod_mbox/cxf-users/201307.mbox/%3c51e6a843.1080...@apache.org%3E I am using cxf 3.0.0 so I believe the thread does not apply and I am not sure what I should do or try based on that thread. My problem is that I am trying to call

Re: jax-rs (jackson) cannot deserialize form parameter

2014-06-25 Thread Sergey Beryozkin
Hi On 25/06/14 13:47, Vassilis Virvilis wrote: Hi, My problem looks like this http://mail-archives.apache.org/mod_mbox/cxf-users/201307.mbox/%3c51e6a843.1080...@apache.org%3E I am using cxf 3.0.0 so I believe the thread does not apply and I am not sure what I should do or try based on that

Re: Best way to send and receive a document from a resource method in rest based webservice

2014-06-25 Thread Sergey Beryozkin
Hi WADL can only describe simple multipart payloads, those which have plain parameters. In fact WADL spec itself does not say anything about multiparts, but I think it mentions regular form payloads. I think what happens there is that a WADL generator defaults to a form payload media type

Re: Best way to send and receive a document from a resource method in rest based webservice

2014-06-25 Thread priya
Thank you, I will be looking forward to seeing your response. -Priya -- View this message in context: http://cxf.547215.n5.nabble.com/Best-way-to-send-and-receive-a-document-from-a-resource-method-in-rest-based-webservice-tp5745338p5745560.html Sent from the cxf-user mailing list archive at

RE: Outofmemory error in datahandler

2014-06-25 Thread Shriram
I am downloading a file by clicking a link. I am using jdk1.7, cxf-2.7.5 and enabled MTOM in both client and server. For UI i am using struts1.2. I got the below exception [default-workqueue-8] ERROR consoleErrorLog - Exception in thread default-workqueue-8 [default-workqueue-8] ERROR

RE: cxf logging and log4j - SOLVED

2014-06-25 Thread Stephen.CTR.Chappell
I think I solved my issue. If anyone's interested, I had to fix the log4j.xml config to start logging audit data to the right file now: appender name=auditFile class=org.apache.log4j.FileAppender param name=threshold value=DEBUG/ param name=File value=/tmp/stsaudit.log/

Re: WS-Security

2014-06-25 Thread Colm O hEigeartaigh
There are a number of problems in your pom, you are missing a few dependencies + also mixing different versions of CXF. See attached for a pom.xml with a new server profile. The testcase works with mvn -Pserver and mvn -Pclient in another terminal. Colm. On Wed, Jun 25, 2014 at 2:17 PM,

Return SOAP Fault in CXF Interceptor

2014-06-25 Thread Frizz
I have a custom interceptor. In case the SoapMessage is an Exception, I'd like to skip all my other interceptors and return a SOAP Fault. public void handleMessage(SoapMessage message) ... if (message.getContent(Exception.class)!=null) { skip other interceptors and return SOAP Fault } ... Is

Re: Return SOAP Fault in CXF Interceptor

2014-06-25 Thread neela
You could remove all other interceptors apart from current interceptors from chain, some thing like below. InterceptorChain chain = message.getInterceptorChain(); ListIteratorInterceptorlt;? extends Message chainIterator = chain.getIterator(); while ( chainIterator.hasNext() ) {

Re: CXF JaxWs Endpoint fail with 'The given SOAPAction does not match an operation' when the action contains accented characters

2014-06-25 Thread Daniel Kulp
On Jun 22, 2014, at 8:12 AM, Younes Ouadi younes.ou...@gmail.com wrote: Hello Dears, I'm stuck with the Async Client and accented characters. Please help. Sorry, wasn’t clear. You need to use the HTTP transport based on the Apache HTTP Components async clients. Some docs at:

Re: This mailing list seems broken to send replies from Nabble now [SEC=UNCLASSIFIED]

2014-06-25 Thread Daniel Kulp
On Jun 25, 2014, at 12:52 AM, Joel Pearson joel.pear...@ipaustralia.gov.au wrote: This mailing list seems broken to send replies from Nabble now. Did some SPF checking get switched on in the last day or so? None that I’m aware of and I’m seeing reply’s from others coming from Nabble.

Re: Return SOAP Fault in CXF Interceptor

2014-06-25 Thread Daniel Kulp
On Jun 25, 2014, at 12:44 PM, Frizz frizzthe...@googlemail.com wrote: I have a custom interceptor. In case the SoapMessage is an Exception, I'd like to skip all my other interceptors and return a SOAP Fault. Where in the chain is your interceptor? If it’s on the incoming chain, just throw

Re: CXF String transport?

2014-06-25 Thread Daniel Kulp
On Jun 24, 2014, at 3:33 AM, bimjoeipa joel.pear...@ipaustralia.gov.au wrote: What's the easiest way to get the string content of a message without actually sending it anywhere? Essentially what I want to do is use CXF to apply WS-Policy to a message, but I just want the string output from

Re: Outofmemory error in datahandler

2014-06-25 Thread Daniel Kulp
I’m not sure if anyone has ever tried MTOM with the Local transport. In theory, it should work. Not sure why it isn’t. If you could create a small test case that shows the error, that would be interesting to look at. Dan On Jun 25, 2014, at 8:33 AM, Shriram shri1984...@gmail.com wrote:

RE: This mailing list seems broken to send replies from Nabble now [SEC=UNCLASSIFIED]

2014-06-25 Thread Joel Pearson
I would only affect domains that have SPF records configured, such as my organisation, I asked internally at my organisation and they don't think the SPF record was changed recently. I received a bounce email from apache mail server via nabble like this: This message was created automatically

JAX-WS Provider returning JAXBSource with attachment

2014-06-25 Thread zsolt.szloboda
I am trying to return a JAXBSource payload from a JAX-WS Provider; the JAXBSource's Marshaller has a custom AttachmentMarshaller that puts the attachments into the MessageContext's OUTBOUND_MESSAGE_ATTACHMENTS Map the problem is that the attachments are not included in the response multipart SOAP

Classloader leak in ExtensionManagerBus (on tomee)

2014-06-25 Thread pablo.a.saave...@gmail.com
Hi All, hope you are doing well. We've been using Tomee as our application server lately (we have some basic JAX-RS APIs), and after several redeployments we get a PermGen space error. I've been digging into the heap dump, and from what I see our custom JAX-RS provider (JacksonJaxbJsonProvider)