Atrributes and NuSOAP
| From: | Peter Lauri | Date: | Thu, 23 Mar 2006 07:23:24 +0000 |
| Subject: | Atrributes and NuSOAP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232438@lists.php.net to get a copy of this message | ||
Hi,
I have been trying to find a simple example of how to add attributes to the
requests, but after two days search I can not find an example. The $param is
easy to create if it does not contain any attributes. This is what I want to
create, but the internalId is giving me troubles:
-------------------
<soap:Body>
<platformMsgs:login>
<platformMsgs:passport>
<platformCore:email>eblack@yahoo.com</platformCore:email>
<platformCore:password>Cracker1</platformCore:password>
<platformCore:account>111111</platformCore:account>
<platformCore:role internalId="3"/>
</platformMsgs:passport>
</platformMsgs:login>
</soap:Body>
-------------------
So I started:
$param = array(
'passport'=>array(
'email'=>'eblack@yahoo.com',
'password'=>'Cracker1',
'account'=>'1111111',
//But here I have no clue what to write
)
);
Maybe the reason is that you can not do that with NuSOAP, but I am a newbie
so I have no clue.
Best regards,
Peter Lauri