I want to send an object trough the SoapClient in PHP. How would I handle associations correctly? I don't know if this is the right format. On the WCF Side, I just get a null
Person.
Lets say I want to send a Person with following Structure (Capitalized are the complex data types):
PERSON
--> PersonId
--> Name
--> Age
--> Gender
--> ADDRESS
--> AddressId
--> Street
--> City
--> Country
This is how I have tried so far...
$soapclient = GetSoapClient();
$person = array(
'PersonId' => 123,
'Name' => 'Tom'
'Age' => 45
'Gender' => 'Male',
'Address' => array(
'AddressId' => 424
'Street' => 'Washington Street 2'
'City' => 'Washington'
'Country' => 'US'
)
);
$soapClient->UpdatePerson($person);