Results 1 to 2 of 2

Thread: SOAP returning xsDate type '0001-01-01', shows as '01/01/2001' in struct

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Adelaide, South Australia
    Posts
    2,863

    Default SOAP returning xsDate type '0001-01-01', shows as '01/01/2001' in struct

    Hi

    I believe this is a bug that must be fixed.

    It is hidden in the ValueTreeDeserializeParameter command.
    But basically it renders a
    <replacedFrom>0001-01-01</replacedFrom>
    as
    ...replacedFrom = 01/01/2001

    if I set
    Set_Date_Attribute Date4_State to False

    it renders as 01/01/01, but interestingly enough not integer 0 but integer 366

    So can this runtime command please be fixed, that blank dates in the xml result in a blank date in the stuct date member?

    Kind regards
    Marco
    Marco Kuipers
    DataFlex Consultant
    28 IT Pty Ltd - DataFlex Specialist Consultancy
    DataFlex Channel Partner for Australia and Pacific region
    Adelaide, South Australia
    www.28it.com.au

  2. #2
    Join Date
    Feb 2009
    Location
    Adelaide, South Australia
    Posts
    2,863

    Default Re: SOAP returning xsDate type '0001-01-01', shows as '01/01/2001' in struct

    Until this bug is fixed.

    The ONLY workaround I have been able to find is to:

    Generate the class with clearing the checkbox for the undocumented option
    “Serialize XML AnyType struct/array members as strings (uncheck for legacy behaviour).”

    Which as far as I can see actually should read “Render XML and return Struct (uncheck to return XML handle)”.

    Then manually render the XML...

    So no fun, but when you are stuck...

    Cheers
    Marco
    Marco Kuipers
    DataFlex Consultant
    28 IT Pty Ltd - DataFlex Specialist Consultancy
    DataFlex Channel Partner for Australia and Pacific region
    Adelaide, South Australia
    www.28it.com.au

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •