CXF message encoding :how to get Hexa encoding in uppercase .

2012-03-21 Thread chimaira
Hi there, Actually when I apply an ascii encoding on message context with : Message msg = PhaseInterceptorChain.getCurrentMessage(); message.put(Message.ENCODING, "ASCII"); I got an encoding with lowercases : ex : [ 'e0', 'e6' ]. I wish to get that encoding in uppercase -> 'E0', 'E6' . Is

Interceptors Session data confusion .

2012-02-22 Thread chimaira
Hi all, In my WS application I store objects in session using this methode: WebServiceContextImpl().getMessageContext().put(key, object) And I get theme in the response interceptor using : (object) message.getExchange().getInMessage().get(key); So, that works fine but . what about callin

Why the getContent(SOAPMessage.class) returns a soap request with empty parts

2012-02-12 Thread chimaira
Hi all, I want to extends AbstractSoapInterceptor to etid.save my soap requests. but when try to retrieve the SOAPmessage by :* getContent(SOAPMessage.class)* it returns a SOAPMessage with null header and Body parts, while the response contains realy body and headers (I use soapUI to test my

Re: How to Stor/Get data in CXF Session .

2012-02-06 Thread chimaira
Hi Glen And thak you I finally found it What I was doing : Object obj= arg0.getExchange().get("keyCode"); // DOES NOT WORK The correct code is : Object obj= arg0.getExchange().getInMessage().get("keyCode"); // WORK M-A -- View this message in context: http://cxf.547215.n5.nabble.com/How-

Re: How to Stor/Get data in CXF Session .

2012-02-06 Thread chimaira
Hi, Thanks for replay, I saw the example . The guy puts the value of MAX_VALUE this way : DoubleItService service = new DoubleItService(); DoubleItPortType port = service.getDoubleItPort(); ((BindingProvider) port).getRequestContext().put("MAX_VALUE", "200"); There is no information

Why my custom interceptor class not found when deploing on tomcat.

2012-02-06 Thread chimaira
Hi all, I create a simple cxf project based on maven archetype. I deploy the on the war in tomcat and it works fine. But when I try to add a custom interceptor, tomcat could not deploy the archive I get these Exception: Exception : *Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.in

Re: How to Stor/Get data in CXF Session .

2012-02-06 Thread chimaira
Hi, This is what I did , And does nt work : In my service I did this : @Resource private WebServiceContext wsctx; ... final MessageContext messageContext = wsctx.getMessageContext(); messageContext.put("MYKEY", "keyValue"); And in my interceptor (response). I try to retrieve the value like :

How to Stor/Get data in CXF Session .

2012-02-03 Thread chimaira
Hello Sorry for my english, I'll try to be as clear as I can with CXF integrated in my application , I m extending the AbstractPhaseInterceptor class so I can save my Request/Response into an output file. but, while my response xml contains no request information (like a customer ID's for ex)

Re: specify the output file for CXF logging

2011-12-29 Thread chimaira
Hi Daniel , and thank you for reply, I v tried this @Logging(outLocation = "file:outsoap.log", inLocation = "file:outsoap.log", pretty = true) @Logging(outLocation = "file:c:\\outsoap.log", inLocation = "file:c:\\outsoap.log", pretty = true) but doesnt work. I can t find the logs files with out

specify the output file for CXF logging

2011-12-28 Thread chimaira
Hi all I m logging my soap in/out xml using the annotations @InInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingInInterceptor") @OutInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingOutInterceptor") That works great. requests and response are logged in my application s