content location issue in attachment response

2010-05-20 Thread SaravananRamamoorthy
Hi All, I am trying to send attachment as a response using Jax - RS. The system gets the attachment details from Saaj api to Jax - RS and it need to send as a response. Please see the code below: ListAttachment responseAttach = new ArrayListAttachment(); while(attach.hasNext()) //attach is

Re: content location issue in attachment response

2010-05-20 Thread SaravananRamamoorthy
, after you've built it, and verify the headers have not been modified (i.e, you still see 'Content-Location' as opposed to 'content-location') ? cheers, Sergey On Thu, May 20, 2010 at 5:02 PM, SaravananRamamoorthy saravanan.ramamoorth...@gmail.com wrote: Hi All, I am trying to send

how to remove the extra angular in start tag

2010-05-19 Thread SaravananRamamoorthy
Dear All, I am trying to send attachments from the JAX RS application and used soapUI tool for testing. I use InputStream and MultiValuedMap as parameters for the Attachment class successfully able to receive the attachment.But I am facing the following issues: 1. In boundary - start tag

Re: how to instantiate MultiValuedMap in jax rs

2010-05-17 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your response. Regards Saravanan Ramamoorthy Sergey Beryozkin-5 wrote: It is org.apache.cxf.jaxrs.impl.MetadataMap, ex MultivaluedMapString, Object mam = new MetadataMapString, Object(); cheers, Sergey On Mon, May 17, 2010 at 4:36 PM, SaravananRamamoorthy

Re: Logging Inbound and outbound message in cxf

2010-04-05 Thread SaravananRamamoorthy
catalina.sh in tomcat. -Regards, Muralidhar.Buditi On 3/31/10, SaravananRamamoorthy saravanan.ramamoorth...@gmail.com wrote: Dear All, In my cxf application, I want to log the Inbound and outbound xml payload. I am using log4j and I do not use any spring stuff. How can I do

Re: Logging Inbound and outbound message in cxf

2010-04-01 Thread SaravananRamamoorthy
. Regards, Todd - Original Message - From: SaravananRamamoorthy saravanan.ramamoorth...@gmail.com To: users@cxf.apache.org users@cxf.apache.org Sent: Wed Mar 31 09:12:51 2010 Subject: Re: Logging Inbound and outbound message in cxf Hi Todd, I have a web application, Where

Logging Inbound and outbound message in cxf

2010-03-31 Thread SaravananRamamoorthy
Dear All, In my cxf application, I want to log the Inbound and outbound xml payload. I am using log4j and I do not use any spring stuff. How can I do this using java code to log this feature. Please provide some sample code to do this. Regards Saravanan Ramamoorthy -- View this message in

Re: Logging Inbound and outbound message in cxf

2010-03-31 Thread SaravananRamamoorthy
information using log4j. Please suggest me. Regards Saravanan Ramamoorthy SaravananRamamoorthy wrote: Dear All, In my cxf application, I want to log the Inbound and outbound xml payload. I am using log4j and I do not use any spring stuff. How can I do this using java code to log

Re: Logging Inbound and outbound message in cxf

2010-03-31 Thread SaravananRamamoorthy
. Refer to http://cwiki.apache.org/CXF20DOC/debugging-and-logging.html Using Log4j Instead of java.util.logging for a more information. Regards, Todd On Wed, 2010-03-31 at 07:02 -0400, SaravananRamamoorthy wrote: Hi, I use Interceptors like

Re: Logging Inbound and outbound message in cxf

2010-03-31 Thread SaravananRamamoorthy
/latest/org/apache/cxf/common/logging/LogUtils.html HTH. Regards, Todd On Wed, 2010-03-31 at 08:09 -0400, SaravananRamamoorthy wrote: Hi Todd, I do not have cxf directory and org.apache.cxf.Logger file in my application. What should I done actually. Please suggest me. Regards

Re: multi language support in cxf

2010-03-29 Thread SaravananRamamoorthy
have '@FormParam String' parameters ? The form provider uses UTF-8 encoding to have input stream bytes converted into String... cheers, Sergey On Thu, Mar 25, 2010 at 8:08 AM, SaravananRamamoorthy saravanan.ramamoorth...@gmail.com wrote: Hi bimargulies, The charset that we used

