You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bharath Thippireddy <BT...@primavera.com> on 2008/05/16 21:44:36 UTC

Soap Schema Validation & CXF?

Does CXF support the Soap Message - Schema Validation using the 
@SchemaValidation annotaion on the service provider?

And can we use the SchemaValidationFeature  to do the same on the JAX-WS 
client?

thanks and regards,
Bharath

Re: Soap Schema Validation & CXF?

Posted by Daniel Kulp <dk...@apache.org>.
On Wed March 25 2009 2:35:48 pm dave sinclair wrote:
> Can it be done programatically on the server side? The problem is the
> client doesn't want Spring, they are an ATG shop. So I need to enable
> validation without using the spring config.

Without spring, how are you creating your endpoints?   I assume a subclass of 
CXFNonSpringServlet? Or are you calling Endpoint.publish(...)?

Basically, you need to set the "schema-validation-enabled" property on the 
endpoint.   You CAN do:

Endpoint ep = Endpoint.create(.....);
ep.getProperties().set(.....);
ep.publish(...)

If you are using a ServerFactory, the factory should have properties on it as 
well.

Dan


>
> thanks
>
> dkulp wrote:
> > On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote:
> >> Can this be done programatically on the client side?
> >
> > This should do it:
> >          ((BindingProvider)proxy).getRequestContext().put("schema-
> > validation-enabled",
> >
> > Boolean.TRUE);
> >
> > Dan
> >
> >> thanks,
> >> bharath
> >>
> >> Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:
> >>> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
> >>>> Does CXF support the Soap Message - Schema Validation using the
> >>>> @SchemaValidation annotaion on the service provider?
> >>>>
> >>>> And can we use the SchemaValidationFeature  to do the same on the
> >>>> JAX-WS
> >>>> client?
> >>>
> >>> Those annotations are metro proprietary extensions.   So, no, we
> >>> don't
> >>> support them.
> >>>
> >>> However, you can configure CXF to do schema validation.   Our
> >>> wsdl_first sample does that for both client and server.
> >>>
> >>> Dan
> >>>
> >>>> thanks and regards,
> >>>> Bharath
> >>>
> >>> ---
> >>> Daniel Kulp
> >>> dkulp@apache.org
> >>> http://www.dankulp.com/blog
> >
> > ---
> > Daniel Kulp
> > dkulp@apache.org
> > http://www.dankulp.com/blog

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Soap Schema Validation & CXF?

Posted by dave sinclair <ds...@chariotsolutions.com>.
That is using a Spring configuration of an endpoint. I need to do it without
using Spring.


Andrew Clegg-2 wrote:
> 
> This is a VFAQ: http://cxf.apache.org/faq.html
> 
> 2009/3/25 dave sinclair <ds...@chariotsolutions.com>:
>>
>> Can it be done programatically on the server side? The problem is the
>> client
>> doesn't want Spring, they are an ATG shop. So I need to enable validation
>> without using the spring config.
>>
>> thanks
>>
>>
>> dkulp wrote:
>>>
>>>
>>> On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote:
>>>
>>>> Can this be done programatically on the client side?
>>>
>>> This should do it:
>>>          ((BindingProvider)proxy).getRequestContext().put("schema-
>>> validation-enabled",
>>>
>>> Boolean.TRUE);
>>>
>>> Dan
>>>
>>>
>>>>
>>>>
>>>> thanks,
>>>> bharath
>>>>
>>>> Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:
>>>>
>>>>>
>>>>> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
>>>>>> Does CXF support the Soap Message - Schema Validation using the
>>>>>> @SchemaValidation annotaion on the service provider?
>>>>>>
>>>>>> And can we use the SchemaValidationFeature  to do the same on the
>>>>>> JAX-WS
>>>>>> client?
>>>>>
>>>>> Those annotations are metro proprietary extensions.   So, no, we
>>>>> don't
>>>>> support them.
>>>>>
>>>>> However, you can configure CXF to do schema validation.   Our
>>>>> wsdl_first sample does that for both client and server.
>>>>>
>>>>> Dan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> thanks and regards,
>>>>>> Bharath
>>>>>
>>>>> ---
>>>>> Daniel Kulp
>>>>> dkulp@apache.org
>>>>> http://www.dankulp.com/blog
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>> ---
>>> Daniel Kulp
>>> dkulp@apache.org
>>> http://www.dankulp.com/blog
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Soap-Schema-Validation---CXF--tp17282802p22707541.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> :: http://biotext.org.uk/ ::
> 
> 

-- 
View this message in context: http://www.nabble.com/Soap-Schema-Validation---CXF--tp17282802p22709083.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Soap Schema Validation & CXF?

Posted by Andrew Clegg <an...@nervechannel.com>.
This is a VFAQ: http://cxf.apache.org/faq.html

2009/3/25 dave sinclair <ds...@chariotsolutions.com>:
>
> Can it be done programatically on the server side? The problem is the client
> doesn't want Spring, they are an ATG shop. So I need to enable validation
> without using the spring config.
>
> thanks
>
>
> dkulp wrote:
>>
>>
>> On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote:
>>
>>> Can this be done programatically on the client side?
>>
>> This should do it:
>>          ((BindingProvider)proxy).getRequestContext().put("schema-
>> validation-enabled",
>>
>> Boolean.TRUE);
>>
>> Dan
>>
>>
>>>
>>>
>>> thanks,
>>> bharath
>>>
>>> Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:
>>>
>>>>
>>>> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
>>>>> Does CXF support the Soap Message - Schema Validation using the
>>>>> @SchemaValidation annotaion on the service provider?
>>>>>
>>>>> And can we use the SchemaValidationFeature  to do the same on the
>>>>> JAX-WS
>>>>> client?
>>>>
>>>> Those annotations are metro proprietary extensions.   So, no, we
>>>> don't
>>>> support them.
>>>>
>>>> However, you can configure CXF to do schema validation.   Our
>>>> wsdl_first sample does that for both client and server.
>>>>
>>>> Dan
>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>> thanks and regards,
>>>>> Bharath
>>>>
>>>> ---
>>>> Daniel Kulp
>>>> dkulp@apache.org
>>>> http://www.dankulp.com/blog
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>> ---
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>>
>>
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Soap-Schema-Validation---CXF--tp17282802p22707541.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>



