Hi all
I'm having trouble assigning an attribute to a namespace using nusoap/php when creating a new soapclient. I can get the soapclient to assign the parameters correctly but can't assign an attribute to any namespaces. The code below is from the actual soap request and i need to assign the 'ApplicantID' from the soapclient to the Applicant parameter for each new applicant, then have nested arrays within various arrays.
- <Applicant ApplicantID="1">
-
<Title>Miss</Title>
-
<Forename>Tessa</Forename>
-
<Secondname>Jane</Secondname>
-
<Surname>Smith</Surname>
-
<DOB>1966-12-29</DOB>
-
<TelephoneHome>01942408669</TelephoneHome>
-
<TelephoneWork>01942724915</TelephoneWork>
-
</Applicant>
I've set up all the arrays as follows, but was wondering how to assign the 'ApplicantID' to the 'Applicant' array in the soapclient.
[PHP]$header = array('userId' => 'Ivuser', 'password' => 'Ivpa55word');
$loandetail = array('Loan' => '5000', 'Term' => '24');
$Applicant =
$result = $client->call('sendv1', array('header' => $header), array('loandetail' => $loandetail));[/PHP]
i'm a total nusoap novice so sorry if i haven't given enough information. Your help would be much appreciated.