web services - php pass variable amount of soap params to soap client -


i have php soap client generates xml envelope , request. need pass in variable amount of nodes request. not know how many arguments passed in needs dynamic.

$output = $this->_client->updaterequest(             new soapparam($this->_memberid, "memberid"),             new soapparam($this->_userid, "userid"),             new soapparam(functions::getremoteip(), "ipaddress"),             new soapparam($this->_macaddress, "hardwareid"),             new soapparam($data->applicationid, "applicationid"),             new soapparam($application,"application"),             new soapparam($applicants,"applicant") <----- array         ); 

i need in request:

<updaterequest>    <memberid>1</memberid>    etc etc...    <applicant>   <--------- repeating node         .....    </applicant>    <applicant>         .....    </applicant>    <applicant>         .....    </applicant> </updaterequest> 

any ideas?


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -