public function __construct($wsdl, $options) { $this->common = new Common(); $types = $this->getXSDTypes($wsdl); $options['typemap'] = array(); foreach ($types as $type) { array_push($options['typemap'], array('type_name' => $type['name'], 'type_ns' => $type['namespace'], 'from_xml' => 'com\\mikebevz\\xsd2php\\SoapServer::unmarshalRoot', 'to_xml' => 'com\\mikebevz\\xsd2php\\SoapServer::marshalRoot')); } parent::SoapServer($wsdl, $options); }