Fwd: Commons http client support? Better way to handle SPNEGO.

2009-10-22 Thread Spam
Hi all, I'm digging into including SPNEGO support for the web services (based on CXF 2.2.4) I'm implementing. On server side, using 'Servlet Transport http://cxf.apache.org/docs/servlet-transport.html', it shouldn't be an issue since handling of (SPNEGO) authentication is performed by Tomcat. On

Is there any way to get a callback when the response has been sent all the way to the client? ie commit after response?

2009-10-22 Thread Kent Närling
In a CXF webservice implementation on the server, is there any way of being able to log/track wether the client received the response? eg. to only do a final commit on a transaction after the response has been sent in full to the client? I know this would never be perfect, but it should be at

Re: How-to pass an object from InInterceptor to outInterceptor

2009-10-22 Thread Sergey Beryozkin
Hi, please do inMessage.getExchange().put(KEY, obj); and outMessage.getExchange().get(KEY); cheers, Sergey - Original Message - From: vickatvuuch vlisov...@gmail.com To: users@cxf.apache.org Sent: Wednesday, October 21, 2009 10:13 PM Subject: How-to pass an object from InInterceptor

Re: Use of OSGi http service instead of jetty engine

2009-10-22 Thread Sergey Beryozkin
Hi For changing the port please update etc/system.properties (sorry, not etc/config.properties): org.osgi.service.http.port=9090 'cxf' context : You can add an org.apache.cxf.osgi.cfg to /etc directory and set the 'org.apache.cxf.servlet.context' property to say '/' or '/custom' and it

Re: Thread safety and injected items in implementations

2009-10-22 Thread Sergey Beryozkin
Hi So, say that my container is helpfully running multiple threads and thus calling into my service on multiple threads. What happens when there is request-specific stuff to inject? In particular, for JAX-RS: @Context private org.apache.cxf.jaxrs.ext.MessageContext messageContext;

Re: Upgrading from cfx 2.1.3 to 2.2.3 and MTOM issue

2009-10-22 Thread Kooper
dkulp wrote: This isn't an Aegis issue I don't think. First off, can you try 2.2.4? There are a couple MTOM bugs fixed in 2.2.4, mostly around streaming, but it's possible it affects this. Next, any chance you can wireshark the transfers for both 2.2.4 and 2.1.3? I'd like

Re: How-to pass an object from InInterceptor to outInterceptor

2009-10-22 Thread vickatvuuch
Sergey, Thanks, that's what I ended up doing. Sergey Beryozkin-2 wrote: Hi, please do inMessage.getExchange().put(KEY, obj); and outMessage.getExchange().get(KEY); cheers, Sergey - Original Message - From: vickatvuuch vlisov...@gmail.com To: users@cxf.apache.org

Re: Use of OSGi http service instead of jetty engine

2009-10-22 Thread Jaime Hablutzel Egoavil
Thank you Sergey, I got it working with your advice, do you think it should be added to the project wiki? or is it already there? On Thu, Oct 22, 2009 at 4:25 AM, Sergey Beryozkin sbery...@progress.comwrote: Hi For changing the port please update etc/system.properties (sorry, not

Re: Use of OSGi http service instead of jetty engine

2009-10-22 Thread Sergey Beryozkin
Sounds like a good idea. Can you please open a ServiceMix4 JIRA ? Or post this suggestion to the service mix users list ? I've updated ReadMe(s) for demos like cfx-osgi and cxf-jaxrs, but I didn't get to updating the ServiceMix wiki. By the way you can also edit the alias by using the shell

Re: Use of OSGi http service instead of jetty engine

2009-10-22 Thread Daniel Kulp
We probably should have a child page of: http://cxf.apache.org/docs/transports.html that at least briefly describes the OSGI transport. The stuff about the context changing is specific to the CXF transport and could/should be described at cxf. That could apply to any OSGi runtime. The

Re: Setting a HTTPRequest Parameter

2009-10-22 Thread oakridge
Dan, Thanks, but it looks like the internal variable does the same thing (put the values in the HTTP headers). This is not ideal, but I can change my code on the server side to start reading headers. Thanks -- View this message in context:

Accessing jax-rs (CXF) MessageContext outside service class (in aspect) in Spring (2.5)

2009-10-22 Thread Adrian M
Hey All, I'm trying to access the MessageContext (or WebServiceContext) in an aspect to get access to the HTTPServletRequest for logging purposes. I would like to inject the context like I did for spring-ws but I have not found a way to do it. Here is what I used for spring-ws: beans:bean

Re: Accessing jax-rs (CXF) MessageContext outside service class (in aspect) in Spring (2.5)

2009-10-22 Thread Sergey Beryozkin
Hi At the moment I can think of the following hack: have the service endpoint bean injected with (jaxws)WebServiceContext or (jaxrs)MessageContext, and also have a simple bean called, say, ContextHolder injected into the service endpoint bean too. Next, have @PostConstruct method in the

trying to create a jaw-ws client failing

2009-10-22 Thread Jaime Hablutzel Egoavil
Hi there, I'm trying to create a jax-ws inside one of the methods I'm exposing as web services using cxf: bean id=emrService class=pe.gob.hndac.ws.EmrServiceImpl property name=service ref=vfpService/property /bean bean id=vfpService class=pe.gob.hndac.soasighhc.wsdl.Soasighhc/bean

LogicalHandlerInInterceptor examples

2009-10-22 Thread Brenda Coulson
All Has anyone had any success using LogicalHandlerInInterceptor? I can not find examples of it in the sample code or any way to use it from the documentation. Any and all help/pointers would be greatly appreciated!! Thanks in advance brenda -- View this message in context:

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Dave Stanley
There's a test here: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/LogicalHandlerInterceptorTest.java?view=markup Hope that helps /Dave On Thu, Oct 22, 2009 at 12:12 PM, Brenda Coulson bren...@dystech.com wrote: All Has anyone had any

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Brenda Coulson
Dave thanks - that does help to see how it is invoked, however it is being invoked from Spring for me. I actually need help writing an interceptor that derives from this interceptor. brenda Dave Stanley wrote: There's a test here:

error trying to use cxf's wsdl2java client inside servicemix

2009-10-22 Thread Jaime Hablutzel Egoavil
Hi, I generated a web service skeleton using wsdl2java from cxf and I want to use it inside servicemix but this is error produced when I try to, it is worth mentioning that it works very well called from main as a normal Java application. 12:01:12,463 | INFO | 13764...@qtp1-1 |

Abdera cadabdera (or, missing artifact?)

2009-10-22 Thread Benson Margulies
222K downloaded (cxf-rt-databinding-aegis-2.2.3.jar) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1)

Re: Abdera cadabdera (or, missing artifact?)

2009-10-22 Thread Daniel Kulp
Do you have the incubator repository mirrored in your nexus thing? The jaxrs pom has the repository entry for it so it should be found (unless people.apache.org is down) in the absence of a mirror issue. Dan On Thu October 22 2009 1:40:56 pm Benson Margulies wrote: 222K downloaded

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Dave Stanley
I think in principal it will be similar to this demo cxf/samples/jaxws_handlers/src/demo/handlers/common/LoggingHandler.java but instead of a SOAPMessageContext, you would be handling a MessageContext as in the testcase. /Dave On Thu, Oct 22, 2009 at 12:21 PM, Brenda Coulson bren...@dystech.com

RE: Abdera cadabdera (or, missing artifact?)

2009-10-22 Thread Sergey Beryozkin
We're hoping CXF users will actually start seeing some real benefits from CXF shipping the Abdera, there's a number of ideas about making Abdera more 'active', this includes simplifying the way users can deal with Feeds, etc... Watch this space :-) Sergey -Original Message- From: Daniel

Rest Sample

