Re: [SOAP] Soap client, different element type

[email protected] (Fernando)
Newsgroups php.soap
Message-ID <[email protected]>
Hello Will,

Thanks for the reply.

I´m trying to pass this parameter using datetime function. Example:

<?php
$date = new DateTime();
$date->format(DATE_RFC3339);

$params = array( 'myDate' => $date );
?>

But when i take a look at what nusoap is sending, it is something like this:

<myDate xsi:type="xsd:string">2009-03-04T12:57:25-03:00</myDate>

How can i force the type to be set as dateTime?

Thanks,

Fernando.

2009/3/4 Will Fitch <[email protected]>:
> This is an XML data type.  Please see
> http://books.xmlschemata.org/relaxng/ch19-77049.html for more details.
>
>
>
> On 3/4/09 9:48 AM, "Fernando Morgenstern" <[email protected]> wrote:
>
> Hello,
>
> I´m accessing a SOAP server using nusoap. There are some params that i
> need to pass as dateTime.
>
> Do you know how can i send this kind of parameter? I can send string,
> float and int, but don´t know how to send dateTime.
>
> Thanks for any help about this!
> --
> Fernando
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.