SOAP_Value, how do you add a qualified attribute?
| From: | Luis A. Cruz | Date: | Wed, 25 Feb 2004 21:31:54 +0000 |
| Subject: | SOAP_Value, how do you add a qualified attribute? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10936@lists.php.net to get a copy of this message | ||
Greetings; I am attempting to generate a SOAP call that has a
line like this:
<ns4:object xsi:type="ns4:ObjectType">
I have tried using a line similar to this with no success
$value =& new SOAP_Value('{<some urn>}object', "{<some urn>}ObjectType", $values);
When I generate the call, the SOAP body generates this line:
<ns4:object>
I could do something like this
$value =& new SOAP_Value('{<some urn>}object', false, $values, $attr=array('xsi:type' => 'ObjectType'));
However, how I would I go about attaching the proper namespace qualifier
(ns4) since that is being generated via SOAP_Client->call()?
Regards.
---
Luis A. Cruz
lcruz at astaro dot com