Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4370

Time portion of java.util.Date is missing from SOAP response in Axis2 1.5

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: adb
    • Labels:
      None

      Description

      When a method returns a java.util.Date (or an object containing a java.util.Date), only the date portion is returned in Axis2 1.5:

      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      <ns:getCurrentTimeResponse xmlns:ns="http://ws.apache.org/axis2">
      <ns:return>2009-06-10</ns:return>
      </ns:getCurrentTimeResponse>
      </soapenv:Body>
      </soapenv:Envelope>

      In Axis2 1.4.1, the full date and time was returned:

      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      <ns:getCurrentTimeResponse xmlns:ns="http://ws.apache.org/axis2">
      <ns:return>2009-06-10T16:22:22.622Z</ns:return>
      </ns:getCurrentTimeResponse>
      </soapenv:Body>
      </soapenv:Envelope>

      This change breaks any application that requires the time portion to function correctly.

        Attachments

        1. Server.java
          0.1 kB
          Pétur Runólfsson
        2. services.xml
          0.2 kB
          Pétur Runólfsson
        3. Server-1.4.1.wsdl
          4 kB
          Pétur Runólfsson
        4. Server-1.5.wsdl
          4 kB
          Pétur Runólfsson

        Issue Links

          Activity

            People

            • Assignee:
              sagara Sagara Gunathunga
              Reporter:
              petur Pétur Runólfsson

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment