I dont use nuSoap because it's old and can cause error when you ingest an
object (it's blank space error or something...). You can try this code below, i
hope it works.
-------------------------
<?php
$file = 'hwXML/1012.xml';
$xmlLoader = simplexml_load_file($file);
$logmsg = 'Fedora Object ingested from php web form';
$mclient = new SoapClient('http://12.3.4.5:8080/fedora/wsdl?api=API-M',
array("login" => 'fedoraAdmin', "password" => 'fedoraAdmin');
$parms=array('objectXML' => $xmlLoader->asXML(), 'format' =>
'info:fedora/fedora-system:FOXML-1.1',
'logMessage' => $logmsg);
$response = $mclient->__soapCall('ingest', array("parameters" => $parms));
var_dump($response);
?>
-------------------------
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users