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.
Expand|Select|Wrap|Line Numbers
- <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>
[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.