#44383 [Com]: PHP DateTime not converted to xsd:datetime

From: Date: Mon, 30 Jun 2008 12:00:57 +0000
Subject: #44383 [Com]: PHP DateTime not converted to xsd:datetime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126112@lists.php.net to get a copy of this message
 ID:               44383
 Comment by:       r dot janssen at keensystems dot eu
 Reported By:      kevin dot craft at gmail dot com
 Status:           Open
 Bug Type:         SOAP related
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

I am, too, looking for a solution for this problem.
I can specify parameters as dateTime type but when generating the WSDL
the generation stops and does nothing.


Previous Comments:
------------------------------------------------------------------------

[2008-05-13 04:40:11] barth at pbx-network dot de

Anyone has a soluiton or workaround for this issue?  How can a
date/time been passed over to a webservice endpoint?

------------------------------------------------------------------------

[2008-03-17 01:17:47] kevin dot craft at gmail dot com

Exactly. The SOAP extension should know what format to output the
DateTime as because it should be specified as a W3C standard somewhere
in the SOAP or XML Schema definition. When the SOAP extension encounters
an xsd:datetime (or related type), it should output the DateTime object
according to the standard for that type.

------------------------------------------------------------------------

[2008-03-16 07:09:07] derick@php.net

We can't add __toString() to the date class, as it would have no idea
on which format to use to render it. So it should be done in the SOAP
ext.

------------------------------------------------------------------------

[2008-03-15 13:06:28] felipe@php.net

Your idea then is add __toString in DateTime?
This is not a bug, but a "feature request". :)

------------------------------------------------------------------------

[2008-03-09 18:22:29] kevin dot craft at gmail dot com

In case it wasn't obvious, "Expected Result" should have read:
"Assuming the current date is 2008-03-06 00:00:00:" rather than
"2008-03-08 23:00:00".

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/44383

-- 
Edit this bug report at http://bugs.php.net/?id=44383&edit=1



Thread (29 messages)

« previous php.bugs (#126112) next »