Re: how to handle No such operation problem in cxf

2010-03-29 Thread SaravananRamamoorthy
Hi All, The issue has been solved by overriding the doHead() method (in the class that extends CXFNonSpringServlet) and it solves the problem. Regards Saravanan Ramamoorthy SaravananRamamoorthy wrote: Hi All, I have created hello world webservice using cxf. My application endpoint

multi language support in cxf

2010-03-23 Thread SaravananRamamoorthy
Hi All, Does JAX-RS support multiple language? Can we able to inject the chinese langues using queryparam? Please guide me to trigger out the solution. Regards Saravanan Ramamoorthy -- View this message in context: http://old.nabble.com/multi-language-support-in-cxf-tp27999720p27999720.html

Re: multi language support in cxf

2010-03-23 Thread SaravananRamamoorthy
, etc -- /jaxrs:languageMappings and then append .en, etc to the URI, ex GET /resource.en Next, you can use an HttpHeaders context to get the value of the expected language and return an appropriate Response cheers, Sergey On Tue, Mar 23, 2010 at 11:47 AM, SaravananRamamoorthy

Re: How to handle unexpected text/html ContentType in Response

2010-02-21 Thread SaravananRamamoorthy
Hi Dan, Can we get html mime headers using the interceptor? If it so could you please send some links on the same. Regards Saravanan SaravananRamamoorthy wrote: Hi Dan, There is an webseal layer before processing the webservice. So the unauthorized html streaming returned from

jaxws and jaxrs publishing issue in was

2010-02-21 Thread SaravananRamamoorthy
Hi All, In my application, I need to use both jaxrs and jaxws services. so I have created the services and publish the services and deployed in tomcat. It works fine. But when in Webspehere application server 6.1 , It throws the following error. [2/21/10 21:49:22:718 IST] 0024 PhaseIntercep

Re: jaxws and jaxrs publishing issue in was

2010-02-21 Thread SaravananRamamoorthy
Hi All, I have removed wstx-asl-3.2.9.jar and some other unnecessary jar files from the lib folder and it works fine now. Regards Saravanan R SaravananRamamoorthy wrote: Hi All, In my application, I need to use both jaxrs and jaxws services. so I have created the services and publish

SAAJ support in cxf

2010-02-21 Thread SaravananRamamoorthy
Hi All, Can we use saaj attachments in the generated templates of cxf. For example, we want to send the attacments to the webservices where the attachments are ananymous (i.e not given in the wsdl file like MTOM). Is there any way to send those attachments using cxf. Regards Saravanan -- View

Re: publishing jaxws service endpoint

2010-02-19 Thread SaravananRamamoorthy
-nameCXFServlet/servlet-name servlet-classcom.test.HelloWorldServer/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping Dan On Thu February 18 2010 6:32:48 pm SaravananRamamoorthy

Re: publishing jaxws service endpoint

2010-02-19 Thread SaravananRamamoorthy
?wsdl, it shows the correct wsdl file. The sample client also works fine. Regards Saravanan SaravananRamamoorthy wrote: Hi Dan, I have changed the web.xml , now it throws the following error. javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException

publishing jaxws service endpoint

2010-02-18 Thread SaravananRamamoorthy
Hi All, I have created a Helloworld webservice using cxf.When I publish the endpoint in standalone server, it works fine. How do I publish the Helloworld service in tomcat without using any spring stuff. I go-through the servlet transport without spring , I have created a servet which extends

How to handle unexpected text/html ContentType in Response

2010-02-17 Thread SaravananRamamoorthy
Hi All, I have created a webservice client using cxf. The Webservice requires Http Basic Authentication.If we pass the correct credentials it retrieves the result as a string. If the credentials are incorrect , then the webservice returns a html page that shows the some unauthorized details

Re: How to handle unexpected text/html ContentType in Response

2010-02-17 Thread SaravananRamamoorthy
an interceptor that would process the html page into something a bit more tolerable. Dan On Wed February 17 2010 3:20:03 am SaravananRamamoorthy wrote: Hi All, I have created a webservice client using cxf. The Webservice requires Http Basic Authentication.If we pass the correct credentials

Re: Fault handling issue in cxf 2.2.5 on WAS 6.1

