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.
[CODE=xml]<Applicant ApplicantID="1" >
<Title>Miss</Title>
<Forename>Tessa </Forename>
<Secondname>Jan e</Secondname>
<Surname>Smit h</Surname>
<DOB>1966-12-29</DOB>
<TelephoneHome> 01942408669</TelephoneHome>
<TelephoneWork> 01942724915</TelephoneWork>
</Applicant>[/CODE]
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('loandeta il' => $loandetail));[/PHP]
i'm a total nusoap novice so sorry if i haven't given enough information. Your help would be much appreciated.
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.
[CODE=xml]<Applicant ApplicantID="1" >
<Title>Miss</Title>
<Forename>Tessa </Forename>
<Secondname>Jan e</Secondname>
<Surname>Smit h</Surname>
<DOB>1966-12-29</DOB>
<TelephoneHome> 01942408669</TelephoneHome>
<TelephoneWork> 01942724915</TelephoneWork>
</Applicant>[/CODE]
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('loandeta il' => $loandetail));[/PHP]
i'm a total nusoap novice so sorry if i haven't given enough information. Your help would be much appreciated.
Comment