JAX-RS adding bean ID in context throws null pointer

2009-03-10 Thread hanasaki jiji
Deployment is a WAR file. For some reason the context is throwing a null pointer when the restful resource bean is setup with an ID. Any ideas why and resolution?The only thing that comes to mind is that the Impl class is not found in the classpath however it has been validated to exist

Re: Are properties not resolved in http:conduit

2009-03-10 Thread Olivier Billard
Thank you for you answer, Dan. The problem is trickier, as the configuration works with HTTP (I can pass through the corporate proxy), and not HTTPs. With HTTP, Proxy-Authorization and Authorization request headers are already set in the first POST request (see my previous message). But with

Re: Valid Definitions of the encryptionParts in WS-Security

2009-03-10 Thread Mayank Mishra
Lawrence Johnbosco wrote: Hello, I've a security requirement to encrypt only a part of the SOAP body and not the Whole body. All the samples seems to refer only the encryption of Whole Body like this: entry key=encryptionParts value={Element}{

Re: NullPointerException while using wsdl2java with asynchronous binding

2009-03-10 Thread Thomas Sauzedde
I would suggest to attach this description to : http://issues.apache.org/jira/browse/CXF-2054 ... This looks to be the same issue ... Regards Blue Cat wrote : Hi, I followed the instructions on: http://cwiki.apache.org/CXF20DOC/developing-a-consumer.html to generate asynchronous client

Can endpoint wsdl refer to external schemas?

2009-03-10 Thread tekman
Hi folks! Is cxf able to keep references to xsd's in the generated service wsdl, instead of creating all schema types inside the wsdl? Thanks in advance Tor Erik -- View this message in context: http://www.nabble.com/Can-endpoint-wsdl-refer-to-external-schemas--tp22433307p22433307.html Sent

Re: CXF-1997 ?

2009-03-10 Thread nicolas de loof
wsdlOption and Option are there but have no documentation at all :(How to specify a jaxb bindings.xml file ? using dataBinding or nested bindingFiles ? What's the equivalent for -impl and -client command line args ? Maven users will expect the generated site to provided all parameters

XML Validation on Power Hardware with IBM's JVM 1.5

2009-03-10 Thread Adrian C
I have a strange issue going on Power Hardware with IBM's JVM 1.5 (SR3) that I cannot reproduce on x86 / with Sun's JVM. We have a web service exposed over http local transport. When we send a message over http the message is accepted processed successfully. If we send a subsequent messages

Re: Nexus, Hudson, and CXF snapshots deploys....

2009-03-10 Thread Daniel Kulp
I don't hear any objection so I'm going to enable this.Nightly snapshots it is. :-) Dan On Fri March 6 2009 11:13:43 am Daniel Kulp wrote: They've recently setup the hudson instances to allow them to deploy snapshots to the Nexus instance using a special snapshot account. Thus, we

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
I just found this message from last month... How did you get the SOAPAction header thing to work in the end? I have the same problem as you had -- I'm doing this in the code: rc.put( BindingProvider.SOAPACTION_URI_PROPERTY, string containing soap action ); rc.put(

Re: Sending XML payload without encoding it

2009-03-10 Thread xbranko
Andrew Clegg-2 wrote: I just found this message from last month... How did you get the SOAPAction header thing to work in the end? I have I couldn't get the action to appear either, so finally this is what I ended up with: try { String xmlPayload = yourXML.../yourXML;

Re: Sending XML payload without encoding it

2009-03-10 Thread xbranko
Forgot to mention that yourXML should be enclosed in the SOAP envelope: String envOpen = env:Envelope xmlns:env=\http://schemas.xmlsoap.org/soap/envelope/\\n + xmlns:xs=\http://www.w3.org/2001/XMLSchema\\n; +

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
I don't get it... How does building the XML payload differently mean you get a SOAPAction header? Or do you mean, when you do it this way, you don't need a SOAPAction header? In my case, I absolutely need a SOAPAction header matching the WSDL, because it's some weird Perl service implementation,

Re: Sending XML payload without encoding it

2009-03-10 Thread xbranko
Andrew Clegg-2 wrote: I don't get it... How does building the XML payload differently mean you get a SOAPAction header? Or do you mean, when you do it this way, you don't need a SOAPAction header? Sorry I couldn't help you. In my case just passing the unencoded XML made it work --

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
Branko, thanks for your help, I've got a theory about what might be causing this. CXF gurus -- I've noticed that the request context in BindingProviderImpl is stored in a ThreadLocal. I'm adding something to a DispatchImpl's request context, and then calling its invokeAsync method, therefore

Re: Valid Definitions of the encryptionParts in WS-Security

2009-03-10 Thread Lawrence Johnbosco
Thanks for the sample. That did the trick. On Tue, Mar 10, 2009 at 6:45 AM, Mayank Mishra mayank...@gmail.com wrote: Lawrence Johnbosco wrote: Hello, I've a security requirement to encrypt only a part of the SOAP body and not the Whole body. All the samples seems to refer only the

Re: How to avoid to generate hard coded wsdl file reference - wsdl2java

2009-03-10 Thread RayKnight
Using CXF 2.1.4 and the maven plugin for wsdl2java I add the wsdlLocation flag with a value of META-INF/wsdl. This causes a BUILD ERROR with a java.lang.NullPointerException. Removing the wsdlLocation flag and the client builds correctly. I also tried using a value of

WS-Security interop with WCF

2009-03-10 Thread Wolf, Chris (IDEAS)
Are there examples of CXF interoperating with WCF clients? Specifically, I'm interested in encryption of both request and repsonse, preferably with the option to only encrypt parts (which, according to a post from today, seems possible, thanks for that) However we need such a secure service to

Re: WS-Security interop with WCF

2009-03-10 Thread Bryan Kearney
Wolf, Chris (IDEAS) wrote: Are there examples of CXF interoperating with WCF clients? Specifically, I'm interested in encryption of both request and repsonse, preferably with the option to only encrypt parts (which, according to a post from today, seems possible, thanks for that) However we

CXF Restful example source code and howto... missing files and code in interfaces?

2009-03-10 Thread hanasaki jiji
http://cwiki.apache.org/CXF20DOC/jax-rs.html is there a complete download of the project someplace? *** Noticed there is no class Customers nor Product *** What is the definition that results in the following output for Customer and Customers? GET http://foobar.com/api/customers customers

Re: How to avoid to generate hard coded wsdl file reference - wsdl2java

2009-03-10 Thread Daniel Kulp
On Tue March 10 2009 3:10:20 pm RayKnight wrote: Using CXF 2.1.4 and the maven plugin for wsdl2java I add the wsdlLocation flag with a value of META-INF/wsdl. This causes a BUILD ERROR with a java.lang.NullPointerException. Removing the wsdlLocation flag and the client builds correctly. I

Re: WS-Security interop with WCF

2009-03-10 Thread Daniel Kulp
It can be done with 2.1.x, but it requires quite a bit more work on your part to setup the WSS4J interceptors and mapping policies into wss4j properties and a vice-versa. If you look at the wssec10 stuff in the sandbox/interopfest:

Re: CXF-1997 ?

2009-03-10 Thread Daniel Kulp
On Tue March 10 2009 9:27:38 am nicolas de loof wrote: wsdlOption and Option are there but have no documentation at all :(How to specify a jaxb bindings.xml file ? using dataBinding or nested bindingFiles ? What's the equivalent for -impl and -client command line args ? Maven users will