PHP5 SOAP and wrong result type

PHP5 SOAP and wrong result type

am 03.12.2007 14:14:40 von Shion

I have been working with a SOAP that uses the built in SOAP in PHP5.

The soap works as it should, as long as I run it on my local machine, on one
of the official servers or my private server at home, on the server on which
it's supposed to run, the result comes out in the wrong format. The only
difference with the servers as I can see is that the supposed server has
coldfusion configured, while the others don't. I'm completely lost what may be
wrong.

This is how it supposed to come out:
array(14) {
....
[9]=>
array(2) {
["gate"]=>
string(3) "S07"
["name"]=>
string(6) "PADDAN"
}
....
}
This is how it comes out on the supposed server:
object(stdClass)#2 (1) {
["item"]=>
array(14) {
....
[9]=>
object(stdClass)#30 (1) {
["item"]=>
array(2) {
[0]=>
object(stdClass)#31 (2) {
["key"]=>
string(4) "gate"
["value"]=>
string(3) "S07"
}
[1]=>
object(stdClass)#32 (2) {
["key"]=>
string(4) "name"
["value"]=>
string(6) "PADDAN"
}
}
}
....
}


The files on all the machines are the same.

The wsdl looks like this (this is a cut down version):

targetNamespace='urn:gp_soap'
xmlns:tns='urn:gp_soap'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>















transport='http://schemas.xmlsoap.org/soap/http'/>



encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>


encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>












--

//Aho

Re: PHP5 SOAP and wrong result type

am 03.12.2007 15:09:08 von Shion

J.O. Aho wrote:
> I have been working with a SOAP that uses the built in SOAP in PHP5.
>
> The soap works as it should, as long as I run it on my local machine, on one
> of the official servers or my private server at home, on the server on which
> it's supposed to run, the result comes out in the wrong format. The only
> difference with the servers as I can see is that the supposed server has
> coldfusion configured, while the others don't. I'm completely lost what may be
> wrong.

The only difference is that the supposed server runs php 5.1.2 while all
others run 5.2.x. Sadly I can't just switch to 5.2 on the supposed server to
see if I can get around the problem with an upgrade.
I hope someone know what may be wrong and what could fix it, which don't
require a upgrade of php.

--

//Aho