[prev in list] [next in list] [prev in thread] [next in thread]
List: php-soap
Subject: [SOAP] SOAP PHP 5.2 and Outside WSDL's
From: "Jonathan Pitcher" <jonathan.pitcher () gmail ! com>
Date: 2008-03-06 2:57:13
Message-ID: d794d6490803051857v65cd68cdtad9af4568f47c814 () mail ! gmail ! com
[Download RAW message or body]
I am connecting to a Third Party WSDL that needs me to turn return an Array
of results to them. I do and PHP returns this ...
<SOAP-ENV:Body>
<ns1:addParties>
<in0 xsi:type="ns2:AuthenticationInfo">
<locale xsi:type="xsd:string">en</locale>
<token
xsi:type="xsd:string">50d3c78a0213b3e083ce7b6c7fa760a299798246fb6bbf1dc2dc81
12a841454d5bcb9cb752b18e299cd9be84214175b6c971065d8df08b52283408b925dd854128
5a031ca29c39b945989b951e2523594f5c9c0aa7bbfc328c87441830b47cd0</token>
<userType xsi:type="xsd:int">1</userType>
</in0>
<in1 SOAP-ENC:arrayType="ns2:EditConferenceParty[2]"
xsi:type="ns3:ArrayOf_tns1_EditConferenceParty">
<item xsi:type="ns2:EditConferenceParty">
<conferenceId xsi:type="xsd:int">163</conferenceId>
<phoneNumber xsi:type="xsd:string">9999999999</phoneNumber>
</item>
<item xsi:type="ns2:EditConferenceParty">
<conferenceId xsi:type="xsd:int">163</conferenceId>
<phoneNumber xsi:type="xsd:string">9999999999</phoneNumber>
</item>
</in1>
</ns1:addParties>
</SOAP-ENV:Body>
Problem is they need something like:
<EditConference>
<conferenceId>163</conferenceId>
<phoneNumber>9999999999</ phoneNumber>
</EditConference>
<EditConference>
<conferenceId>163</conferenceId>
<phoneNumber>9999999999</ phoneNumber>
</EditConference>
I found a good read here that says it deals with the way PHP handles
outputting arrays.
http://archive.netbsd.se/?ml=soap&a=2006-01&m=1677392
Is this truly considered a bug ? If so has it been resolved in the current
releases of PHP ?
If not does anyone have a simple solution ? I can figure out a way to code
the XML myself and send it but honestly was hoping for a simplier solution
that didn't envolve writing XML by hand.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic