Anne Thomas Manes <atmanes <at> gmail.com> writes: > > The JAX-RPC spec specifies that xs:date maps to Calendar, and Axis > follws the spec. > > You can create your own type and map it to Date, or you can pass the > data as a string. > > Anne > > On 9/7/06, Arvind.Bir <at> wellsfargo.com <Arvind.Bir <at> wellsfargo.com> wrote: > > ..... > > > > After axis is done with the message handling, we get the date as instance of > > Date. But the actual date we get is 2007-03-05 as internally Calendar must > > be lenient and calculated date accordingly. > > > > But this is undesired option in our application, we need to throw error if > > invalid date is passed, in other words, we don't want axis to be lenient > > while creating the instance from the passed date. > > > > Any suggestions, other than following? > > > > - Convert the datatype from xs:date to string in schema > > > > Arvind Bir > > >
We just encountered the same issue, but cannot currently modify our SOAP interface anymore as our system is already in production. It is a pity that the standard "lenient" behaviour(via is/setLenient()) of the "Calendar" class is not configurable in the AXIS framework. Are there other solutions, as we cannot control some of the external systems issuing calls to our SOAP interface? Pierre-Emmanuel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
