RE: jaxb and namespaces

2010-12-01 Thread Jason Chaffee
Another problem with this solution is that will add the define root namespaces for all xml returned by all services even if those services will never use those namespacesvery clumsy, IMO. -Original Message- From: Jason Chaffee [mailto:jchaf...@ebates.com] Sent: Wed 12/1/2010 8:49

RE: jaxb and namespaces

2010-12-01 Thread Jason Chaffee
Found a solution by creating My own XMLProvider that overrides the createMarshaler method and sets the "com.sun.xml.bind.namespacePrefixMapper" on the marshaler. Would have preferred a way to do this with annotations, while clunky, it does work. Jason -Original Message- From: Jason Ch

Re: Installation location

2010-12-01 Thread Benson Margulies
No special recommendation. I put it in /opt/apache-cxf-whatever, but /usr/local/apache-cxf-whatever would work just the same. Or just a directory in your homedir. Linux doesn't have any conventions that make it advantageous to put it anyplace in particular. On Wed, Dec 1, 2010 at 9:34 PM, Robe

Installation location

2010-12-01 Thread Robert Liguori
Where is the recommended place to install CXF on a Linux machine? Thanks!

jaxb and namespaces

2010-12-01 Thread Jason Chaffee
I am using jaxrs and I have several namespaces being used in a single service. Currently, all of those namespaces are being output inline in each element. This is adding a lot of characters to the total size of the document. Does anyone know of a way to force namespaces to be defined in the root

Re: Security

2010-12-01 Thread Juan Pablo Pizarro
Daniel, I send you the wsdl. I write some code (from an example). I'm going in the correct way?, I mean, now I have a "no certificate for user ..." and it's obviusly that is the keystore, but.. my code is correct?. Thanks!! SpringBusFactory bf = new SpringBusFactory(); UR

