Tasai, Thanks a bunch. Your code worked perfectly.
Walker On Fri, Apr 16, 2010 at 9:57 PM, tasai Kan <[email protected]> wrote: > 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. Sign up > now. -- MS in Information Studies, Expected 2010 School of Information, UT Austin http://www.ischool.utexas.edu/~walker ------------------------------------------------------------------------------ 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
