Accessing secure web service from .NET client

2009-07-02 Thread Savitha Holla
I have a sample Web Service using Apache CFX and I have added security to the web service using X.509 Certificate as given in http://cwiki.apache.org/CXF20DOC/ws-security.html . Does anyone know how to develop a .NET client to access this secured web service by making use of the key generated.

Re: Security in Jaxws/Jaxrs

2009-07-02 Thread Kynan Fraser
Hi Sergey, As a follow up to this, i'm trying to implement a basic http filter using a request handler. Is there a way to obtain the http auth info? I can't find it on any of the contexts or message. Is there an example of a basic auth client and a request handler or custom invoker handling the

Re: logging documentation bug

2009-07-02 Thread Sergey Beryozkin
Hi are you still seeing cxf:logging/ not working ? I posted an update yesterday, see this example : http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/resources/jaxrs/WEB-INF/beans.xml look at 'bookservice3' endpoint, note that a 'cxf' has to be bound to a namespace declaration, see

Re: Security in Jaxws/Jaxrs

2009-07-02 Thread Sergey Beryozkin
Hi Kynan here's a sample CustomInvoker : http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/CustomJAXRSInvoker.java At the moment filters/invokers can not get contexts like SecurityContext injected so it has to be created manually. Or you can just

Re: Problem with matrix params, works with one, but not with two (or more) params

2009-07-02 Thread Sergey Beryozkin
Hi I think ServletController may not be handling URIs with multiple matrix parameters attached to the last path segment, even the single parameter was not working on the last segment - I'll look into it asap Is it possible for you to attach multiple matrix parameters to one of the previous

Re: logging documentation bug

2009-07-02 Thread Nathaniel Auvil
i have it working now. Thanks for the concern. On Thu, Jul 2, 2009 at 5:44 AM, Sergey Beryozkin sbery...@progress.comwrote: Hi are you still seeing cxf:logging/ not working ? I posted an update yesterday, see this example :

Re: logging documentation bug

2009-07-02 Thread Sergey Beryozkin
Great. By the way, I've just applied a patch from Eamonn Dwyer for features be supported by restful clients too... cheers, Sergey - Original Message - From: Nathaniel Auvil nathaniel.au...@gmail.com To: users@cxf.apache.org Sent: Thursday, July 02, 2009 12:53 PM Subject: Re: logging

Re: Problem with matrix params, works with one, but not with two (or more) params

2009-07-02 Thread Sergey Beryozkin
Hi, I have few tests which post URIs like this one : POST /test/services/rest/bookstore/books/378/subresource2/CXF%20;n3=Acti;n33=on%20?n2=in+ And things are working fine. In fact, I tried your method too with WebClient (at the moment it can't handle PathSegments, so I juts introduced two

Re: RESTFUL Web service returning Image

2009-07-02 Thread Sergey Beryozkin
Hi Perhaps you might want to have a method which returns say java awt image and have @Produces(image/gif) (or whatever the right media type is) on that method ? There's no default support for serializing Images (perhaps we should do some work here) so you'll also need to register a message body

Re: Internal server error

2009-07-02 Thread Naresh Tallapelli
I am getting the response payload as: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN But in request or response processing I have never seen this Thanks, Naresh On Thu, Jul 2, 2009 at 8:59 PM, Naresh Tallapelli naresh.tallape...@gmail.com wrote: Sorry. Please find the complete stack trace

Re: Internal server error

2009-07-02 Thread Andrew Clegg
These are all client-side errors. You need to tail the server's logfiles while you make a request in order to see what's happening on the server side. There's no way to tell what's going on from these alone. The client isn't actually doing anything wrong -- it's correctly failing to parse an HTML

Re: Internal server error

2009-07-02 Thread Naresh Tallapelli
Sorry. Please find the complete stack trace before, barring some of our code: INFO: Inbound Message Encoding: ISO-8859-1 Headers: {content-type=[text/html; charset=iso-8859-1], connection=[close], Date=[Thu, 02 Jul 2009 13:12:15 GMT], Content-Length=[535]} Messages:

Did dependencies change for version 2.2.2?

2009-07-02 Thread Bruno Melloni
I was attempting to follow the A simple JAX-WS servicehttp://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html How-To. Some JAR files seem to no longer be in the lib folder of the distribution. For example: jaxws-api-2.1.jar and stax-api-1.0.1.jar. 1) Are these JARs replaced by

RE: Did dependencies change for version 2.2.2?

2009-07-02 Thread bharath thippireddy
I think there are the jars that replaced them. geronimo-jaxws_2.1_spec-1.0.jar geronimo-stax-api_1.0_spec-1.0.1.jar thanks and regards, Bharath -Original Message- From: Bruno Melloni [mailto:bruno.mell...@chickasaw.net] Sent: Thursday, July 02, 2009 12:22 PM To: users@cxf.apache.org

Re: Problem with matrix params, works with one, but not with two (or more) params

2009-07-02 Thread Gabriel Guardincerri
Hi Sergey, Thanks again for your quick response. We are using the latest version, 2.2.2, so not sure what's going on. We are changing to another approach, trying to have simpler URLs. Thank you anyway, Gabriel Sergey Beryozkin-2 wrote: Hi, I have few tests which post URIs like this

Help with 'Hello World' Writing a service with Spring' please

2009-07-02 Thread Bruno Melloni
I attempted to follow the How-To for writing a HelloWorld service with Spring. It is obvious that once you figure out the secrets CXF makes writing services very easy. Unfortunately I a missing something because I get some strange uninformative error messages (shown at the bottom). I suspect

Re: Help with 'Hello World' Writing a service with Spring' please

2009-07-02 Thread Glen Mazza
http://www.jroller.com/gmazza/entry/creating_a_wsdl_first_web1 ? bmelloni wrote: I attempted to follow the How-To for writing a HelloWorld service with Spring. It is obvious that once you figure out the secrets CXF makes writing services very easy. Unfortunately I a missing something

Re: Accessing secure web service from .NET client

2009-07-02 Thread Mayank Mishra
Savitha Holla wrote: I have a sample Web Service using Apache CFX and I have added security to the web service using X.509 Certificate as given in http://cwiki.apache.org/CXF20DOC/ws-security.html . Does anyone know how to develop a .NET client to access this secured web service by making use

Re: Help with 'Hello World' Writing a service with Spring' please

2009-07-02 Thread Mayank Mishra
I guess looking at the exception what you are getting it seems that your client is not able to connect to the server. I hope the service is up and the right url is being invoked. It is not a jar issue. With Regards, Mayank Bruno Melloni wrote: I attempted to follow the How-To for writing a

RE: Help with 'Hello World' Writing a service with Spring' please

2009-07-02 Thread Bruno Melloni
Please ignore, I found the answer by trial and error: The HOW-TO has an error. When the HowTo specifies the URL for the client call, it is missing the webapp name between the host:port and serviceName pieces. I hope this helps, or even better if it prompts the CXF project to fix that

Sending nonce with user name token from cxf client

2009-07-02 Thread bharath thippireddy
How to Pass the Nonce and Creation headers from the client along with the user name token headers.I do see a discussion on this at the url below .Has someone tried the doing this using the handler?.If yes how do you do it?

Re: Security in Jaxws/Jaxrs

2009-07-02 Thread Kynan Fraser
Hi Sergey, Yes thanks. As I thought, I'd already written the filter to use the HttpHeaders directly but was wondering if there was another preferred/better way. For note: there's a bug in HttpHeadersImpl which cannot handle a header which is a non-empty collection populated with a single null

Jason Laskowski/HEI/AHC is out of the office.

2009-07-02 Thread jason . laskowski
I will be out of the office starting 07/02/2009 and will not return until 07/06/2009. I will respond to your message when I return.

RE: logging documentation bug

2009-07-02 Thread Wim Praet
Hi Sergey, yes it's working correctly now. Don't know why it didn't work anymore, I already had the cxf namespace declaration, but on separate lines... maybe that was the culprit. However, I configured logging on the cxf:bus, not on a single jaxrs:server instance. Thanks for your example, the