34 include_once
'./webservice/soap/classes/class.ilSoapAdministration.php';
49 if(!$this->__checkSession($sid))
56 return $this->
__raiseError(
'No valid reference id given.',
'Client');
59 $structureReaderClassname =
"ilSoap".strtoupper($target_obj->getType()).
"StructureReader";
60 $filename =
"./webservice/soap/classes/class.".$structureReaderClassname.
".php";
64 return $this->
__raiseError(
"Object type '".$target_obj->getType().
"'is not supported.",
'Client');
69 $structureReader =
new $structureReaderClassname($target_obj);
71 include_once
'./webservice/soap/classes/class.ilSoapStructureObjectXMLWriter.php';
75 $structureObject = & $structureReader->getStructureObject();
77 $xml_writer->setStructureObject ($structureObject);
79 if(!$xml_writer->start())
81 return $this->
__raiseError(
'Cannot create object xml !',
'Server');
84 return $xml_writer->getXML();