Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] Re: dateTime

Expand Messages
  • Josh Narins
    I was not conscious of dated (1999 and 2001) schemas. Should I explicitly set 2001, if it works now, with that? Thank you, -Josh, at major mega-corp ...
    Message 1 of 6 , Jan 8, 2003
    • 0 Attachment
      I was not conscious of dated (1999 and 2001) schemas.

      Should I explicitly set 2001, if it works now, with
      that?

      Thank you,

      -Josh, at major mega-corp

      --- Paul Kulchenko <paulclinger@...> wrote:
      > Hi Xc,
      >
      > > Sorry: this last solution does NOT work: the
      > message is correect,
      > > but
      > > cannot be properly deserialized (isn't dateTime
      > defined in 1999
      > > schema?).
      >
      > No wonder ;). dateTime doesn't exist in 1999 Schema,
      > there is
      > similar-looking timeInstant for the same purpose.
      > You either need to
      > use one (and it will be serialized as dateTime if
      > you switch to 2001
      > Schema later), or you need to use 2001 Schema and
      > dateTime type (not
      > xsd:dateTime):
      >
      > # XML Schema 1999 by default; may change in future
      > versions
      >
      > $self->{SubmitTime} = SOAP::Data->type(timeInstant
      > => shift);
      >
      > -- or --
      >
      > use SOAP::Lite
      > xmlschema => 2001;
      >
      > ....
      >
      > $self->{SubmitTime} = SOAP::Data->type(dateTime =>
      > shift);
      >
      > Best wishes, Paul.
      >
      > --- "starnuto_di_topo <starnuto_di_topo@...>"
      > <starnuto_di_topo@...> wrote:
      > > --- In soaplite@yahoogroups.com,
      > "starnuto_di_topo" wrote:
      > > [...]
      > > > Trying to find a solution on my own, what do you
      > think about
      > > theese:
      > > > $self->{SubmitTime} = SOAP::Data
      > > > ->attr({'xmlns:DateTimeNameSpace'
      > > >
      > =>'http://www.w3.org/2001/XMLSchema'})
      > > > ->type('DateTimeNameSpace:dateTime')
      > > > ->value(shift)
      > > >
      > > > or maybe better:
      > > >
      > > > $self->{SubmitTime} = SOAP::Data
      > > > ->type('xsd:dateTime')
      > > > ->value(shift)
      > >
      > > Sorry: this last solution does NOT work: the
      > message is correect,
      > > but
      > > cannot be properly deserialized (isn't dateTime
      > defined in 1999
      > > schema?).
      > >
      > > Cheers,
      > > Xc
      > >
      > >
      > > ------------------------ Yahoo! Groups Sponsor
      > >
      > > To unsubscribe from this group, send an email to:
      > > soaplite-unsubscribe@yahoogroups.com
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      > > http://docs.yahoo.com/info/terms/
      > >
      > >
      >
      >
      > __________________________________________________
      > Do you Yahoo!?
      > Yahoo! Mail Plus - Powerful. Affordable. Sign up
      > now.
      > http://mailplus.yahoo.com
      >


      __________________________________________________
      Do you Yahoo!?
      Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
      http://mailplus.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.