-- 
:: http://biotext.org.uk/ ::

Re: Soap Schema Validation & CXF?

Posted by dave sinclair <ds...@chariotsolutions.com>.
Can it be done programatically on the server side? The problem is the client
doesn't want Spring, they are an ATG shop. So I need to enable validation
without using the spring config.

thanks


dkulp wrote:
> 
> 
> On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote:
> 
>> Can this be done programatically on the client side?
> 
> This should do it:
>          ((BindingProvider)proxy).getRequestContext().put("schema- 
> validation-enabled",
>                                                              
> Boolean.TRUE);
> 
> Dan
> 
> 
>>
>>
>> thanks,
>> bharath
>>
>> Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:
>>
>>>
>>> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
>>>> Does CXF support the Soap Message - Schema Validation using the
>>>> @SchemaValidation annotaion on the service provider?
>>>>
>>>> And can we use the SchemaValidationFeature  to do the same on the
>>>> JAX-WS
>>>> client?
>>>
>>> Those annotations are metro proprietary extensions.   So, no, we  
>>> don't
>>> support them.
>>>
>>> However, you can configure CXF to do schema validation.   Our
>>> wsdl_first sample does that for both client and server.
>>>
>>> Dan
>>>
>>>
>>>
>>>
>>>>
>>>> thanks and regards,
>>>> Bharath
>>>
>>> ---
>>> Daniel Kulp
>>> dkulp@apache.org
>>> http://www.dankulp.com/blog
>>>
>>>
>>>
>>>
>>>
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Soap-Schema-Validation---CXF--tp17282802p22707541.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Soap Schema Validation & CXF?

Posted by Daniel Kulp <dk...@apache.org>.
On May 27, 2008, at 5:48 PM, Bharath Thippireddy wrote:

> Can this be done programatically on the client side?

This should do it:
         ((BindingProvider)proxy).getRequestContext().put("schema- 
validation-enabled",
                                                             
Boolean.TRUE);

Dan


>
>
> thanks,
> bharath
>
> Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:
>
>>
>> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
>>> Does CXF support the Soap Message - Schema Validation using the
>>> @SchemaValidation annotaion on the service provider?
>>>
>>> And can we use the SchemaValidationFeature  to do the same on the
>>> JAX-WS
>>> client?
>>
>> Those annotations are metro proprietary extensions.   So, no, we  
>> don't
>> support them.
>>
>> However, you can configure CXF to do schema validation.   Our
>> wsdl_first sample does that for both client and server.
>>
>> Dan
>>
>>
>>
>>
>>>
>>> thanks and regards,
>>> Bharath
>>
>> ---
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>>
>>
>>
>>
>>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: Soap Schema Validation & CXF?

Posted by Bharath Thippireddy <bt...@primavera.com>.
Can this be done programatically on the client side?

thanks,
bharath

Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:

> 
> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
> > Does CXF support the Soap Message - Schema Validation using the
> > @SchemaValidation annotaion on the service provider?
> >
> > And can we use the SchemaValidationFeature  to do the same on the 
> > JAX-WS
> > client?
> 
> Those annotations are metro proprietary extensions.   So, no, we don't 
> support them.
> 
> However, you can configure CXF to do schema validation.   Our 
> wsdl_first sample does that for both client and server.
> 
> Dan
> 
> 
> 
> 
> >
> > thanks and regards,
> > Bharath
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 

Re: Soap Schema Validation & CXF?

Posted by Bharath Thippireddy <BT...@primavera.com>.
Thanks Dan,No wonder i dint find them under jax-ws packages:).

Daniel Kulp <dk...@apache.org> wrote on 05/16/2008 03:57:16 PM:

> 
> On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
> > Does CXF support the Soap Message - Schema Validation using the
> > @SchemaValidation annotaion on the service provider?
> >
> > And can we use the SchemaValidationFeature  to do the same on the 
> > JAX-WS
> > client?
> 
> Those annotations are metro proprietary extensions.   So, no, we don't 
> support them.
> 
> However, you can configure CXF to do schema validation.   Our 
> wsdl_first sample does that for both client and server.
> 
> Dan
> 
> 
> 
> 
> >
> > thanks and regards,
> > Bharath
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 

Re: Soap Schema Validation & CXF?

Posted by Daniel Kulp <dk...@apache.org>.
On May 16, 2008, at 3:44 PM, Bharath Thippireddy wrote:
> Does CXF support the Soap Message - Schema Validation using the
> @SchemaValidation annotaion on the service provider?
>
> And can we use the SchemaValidationFeature  to do the same on the  
> JAX-WS
> client?

Those annotations are metro proprietary extensions.   So, no, we don't  
support them.

However, you can configure CXF to do schema validation.   Our  
wsdl_first sample does that for both client and server.

Dan




>
> thanks and regards,
> Bharath

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog