tags:

views:

341

answers:

1

when passing a null value for a XMLGregorianCalendar parameter jax-ws does so by ommiting the corresponding xml element. this causes the following excpetion from the server:

SOAPFaultException: date string can not be less than 19 charactors

when handcoding the request and representing the null value by using an empty element:

<web:gueltigVon xsd:null='true' />

everything works as expected. is there a way to tell jax-ws how to present a null value to the server?

A: 

Did you ever find an answer to this? I'm having the same problem.

John
Not really... what we did find out was, that while it is perfectly legal to omit an element to express its "nullness", some soap implementations, including the popular axis do not accept this.
Lutz Müller