RE: Schema Validation in CXF

2008-05-21 Thread Heemskerk, Marcel (M.)


Thanks, the answer is:






By the way, where do i find all the other JAX WS properties?





-Oorspronkelijk bericht-
Van: Daniel Kulp [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 15 mei 2008 17:48
Aan: dev@cxf.apache.org
Onderwerp: Re: Schema Validation in CXF




See the wsdl_first sample in the distribution.   It turns on  
validation for both client and server.

Dan


On May 15, 2008, at 10:07 AM, Heemskerk, Marcel (M.) wrote:

>
> It turns out XSD validation is turned off by default in CXF. How do i
> turn it on, to generate a SOAP fault when the XML is not schema 
> compliant?
>
> I expect it is implemented in some Interceptor but i could not find 
> one. Any help?
>
>
> Grtzzz,
> Marcel
>

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog






Re: svn commit: r658770 - in /cxf/branches/2.0.x-fixes: ./ api/src/main/java/org/apache/cxf/tools/common/ rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/ tools/wsdlto/databinding/jaxb/src/

2008-05-21 Thread Glen Mazza
BTW, if I want to make changes to the latest/nightly of the 2.0.x
branch, I need to use the 2.0.x-fixes tag and *not* the 2.0.6 one,
correct?


2008-05-21 [EMAIL PROTECTED] wrote:
> Author: dkulp
> Date: Wed May 21 10:26:37 2008
> New Revision: 658770
> 
> ==
> ---
> cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
>  (original)
> +++
> cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
>  Wed May 21 10:26:37 2008
> @@ -403,7 +403,7 @@
>  if (def != null && schemas != null) {
>  javax.wsdl.Message msg =
> def.getMessage(header.getMessage());
>  if (msg != null) {
> -addOutOfBandParts(bop, msg, schemas, isInput);
> +addOutOfBandParts(bop, msg, schemas, isInput,
> header.getPart());


Any serious risk of this NPE'ing?

Regards,
Glen




Re: svn commit: r658770 - in /cxf/branches/2.0.x-fixes: ./ api/src/main/java/org/apache/cxf/tools/common/ rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/ tools/wsdlto/databinding/jaxb/src/

2008-05-21 Thread Daniel Kulp


On May 21, 2008, at 7:22 PM, Glen Mazza wrote:


BTW, if I want to make changes to the latest/nightly of the 2.0.x
branch, I need to use the 2.0.x-fixes tag and *not* the 2.0.6 one,
correct?


Yep.   Just checkout:
http://svn.apache.org/repos/asf/cxf/branches/2.0.x-fixes/
and make any changes.

For the most part, however, if the fixes/changes should be applied to  
trunk as well, it's easier to just to do them on trunk and use  
svnmerge.py to merge them over to 2.0.x.  Or, wait for me to merge  
them over.  :-)



---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog