I need to call a webservice method using nusoap, the method needs two xml string parameters. one is ‘settings’ and another one ‘record’ I have done the following manner
require_once(‘nusoap.php’);
$settings = ‘<settings>
<accesscode>1111</accesscode>
<sourceid>1111</sourceid>
<sourcetable>data</sourcetable>
<projectid>1111</projectid>
</settings>’;
$record = ‘<record>
<phonenum>111111</phonenum>
<callinfo>call</callinfo>
<alternates>
<altphonenum>11111</altphonenum>
</alternates>
<record>’;
$client = new nusoapclient(‘http://165.236.148.164/iapi12/importservice.asmx?’);
// Call the SOAP method
$result = $client->call(
'AddRecordRCS', array('NewRecordXML' => $record, 'SettingsXML' => $settings), // input parameters
'http://tempuri.org/TouchstarIAPI/ImportService', // namespace
'http://tempuri.org/TouchstarIAPI/ImportService/AddRecordRCS' // SOAPAction
);
i didn’t get any error and the server response status is HTTP/1.1 200 OK
but i got response is FALSE.
my question: is this right way to pass xml parameter as a string type?
please reply
thanks