CXF - JAX-WS Configuration With Spring

2009-10-16 Thread Spam
With 2.2.4 it works fine :-) I still mustn't add these imports: import resource=classpath:META-INF/cxf/cxf.xml / import resource=classpath:META-INF/cxf/cxf-extension-soap.xml / import resource=classpath:META-INF/cxf/cxf-servlet.xml / But I'm now able (with 2.2.4) to configure

Re: Multiple Custom Providers

2009-10-16 Thread Sergey Beryozkin
Hi But When Sync Service uses PolicyService using the Client API, I am getting the following error even though I am registering reader within the sync service. SEVERE: .No message body reader found for class : class biz.neustar.panjika.policy.dto.ProfilePolicy, ContentType : {1}. I'll fiix

Re: Multiple Custom Providers

2009-10-16 Thread rkam
Also, I get a similar message that 'no message body reader found' when I am registering more than 2 providers for custom types. I simply end up using a different end point..i mean more jaxrs:server for those other types. I am using xmlbeans and I have reader/writer provider for every type in

Re: Multiple Custom Providers

2009-10-16 Thread rkam
jaxrs:client solution that you have provided worked perfectly fine. I had to do a NP check on the UriInfo Now, I get the colocation performance benefit. rkam -- View this message in context: http://www.nabble.com/Multiple-Custom-Providers-tp25916823p25926686.html Sent from the cxf-user

Re: Multiple Custom Providers

2009-10-16 Thread Sergey Beryozkin
Hi jaxrs:client solution that you have provided worked perfectly fine. great... I had to do a NP check on the UriInfo can you give me some more info please ? Is it not injected into your custom reader when the jaxrs client starts processing the response ? Now, I get the colocation

Re: CXF - JAX-WS Configuration With Spring

2009-10-16 Thread Daniel Kulp
On Fri October 16 2009 5:01:05 am Spam wrote: With 2.2.4 it works fine :-) I still mustn't add these imports: import resource=classpath:META-INF/cxf/cxf.xml / import resource=classpath:META-INF/cxf/cxf-extension-soap.xml / import resource=classpath:META-INF/cxf/cxf-servlet.xml /

Re: Multiple Custom Providers

2009-10-16 Thread rkam
No, UriInfo was not set and was giving null pointer .. So I had to check Null Pointer before I used it I was under the assumption that ClientAPI uses colocation .. may be not yet. But for intra service messaging we definitely want colocation rather than go down the tcp stack. Also, can you

Re: Multiple Custom Providers

2009-10-16 Thread Sergey Beryozkin
No, UriInfo was not set and was giving null pointer .. So I had to check Null Pointer before I used it I'd really appreciate if you could give more infor about it (send me some code please showing how UriInfo is declared, is it injected as a filed, etc). I have a WebClient test which uses

Re: Multiple Custom Providers

2009-10-16 Thread rkam
I declared as follows in my class. ui doesn't get set when called thru jaxrs:client but works fines otherwise. private UriInfo ui; @Context public void setUriInfo(UriInfo ui) { this.ui = ui; } Also, when a jaxrs server contains multiple

jax-rs byte stream result

2009-10-16 Thread Benson Margulies
This may win some sort of a prize for a simple question. I want to define a JAX-RS function where the function provides, as a response, the entire content of the response plus the content type. I might, for example, be returning an entire CSV spreadsheet.

Re: Multiple Custom Providers

2009-10-16 Thread Sergey Beryozkin
ok, I'll investigate the problem with setting UriInfo in readers used as part of processing jaxrs:client invocations... It ignores profilePolicyReaderProvider for a CustomType ProfilePolicy and gives me an error that no message reader is found. I'm still confused about this one. Does the

Re: jax-rs byte stream result

2009-10-16 Thread Sergey Beryozkin
Hi Benson You might want to return a StreamingOutput and have @Produces(CSV type). Or return it as a multipart/mixed, and have @Multipart annotation on the method level which will specify the type for the root type cheers, Sergey bimargulies wrote: This may win some sort of a prize for a

Re: WS-Security how the server select a certificate

2009-10-16 Thread Daniel Kulp
Basically, the way this is supposed to work (with wss4j right now, maybe changed in the future) is that WSS4J will verify the signature using whatever it finds in the keystore (or elsewhere). After signature validation occurs, it then calls the verifyTrust method to make sure the cert that

Getting a reference to an Endpoint to a running service

2009-10-16 Thread Benson Margulies
This came up while testing a new feature, but I thought it might be generally useful, so I'd pose it here. Say you wanted to grab the Endpoint for a service from inside the implementation. It looked to me as if I could (a) ask for injection of a WebServiceContext, (b) from any WebMethod, ask the

Re: jax-rs byte stream result

2009-10-16 Thread Benson Margulies
Can I dynamically state the content type? I definitely don't want multipart. On Fri, Oct 16, 2009 at 5:07 PM, Sergey Beryozkin sergey.beryoz...@iona.com wrote: Hi Benson You might want to return a StreamingOutput and have @Produces(CSV type). Or return it as a multipart/mixed, and have