JAXB pretty much ignores anything that doesn't look right and just returns
null. The best option is to turn on schema validation which would catch
this.
Dan
On Tuesday 06 January 2009 8:38:59 am tremek wrote:
> Hi.
> I have my WebService like this.
>
> @WebService(endpointInterface = "service.Test",serviceName = "TestService")
> public class TestImpl implements Test
> {
> public Integer sayInteger(Integer text)
> {
>
> return text;
> }
>
> }
>
> It have only one function sayInteger(Integer text). If i call this function
> from exemple SoapUi with parameter "12" it works fine, but if i call with
> "12aa" i get from function null and any warning.
> My question. Is possible to set in cxf to check the function parameter, if
> is require object Integer that cxf throw some exception or somthing when
> the parameter is not object of integer?
>
> Thanks.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog