The webservice I'm using requires a xml parameter with attributes.
Like this:
Code XML:<test> <user group="4" type="default">Max</user> <birthday>1-2-1980</birthday> </test>
So far I got:
What will produce a soap body containing:PHP Code:$reqBody = array('test' => array(
'user' => 'Max',
'birthday'=>'1-2-1980'));
$result = $client->getUser($reqBody);
Only I've got no idea how to put in the attributes. Does anyone know?Code XML:<test> <user>Max</user> <birthday>1-2-1980</birthday> </test>![]()




Bookmarks