2010-02-12 Thread SaravananRamamoorthy
Hi All, The problem has been resolved. The problem is with xalan-2.7.1.jar.I have removed this jar file from the shared library and it works in both tomcat and WAS 6.1. Regards Saravanan Ramamoorthy SaravananRamamoorthy wrote: Hi All, I have created cxf webservice client application

Re: How can we access the webservice running behind the webseal

2010-02-11 Thread SaravananRamamoorthy
Hi dkulp , Thanks for suggestion. I am not using any spring stuff. Is there any way to do webseal security using java code where we can directly point to the wsdl url? Regards Saravanan Ramamoorthy dkulp wrote: On Wed February 10 2010 9:54:27 am SaravananRamamoorthy wrote: Hi All

Fault handling issue in cxf 2.2.5 on WAS 6.1

2010-02-11 Thread SaravananRamamoorthy
Hi All, I have created cxf webservice client application. When I deploy the applicaiton in WAS 6.1 and I have change the class loader to class loaded with application class loader first and I have made change in manifest file as DisableIBMJAXWSEngine: true. The application works properly except

Re: Http basic authentication in JAX RS

2010-02-08 Thread SaravananRamamoorthy
and password, but no realm. Andreas On Mon, Feb 8, 2010 at 06:02, SaravananRamamoorthy saravanan.ramamoorth...@gmail.com wrote: Hi Andreas, Thanks for your suggestions and continous support. In SoapUI,I was not enable the authentication information to outgoing request in the SOAPUI

https in webservice client using cxf

2010-02-08 Thread SaravananRamamoorthy
Hi Experts, I have created a webservice client using cxf. It works fine with http protocol. When I invoke the webservice having https protocol. It throws the error like: HttpsURLConne I org.apache.cxf.transport.https.SSLUtils getCiphersuites The cipher suites have not been configured, falling

Re: securing JAX RS

2010-02-07 Thread SaravananRamamoorthy
to retrieve the credentials. For the long time , I cannot be able to retrieve the credentials because of: In SoapUI, it is essestial to explicitly allow the authentication to outgoing request.I was not enable the options. Thanks for your support and help. Regards SaravananRamamoorthy Andreas

Re: Http basic authentication in JAX RS

2010-02-07 Thread SaravananRamamoorthy
: SaravananRamamoorthy [mailto:saravanan.ramamoorth...@gmail.com] Sent: Friday, February 05, 2010 8:31 AM To: users@cxf.apache.org Subject: Re: Http basic authentication in JAX RS Hi Andreas, Thanks for your information. I will try to figure out what I made mistake in SOAP UI. Thanks for your help

securing JAX RS

2010-02-05 Thread SaravananRamamoorthy
tried out with the link http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ Please help me how to use this concept in resource class. Can anyone send the sample code to retrieve the credentials. Thanks for your help. Regards SaravananRamamoorthy -- View this message

Re: Http basic authentication in JAX RS

2010-02-05 Thread SaravananRamamoorthy
the details. http://old.nabble.com/file/p27468603/authentication.PNG authentication.PNG Regards SaravananRamamoorthy Sergey Beryozkin-2 wrote: Can you post the value of this header please ? cheers, Sergey Hi Sergey, Yes. The authorization header is sent by the client. I have used SOAPUI

Re: Http basic authentication in JAX RS

2010-02-05 Thread SaravananRamamoorthy
Hi Andreas , I can able to get the values, when I send the information through header.It works fine. But when I send the credentials using Authentication part,I cannot able to retrieve. Regards SaravananRamamoorthy Andreas Veithen-2 wrote: What Sergey actually wants you to do is to check

Re: Http basic authentication in JAX RS

2010-02-05 Thread SaravananRamamoorthy
SOAPUI only sends the Authorization header after getting a 401/403 status code). Andreas On Fri, Feb 5, 2010 at 17:14, SaravananRamamoorthy saravanan.ramamoorth...@gmail.com wrote: Hi Andread, Please find the attachment.When the values are send through Header(s) tab, I can able to retrieve

Re: Http basic authentication in JAX RS

2010-02-04 Thread SaravananRamamoorthy
Hi Sergey, I tried with MessageContext , MessageContextImpl and SecurityContext. But it always return null. Do we need anything to be configure in web.xml? Regards SaravananRamamoorthy Sergey Beryozkin-2 wrote: Please check http://cxf.apache.org/docs/debugging-and-logging.html

Re: Http basic authentication in JAX RS

2010-02-03 Thread SaravananRamamoorthy
Hi Sergey, I tried with your suggestions like public Response getCredentials(@Context MessageContext mc) { AuthorizationPolicy policy = (AuthorizationPolicy)mc.get(AuthorizationPolicy.class); System.out.println(policy.getUserName());

RE: Http basic authentication in JAX RS

2010-02-03 Thread SaravananRamamoorthy
: -Original Message- From: SaravananRamamoorthy [mailto:saravanan.ramamoorth...@gmail.com] Sent: Wednesday, February 03, 2010 6:54 AM To: users@cxf.apache.org Subject: Re: Http basic authentication in JAX RS Hi Sergey, I tried with your suggestions like public

Re: Http basic authentication in JAX RS

2010-02-03 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your suggestions. I am new to apache cxf. Is there any direct interface or context availabe to receive the authentication details just like @QueryParam.(for receiving query string). It is enough to print the username and the password in the console. Please provide the

basic authentication in cxf webservice client

2010-02-01 Thread SaravananRamamoorthy
Hi All, I have generated webservice client using cxf wsdl2java. The webservice requires basic authentication. How do I pass basic authenticatin to webservice client using cxf. Can we use BindingProvider class for this. Regards Saravanan R -- View this message in context:

Re: basic authentication in cxf webservice client

2010-02-01 Thread SaravananRamamoorthy
2010 10:37:06 am SaravananRamamoorthy wrote: Hi All, I have generated webservice client using cxf wsdl2java. The webservice requires basic authentication. How do I pass basic authenticatin to webservice client using cxf. Can we use BindingProvider class for this. Yep

Re: How to strip down the namespace generated by JAXb

2010-01-29 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your feedback. I will try out with the suggestions you have provided. Regards Saravanan R Sergey Beryozkin-2 wrote: Hi there're few options, see [1], just fixed few typos... 1. register a custom JAXBElementProvider's outTransformElements. Ex, if you have

SAAJ attachments in cxf

2010-01-29 Thread SaravananRamamoorthy
Hi All, I have written a webservice client in cxf. In one of the webservice operation having attachment part separately along with the soap envelop. How can we use SAAJ API to handle the attachments in cxf. Please provide your inputs and suggestions. Regards Saravanan Ramamoorthy -- View

Re: JAX RS - how to publish endpoint using cxf

2010-01-28 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your continous support. Its works fine for me. Now I can able to run JAX RS through the endpoint. Also able to create webservice client and call throiugh JAX RS. Thank you once again for your support. Regards Saravanan R Sergey Beryozkin-2 wrote: Hi, Hi

How to strip down the namespace generated by JAXb

2010-01-28 Thread SaravananRamamoorthy
Hi Experts, I have a scenario that the application calls the webservice client and the result is rendered using JAX RS. I have created webservice client using wsdl2java, the generated files having the response bean. When I call the webservice , I can able to get the response and tried to use

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, I have written a class that extends Application and registers all the resource service class. Here is my class: public class MyRest extends Application{ @Override public SetClass? getClasses() { // TODO Auto-generated method stub

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your quick reply. My resource class: @Path(/hello) public class Helloworld{ @GET public void sayHello() { System.out.println(hello world); } } and my context root is testproject. Totally I have written 1. Resource class

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey , I think the problem is with my web.xml Could you please verify my web.xml servlet servlet-nameCXFServlet/servlet-name servlet-classorg.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet/servlet-class init-param param-namejavax.ws.rs.Application/param-name

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, Please find the attached war file. I have removed jar files. Regards Saravanan Ramamoorthy http://old.nabble.com/file/p27342133/testproject.war testproject.war Sergey Beryozkin-2 wrote: Hi Please try CXFJaxrsNonSpringServlet :

JAX RS - how to publish endpoint using cxf

2010-01-26 Thread SaravananRamamoorthy
Hi Experts, Could anyone please explain how to publish JAX RS endpoint using cxf without spring. I can able to run the application using JAXRSServerFactoryBean using cxf in java. Please suggest me when deploying as a war file , how to publish these JAX-RS files when load on start up. Regards