2009-10-22 Thread srini raju
Hi, I have JBoss5.1.0 and i installed jbossws-cxf-3.2.0.GA and its working correctly. Now I would like to deploy jax-rs/basic sample to this server. Can someone help as to what i have to do. Thanks, Srini

Re: enabling MTOM

2009-10-22 Thread Daniel Kulp
On Thu October 22 2009 3:43:18 pm William Tam wrote: Are there any downsides (performance, etc) if I always enable MTOM even if I don't use MTOM feature? Yes.If mtom is on, we always setup the mime envelopes and such. Thus, the messages on the wire a bit bigger (extra set of mime

RE: Rest Sample

2009-10-22 Thread Sergey Beryozkin
Is CXF JAXRS included ? If yes then it's the good news, I don't know actually, I can see from http://lists.jboss.org/pipermail/jboss-cvs-commits/2009-August/104841.ht ml the cxf-frontend-jaxrs dependency is listed - but I don't know if it is included in the final product. If yes then you

Re: Accessing jax-rs (CXF) MessageContext outside service class (in aspect) in Spring (2.5)

2009-10-22 Thread Daniel Kulp
Easiest is to just grab the raw message: PhaseInterceptorChain.getCurrentMessage() and pull the stuff off of there. Would need to use the CXF internal names (defined on Message), but that's not a major issue. Dan On Thu October 22 2009 11:27:34 am Adrian M wrote: Hey All, I'm trying

Re: error trying to use cxf's wsdl2java client inside servicemix

2009-10-22 Thread Daniel Kulp
Hmm... that's definitely a strange error. Tracing back through that stack, the only way a NPE would occur there is if: Method JaxWsServiceConfiguration.getDeclaredMethod(Class? endpointClass, Method method) returns null. However, I cannot see why it would return null on a client.

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Daniel Kulp
Umm what are you trying to use LogicalHandlerInInterceptor for? It's pretty much just used by the JAXWS runtime to invoke the jaxws LogicalHandlers. It's not really something that anyone would normally be invoking themselves. Basically, what are you trying to accomplish? Knowing that

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Daniel Kulp
On Thu October 22 2009 4:31:21 pm Brenda Coulson wrote: That is great to know! I am so confused between the difference between Interceptors and Handlers and when to use them. Ok so I have a Soap message that I am trying to ultimately validate. However, there are times when I may receive a

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Brenda Coulson
Dan This does help enormously. I need to process my options to figure out which works best. Our system already runs like a dog so performance is a real issue. Just a quick question - since the Soap message I am receiving is technically wrong, is there any way to get the validator/parser to choke

Re: Is there any way to get a callback when the response has been sent all the way to the client? ie commit after response?

2009-10-22 Thread Daniel Kulp
On Thu October 22 2009 3:31:15 am Kent Närling wrote: In a CXF webservice implementation on the server, is there any way of being able to log/track wether the client received the response? eg. to only do a final commit on a transaction after the response has been sent in full to the client?

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Daniel Kulp
On Thu October 22 2009 5:08:26 pm Brenda Coulson wrote: Dan This does help enormously. I need to process my options to figure out which works best. Our system already runs like a dog so performance is a real issue. Just a quick question - since the Soap message I am receiving is technically

Re: Fwd: Commons http client support? Better way to handle SPNEGO.

2009-10-22 Thread Daniel Kulp
Well, one option may be to look into the http-client code and see if the SPNEGO stuff is easily pulled out into a org.apache.cxf.transport.http.HttpAuthSupplier thing.At one point, I did pull out the DIGEST stuff so digest auth is supported with CXF. I don't know anything about SPNEGO

Re: LogicalHandlerInInterceptor examples

2009-10-22 Thread Brenda Coulson
Dan sorry to bother you again - just a little confused. So I am using JAXWS endpoints and I added the line below to my spring.xml file and it didn't make a difference. Do I still need to add the interceptor you mentioned before? Your recent message implies I should be able to acheive what I want