<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SOAP structures in PHP</title>
	<atom:link href="http://www.dotvoid.com/2008/10/soap-structures-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/</link>
	<description>Experiments and thoughts in PHP and javascript</description>
	<lastBuildDate>Sat, 04 Sep 2010 10:02:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Erwan Martin</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-1764</link>
		<dc:creator>Erwan Martin</dc:creator>
		<pubDate>Fri, 09 Apr 2010 14:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-1764</guid>
		<description>This is how I declare arrays in my wsdls.

&lt;code&gt;
  
    
      
	
	  
	    
	  
	
      
    
  
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This is how I declare arrays in my wsdls.</p>
<p><code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Nuut</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-719</link>
		<dc:creator>Kevin Nuut</dc:creator>
		<pubDate>Fri, 12 Jun 2009 22:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-719</guid>
		<description>What about the issue of if you are building your WSDLs this way, using WS-I compliant arrays, you can&#039;t properly pass or retrieve arrays without everything wrapping in stdClass objects?

However, if he built the exact same WSDL using soap-enc:Array, this all would have returned the results in a nice package of:

array(
  array(
    &#039;id&#039; =&gt; xxx, &#039;name&#039; =&gt; yyy, &#039;data&#039; =&gt; zzz), 
  array(
    &#039;id&#039; =&gt; aaa, &#039;name&#039; =&gt; bbb, &#039;data&#039; =&gt; ccc));

I have yet to find a solution for this WS-I soapenc:Array issue.</description>
		<content:encoded><![CDATA[<p>What about the issue of if you are building your WSDLs this way, using WS-I compliant arrays, you can&#8217;t properly pass or retrieve arrays without everything wrapping in stdClass objects?</p>
<p>However, if he built the exact same WSDL using soap-enc:Array, this all would have returned the results in a nice package of:</p>
<p>array(<br />
  array(<br />
    &#8216;id&#8217; =&gt; xxx, &#8216;name&#8217; =&gt; yyy, &#8216;data&#8217; =&gt; zzz),<br />
  array(<br />
    &#8216;id&#8217; =&gt; aaa, &#8216;name&#8217; =&gt; bbb, &#8216;data&#8217; =&gt; ccc));</p>
<p>I have yet to find a solution for this WS-I soapenc:Array issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP SOAP Structures Discussion &#171; Mcloide&#8217;s resources library</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-287</link>
		<dc:creator>PHP SOAP Structures Discussion &#171; Mcloide&#8217;s resources library</dc:creator>
		<pubDate>Thu, 06 Nov 2008 17:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-287</guid>
		<description>[...] check the SOAP Structures in PHP Article. It has a great point of view of how SOAP Strucutres work on PHP and what to do if you want the [...]</description>
		<content:encoded><![CDATA[<p>[...] check the SOAP Structures in PHP Article. It has a great point of view of how SOAP Strucutres work on PHP and what to do if you want the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danne Lundqvist&#8217;s Blog: SOAP structures in PHP : WebNetiques</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-285</link>
		<dc:creator>Danne Lundqvist&#8217;s Blog: SOAP structures in PHP : WebNetiques</dc:creator>
		<pubDate>Wed, 05 Nov 2008 12:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-285</guid>
		<description>[...] Lundqvist is frustrated with the SOAP functionality that comes native with PHP on one very specific subject - its handling of SOAP [...]</description>
		<content:encoded><![CDATA[<p>[...] Lundqvist is frustrated with the SOAP functionality that comes native with PHP on one very specific subject &#8211; its handling of SOAP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danne Lundqvist&#8217;s Blog: SOAP structures in PHP : Dragonfly Networks</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-284</link>
		<dc:creator>Danne Lundqvist&#8217;s Blog: SOAP structures in PHP : Dragonfly Networks</dc:creator>
		<pubDate>Wed, 05 Nov 2008 11:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-284</guid>
		<description>[...] Lundqvist is frustrated with the SOAP functionality that comes native with PHP on one very specific subject - its handling of SOAP [...]</description>
		<content:encoded><![CDATA[<p>[...] Lundqvist is frustrated with the SOAP functionality that comes native with PHP on one very specific subject &#8211; its handling of SOAP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-281</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Mon, 03 Nov 2008 18:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-281</guid>
		<description>Havr you tried the following:

&lt;code&gt;
$x = new SoapClient($wsdl, array(&#039;features&#039; =&gt;
SOAP_SINGLE_ELEMENT_ARRAYS));
&lt;/code&gt;

Not sure if this is documented in the manual though.</description>
		<content:encoded><![CDATA[<p>Havr you tried the following:</p>
<p><code><br />
$x = new SoapClient($wsdl, array('features' =&gt;<br />
SOAP_SINGLE_ELEMENT_ARRAYS));<br />
</code></p>
<p>Not sure if this is documented in the manual though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Zülke</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-240</link>
		<dc:creator>David Zülke</dc:creator>
		<pubDate>Sat, 01 Nov 2008 12:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-240</guid>
		<description>http://bugs.php.net/bug.php?id=36226 says:
&lt;code&gt;$x = new SoapClient($wsdl, array(&#039;features&#039; =&gt;
SOAP_SINGLE_ELEMENT_ARRAYS));&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://bugs.php.net/bug.php?id=36226" rel="nofollow">http://bugs.php.net/bug.php?id=36226</a> says:<br />
<code>$x = new SoapClient($wsdl, array('features' =&gt;<br />
SOAP_SINGLE_ELEMENT_ARRAYS));</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-224</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 31 Oct 2008 18:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-224</guid>
		<description>strike 2... almost done.  last try...
&lt;code&gt;
&lt;complexType name=&quot;ArrayOfKeyValueData&quot;&gt;
  &lt;complexContent&gt;
    &lt;restriction base=&quot;SOAP-ENC:Array&quot;&gt;
      &lt;attribute ref=&quot;SOAP-ENC:arrayType&quot;
       wsdl:arrayType=&quot;tns:KeyValueData[]&quot; /&gt;
    &lt;/restriction&gt;
  &lt;/complexContent&gt;
&lt;/complexType&grt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>strike 2&#8230; almost done.  last try&#8230;<br />
<code><br />
&lt;complexType name="ArrayOfKeyValueData"&gt;<br />
  &lt;complexContent&gt;<br />
    &lt;restriction base="SOAP-ENC:Array"&gt;<br />
      &lt;attribute ref="SOAP-ENC:arrayType"<br />
       wsdl:arrayType="tns:KeyValueData[]" /&gt;<br />
    &lt;/restriction&gt;<br />
  &lt;/complexContent&gt;<br />
&lt;/complexType&grt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-223</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 31 Oct 2008 18:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-223</guid>
		<description>Uh... strike 1.  try again...
&lt;code&gt;

  
    
      
    
  

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Uh&#8230; strike 1.  try again&#8230;<br />
<code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dotvoid.com/2008/10/soap-structures-in-php/comment-page-1/#comment-222</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 31 Oct 2008 18:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotvoid.com/?p=319#comment-222</guid>
		<description>Not sure if this will come thru in the comment, but here is a slightly different WSDL construction that I am fairly sure will facilitate always returning an array, even if the data structure encoded in it has 1 element.

&lt;pre lang=&quot;xml&quot;&gt;

  
    
      
    
  

&lt;/pre&gt;

The corresponding PHP server code to create the response would be something like
&lt;code&gt;
new SoapVar($arrayOfKeyValueData, SOAP_ENC_ARRAY, &quot;ArrayOfKeyValueData&quot;, &quot;[your target namespace]&quot;);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Not sure if this will come thru in the comment, but here is a slightly different WSDL construction that I am fairly sure will facilitate always returning an array, even if the data structure encoded in it has 1 element.</p>
<pre lang="xml">
</pre>
<p>The corresponding PHP server code to create the response would be something like<br />
<code><br />
new SoapVar($arrayOfKeyValueData, SOAP_ENC_ARRAY, "ArrayOfKeyValueData", "[your target namespace]");<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
