2011/11/21 Daniel Kulp <dk...@apache.org>: > > > This all sounds OK to me. However, once it's in place on trunk, please ping > me to let me know and I'll run the TCK against it. Modifications that affect > the JAX-WS behavior generally scare me and I like to verify with the TCK if > possible. :-) >
Hi Dan, Okay. The code is in trunk. Setting the runtime property "jaxws.provider.interpretNullAsOneway" to Boolean.TRUE will activate this behavior (please take a look at the test cases). I picked this property name because Axis2 was using it for the same purpose. I don't know if we should be using another prop name under org.apache.cxf or something outside of jaxws something, as this is not a standard jaxws property. On the other hand, I thought it would be easier for the users to remember the same property name which is already used in Axis2. Regarding BP's relative path parsing, I think I am still having this problem with the current 0.4.1-SNAPSHOT. I see your one line fix there and the systemId is correctly passed to the StreamSource. So, it's strange. When I apply the same one line fix to 0.3.1 version, it is working fine. I think I have to look into it deeper tomorrow. Do you have some idea? Thanks. regards, aki > > Dan > > > On Monday, November 21, 2011 6:09:03 PM Aki Yoshida wrote: >> Hi, >> as I briefly mentioned this in today's IRC, I created a ticket >> CXF-3926 to fix or improve the current behavior. >> >> jaxws 2.2 section 5.1.1 states: >> "When an invoke method returns null, it is considered that no response >> needs to be sent by service." >> >> CXF currently does not support this dynamic behavior but relies on the >> exchange's MEP information (req-resp or oneway) to decide whether to >> send no response. And the problem is that CXF is throwing an exception >> when a null is returned while the MEP is not set as oneway, as it >> tries to serialize the null object in its response/outbound >> processing. >> >> I am intending to introduce this dynamic behavior by slightly >> modifying JAXWSMethodInvoker's invoke method to switch to oneway in >> this case and set the correct response code. In addition, I am >> providing a new runtime property for jaxws to enable or disable this >> behavior. >> >> Please let me know if you have objections or alternative approaches. >> >> Thanks. >> regards, aki > -- > Daniel Kulp > dk...@apache.org - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com >