Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Mensagem sobre o tópico Problem when using type DOUBLE in SOAP

Visualizar analisado - Mostrar apenas o texto da mensagem ??

MIME-Version: 1.0
Received: by 10.100.41.4 with SMTP id o4mr90458ano.29.1213707158078; Tue, 17 
	Jun 2008 05:52:38 -0700 (PDT)
Date: Tue, 17 Jun 2008 05:52:38 -0700 (PDT)
In-Reply-To: <bf220dbb0806161659s3ac8d1ceq42a36618960111b9@mail.gmail.com>
X-IP: 195.212.29.83
References: <bf220dbb0806161659s3ac8d1ceq42a36618960111b9@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.7) 
	Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe)
Message-ID: <6fa2d4a5-eb03-42b4-8b84-cd5de1d3d47e@27g2000hsf.googlegroups.com>
Subject: Re: Problem when using type DOUBLE in SOAP
From: Matthew Peters <matthew.f.pet...@googlemail.com>
To: phpsoa <phpsoa@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Silvano,
Indeed, this is not good. I picked up the sample from the defect that
you raised.

I added a couple of trigger_errors to Bindings/soap/Wrapper.php to
look at the return values.

If I show the return value before we mess with it, it looks fine:
[Tue Jun 17 13:45:20 2008] [error] [client 127.0.0.1] PHP Notice:
3210.8765 in C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on
 line 99

but if I look at the $response_object, which is an SDO and print that
out, it has lost precision
[Tue Jun 17 13:45:20 2008] [error] [client 127.0.0.1] PHP Notice:
object(SDO_DataObject)#11 (1) {getDoubleReturn=>"3.211e+003"} i
n C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on line 100

So, this is something to do with assigning the value into an SDO. I
will send a note to Caroline (although of course she will see this)
and see if she knows what might have happened here.

Matthew

On 17 Jun, 00:59, "Silvano Girardi Jr" <silvan...@gmail.com> wrote:
> Gentlemen,
> there is a critical issue (at least for me) when dealing with double values
> using SOAP.
>
> Example: when returning 3210.8765, you get: 3211.
>
> I reported it as a bug:http://pecl.php.net/bugs/bug.php?id=14155
>
> FYI, when I try with REST-RPC or not using SCA at all (with SoapServer), it
> works fine: returns the same double value.
>
> I appreciate if someone could take a look on this asap.
>
> Thanks,

Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2009 Google