By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,156 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

SOAP Webservice problem

P: n/a

I'm doing my final project in PHP with a Soap webservice
In the client script (PHP) 3 files are read into a string
these strings and the name of the 3 files need to be passed to the
webservice
( python ) where he does some stuff with it and than normally returns "ok"

the code below works , but instead of the contents of the files
$Code_xxx_Contents I putted a fixed string.
if i try to put the name of the varialbe i don't get the wanted result
only "array"

//Strings with content of the 3 files

$Coded_Ncd_Contents = getFileContent( $Prefix , $Ncd_File_Name );
$Coded_Pcf_Contents = getFileContent( $Prefix , $Pcf_File_Name );
$Coded_Ini_Contents = getFileContent( $Prefix , $Ini_File_Name );
//put all the necasarry items in an array called parameters.

$parameters=array( "task"=> array("integer" => $TaskNumber),
"subtask"=> array("integer" => 0),
"ncd_filename" => $Ncd_File_Name,
"ncd_file"=> " this is the new ncd-contents" ,
"ini_filename"=> $Ini_File_Name,
"ini_file"=> "contents of ini-file",
"pcf_filename"=> $Pcf_File_Name,
"pcf_file"=> "this is the new pcf-contents");

//create new soap connection with server
require_once('nusoap.php');
$cliente=new soapclient('http://192.168.1.4:8080/'); // my IP (wireless)

//call the function
$out=$cliente->call('exec_task_a_dyp', $parameters, "PE");

?><br>output : <? print $out;

Does anyone know how i get the contents of the files passed to the Python
server ?

##-----------------------------------------------#
Article posted from PHP Freaks NewsGroup
http://www.phpfreaks.com/newsgroup
Get Addicted: comp.lang.ph
##-----------------------------------------------##
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <M7********************@giganews.com>, Arne Holderbeke wrote:
the code below works , but instead of the contents of the files
$Code_xxx_Contents I putted a fixed string.
if i try to put the name of the varialbe i don't get the wanted result
only "array"
[snip]
//call the function
$out=$cliente->call('exec_task_a_dyp', $parameters, "PE");

?><br>output : <? print $out;


print_r($out);

or

foreach($out as $item) {
echo "item: $item<br>";
}

--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.