Re: How to get/pass a service reference?

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 3:37:26 pm Guy Pardon wrote: > Hi, > > Just wondering: is there an easy and universally supported way of passing a > reference to a service? I know WS-A EPRs exist, but is that it or am I > missing something? > > If EPR: how can a service in JAX-WS (or CXF if not sta

Re: How to get/pass a service reference?

2010-12-01 Thread Sergey Beryozkin
Hi I guess you can get WebServiceContext injected and get a request URI from HttpServletRequest. You can then return it as is or may be use W3CEndpointReferenceBuilder to construct an EPR from this URI. cheers, Sergey On Wed, Dec 1, 2010 at 8:37 PM, Guy Pardon wrote: > Hi, > > Just wondering:

How to get/pass a service reference?

2010-12-01 Thread Guy Pardon
Hi, Just wondering: is there an easy and universally supported way of passing a reference to a service? I know WS-A EPRs exist, but is that it or am I missing something? If EPR: how can a service in JAX-WS (or CXF if not standardized) get an EPR reference to itself? Thanks Guy

Re: Nonce encoding

2010-12-01 Thread FelipeGC
Thanks for the response Daniel, but how can I told WSS4JOutInterceptor not to use Base64 encoding for the 'Nonce'? Regards, Felipe -- View this message in context: http://cxf.547215.n5.nabble.com/Nonce-encoding-tp3288305p3288358.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Nonce encoding

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 2:52:12 pm FelipeGC wrote: > Hi all! > > I'm writing a client application that needs to authenticate in the server > using WSS Username Token Profile. The password must be encrypted unsing the > password digest as described in the specification: Base64 ( SHA-1 ( nonce

RE: 2.3.1 status?

2010-12-01 Thread Gary Gregory
> -Original Message- > From: Daniel Kulp [mailto:dk...@apache.org] > Sent: Sunday, November 28, 2010 13:12 > To: users@cxf.apache.org > Cc: Jason Pell > Subject: Re: 2.3.1 status? > > On Thursday 25 November 2010 9:01:34 pm Jason Pell wrote: > > Hi, > > > > Is 2.3.1 still expected to be re

Nonce encoding

2010-12-01 Thread FelipeGC
Hi all! I'm writing a client application that needs to authenticate in the server using WSS Username Token Profile. The password must be encrypted unsing the password digest as described in the specification: Base64 ( SHA-1 ( nonce + created + password ) ). For that purpose I'm using the WSS4JOu

Re: Interceptors: How to handle an unknown request?

2010-12-01 Thread Manoel Farrugia
I am not restricted to handleFault only. I want to redirect any wrong methods to getGreeting() method. On Wed, Dec 1, 2010 at 8:07 PM, Daniel Kulp wrote: > On Wednesday 01 December 2010 5:49:41 am Manoel Farrugia wrote: > > Something like this: > > > > public void handleFault(Message message) {

Re: IOException versus Fault for nobody home?

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 9:39:01 am Benson Margulies wrote: > If the HTTP server is there, but the CXF servlet is not answering, a > JAX-WS client proxy throws an IOException instead of a Fault. To be > exact, ClientCallback.get throws an ExecutionException with an > IOException cause instead

Re: Parallel Web Service Requests with different configurations?

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 4:26:22 am Jürgen CXF User wrote: > Hello, > I want to know if it is possible to send SOAP web service request parallel > with different configurations. With different configuration I mean one > request with reliable messaging protocol and the other request un-reliable

Re: Interceptors: How to handle an unknown request?

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 5:49:41 am Manoel Farrugia wrote: > Something like this: > > public void handleFault(Message message) { > System.out.println("--FALLTT---"); > > String path = (String)message.get(Message.PATH_INFO); > String basePath = (Stri

Re: Security

2010-12-01 Thread Daniel Kulp
On Monday 29 November 2010 5:28:37 pm Juan Pablo Pizarro wrote: > Hello, I'm trying to call a web service that uses certificates ( > http://wss.aduanas.gub.uy/LuciaWsSecurity/Stock.svc?wsdl). Can you guys > send me a tutorial to do that? We don't have access to that WSDL. > In this project I

Re: Soap Intermdiaries and CXF

2010-12-01 Thread Daniel Kulp
On Wednesday 01 December 2010 12:54:39 pm Christian Schneider wrote: > In CXF you could adapt the example give in the mail from devakatiyar to > achieve the same. > Attaching the interceptor to a CXF endpoint is much easier than setting > up camel and cxf. The downside is that interceptors in > CXF

Re: Soap Intermdiaries and CXF

2010-12-01 Thread Christian Schneider
This sounds like you want a generic interceptor that filters and logs all messages. Basically this is a great job for apache camel but it would mean having another framework in your stack. In camel you can use an expression like: from("jetty://server/service") .bean(filterbean) .to("direct:cxfe

IOException versus Fault for nobody home?

2010-12-01 Thread Benson Margulies
If the HTTP server is there, but the CXF servlet is not answering, a JAX-WS client proxy throws an IOException instead of a Fault. To be exact, ClientCallback.get throws an ExecutionException with an IOException cause instead of a Fault cause.

Re: Soap Intermdiaries and CXF

2010-12-01 Thread Maatari
Thank you guys for your answers. Actually, I need to manipulate and see the content of the message. Basically, to cut the story short the idea is that, the intermediaries will have the responsibility to check the content of the message and analyze the semantic implication of each message t

Re: Issue with Json Namespace in POST/PUT

2010-12-01 Thread senthil.arumugam
http://cxf.547215.n5.nabble.com/file/n3287570/json-sample.zip json-sample.zip Missed out to attach with the previous message. Sorry. -- View this message in context: http://cxf.547215.n5.nabble.com/Issue-with-Json-Namespace-in-POST-PUT-tp3276515p3287570.html Sent from the cxf-user mailing list

Re: Issue with Json Namespace in POST/PUT

2010-12-01 Thread senthil.arumugam
Hi Sergey, Please find the attached sample maven project, it is been developed to reproduce the issue I am facing. I have included the input json and xml, POST/PUT on which you can reproduce the bug I am facing. On giving the array specification (i.e., square brackets), the input instance of ob

Re: Soap Intermdiaries and CXF

2010-12-01 Thread devkatiyar
Hi , I think you can Look at example in below link . http://cxf.apache.org/docs/service-routing.html -- View this message in context: http://cxf.547215.n5.nabble.com/Soap-Intermdiaries-and-CXF-tp3287079p3287254.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Interceptors: How to handle an unknown request?

2010-12-01 Thread Manoel Farrugia
Something like this: public void handleFault(Message message) { System.out.println("--FALLTT---"); String path = (String)message.get(Message.PATH_INFO); String basePath = (String)message.get(Message.BASE_PATH); String query = (String)message.get(Mes

Parallel Web Service Requests with different configurations?

2010-12-01 Thread Jürgen CXF User
Hello, I want to know if it is possible to send SOAP web service request parallel with different configurations. With different configuration I mean one request with reliable messaging protocol and the other request un-reliable. I tested that already but I recognized that each time I send out an r

RE: XmlID & XmlIDREF

2010-12-01 Thread Ivan Vitoria Sanchez
Sorry, CXF 2.3.0 and JAXBDataBinding Ivan Vitoria Sanchez Districte 22@ - Complexe Ecourban - Edifici Blau C / Almogàvers 119-123, 3º 4ª - 08018 Barcelona Tel. 93 452 02 65 Fax. 93 451 35 42 -Mensaje original- De: Benson Margulies [mailto:bimargul...@gmail.com] Enviado el: martes, 30