note 84747 modified in ref.soap by thiago
| From: | thiago@php.net | Date: | Mon, 28 Jul 2008 16:11:17 +0000 |
| Subject: | note 84747 modified in ref.soap by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142856@lists.php.net to get a copy of this message | ||
Setting Attributes for Complex Type Elements PHP5/SOAP
=========================================
// Setting attributes for simple elements:
<parentEl id="ref1">12345</foo>
<?php
array("parentEl" => array("_" => 12345, "id" =>
"ref1"));
?>
// Setting attributes for complex elements:
<parentEl id="ref1">
<childEl>blah</childEl>
</parentEl>
'parentEl' => array(
array('childEl' => 'blah')
),
'id' => 'ref1'
)
--was--
Setting Attributes for Complex Type Elements PHP5/SOAP
=========================================
// Setting attributes for simple elements:
<parentEl id="ref1">12345</foo>
array("parentEl" => array("_" => 12345, "id" =>
"ref1"));
// Setting attributes for complex elements:
<parentEl id="ref1">
<childEl>blah</childEl>
</parentEl>
'parentEl' => array(
array('childEl' => 'blah')
),
'id' => 'ref1'
)
http://php.net/manual/en/ref.soap.php