NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
webservice - passing xml string parameter


Joined: 12 Oct 2010
Posts: 1
Reply with quote
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>';


// 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
View user's profileFind all posts by gisSend private message
webservice - passing xml string parameter
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic