PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.php > PHP5 SOAP and wrong result type
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP5 SOAP and wrong result type

Réponse
 
LinkBack Outils de la discussion
Vieux 03/12/2007, 13h14   #1
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP5 SOAP and wrong result type


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):
<?xml version='1.0' encoding='UTF-8' ?>
<definitions name='gp_soap'
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/'>

<message name='getGatesRequest'>
<part name='upc' type='xsd:array'/>
</message>
<message name='getGatesResponse'>
<part name='Result' type='xsd:array'/>
</message>
<portType name='gotpass_soapPortType'>
<operation name='getGates'>
<input message='tns:getGatesRequest'/>
<output message='tns:getGatesResponse'/>
</operation>
</portType>

<binding name='gp_soapBinding' type='tns:gp_soapPortType'>
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
<operation name='getGates'>
<soapperation soapAction='urn:xmethods-delayed-quotes#getGates'/>
<input>
<soap:body use='encoded' namespace='urn:xmethods-delayed-quotes'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</input>
<output>
<soap:body use='encoded' namespace='urn:xmethods-delayed-quotes'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</output>
</operation>
</binding>
<service name='gp_soapService'>
<port name='gp_soapPort' binding='gp_soapBinding'>
<soap:address location='http://localhost/~g/gp_soap.php'/>
</port>
</service>
</definitions>



--

//Aho
  Réponse avec citation
Vieux 03/12/2007, 14h09   #2
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP5 SOAP and wrong result type

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h33.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09932 seconds with 10 queries