public function prepare()
    {
        $this->dom->createAttributeNS($this->namespaces['soap'], 'soap:definitions');
        $this->dom->createAttributeNS($this->namespaces[$this->xmlSchemaPreffix], $this->xmlSchemaPreffix.':definitions');
        
        //@todo this only required when we have arrays
        $this->dom->createAttributeNS($this->namespaces['soapenc'], 'soapenc:definitions');
        
        $this->wsTypes = $this->dom->createElement('wsdl:types');
        $this->wsDefinitions->appendChild($this->wsTypes);
        
        $wsXmlSchema = $this->dom->createElement($this->xmlSchemaPreffix.':schema');
        $wsXmlSchema->setAttribute('targetNamespace', $this->wsdlTargetNamespace);
        
        $this->wsXmlSchema = $this->wsTypes->appendChild($wsXmlSchema);
        
        

        $portType =  $this->dom->createElement('wsdl:portType');
        $portType->setAttribute('name', $this->wsdlName.$this->portNameSuffix);
        $this->wsPortType = $this->wsDefinitions->appendChild($portType);
        
        $binding = $this->dom->createElement('wsdl:binding');
        $binding->setAttribute('name', $this->wsdlName.$this->bindingNameSuffix);
        $binding->setAttribute('type', $this->targetNsPrefix.":".$this->wsdlName.$this->portNameSuffix);
        $this->wsBinding = $this->wsDefinitions->appendChild($binding);
        
        $soapBinding = $this->dom->createElement('soap:binding');
        if ($this->soapBindingStyle === SOAP_DOCUMENT) {
            $soapBinding->setAttribute('style', "document");
        } elseif ($this->soapBindingStyle === SOAP_RPC) {
            $soapBinding->setAttribute('style', "rpc");
        }
        $soapBinding->setAttribute('transport', $this->soapBindingTransport);
        $this->wsBinding->appendChild($soapBinding);
        
        
        $wsService = $this->dom->createElement('wsdl:service');
        $wsService->setAttribute('name', $this->wsdlName.$this->serviceNameSuffix);
        $this->wsService = $this->wsDefinitions->appendChild($wsService);
        
        $port = $this->dom->createElement('wsdl:port');
        $port->setAttribute('name', $this->wsdlName.$this->portNameSuffix);
        $port->setAttribute('binding', $this->targetNsPrefix.":".$this->wsdlName.$this->bindingNameSuffix);
        
        $soapAddress =  $this->dom->createElement('soap:address');
        $soapAddress->setAttribute('location', $this->getLocation());
        $port->appendChild($soapAddress);
        
        $this->wsService->appendChild($port);
        
        
        
        $this->extractTypes();
    }
public function prepare()
    {
        $this->dom->createAttributeNS($this->namespaces['soap'], 'soap:definitions');
        $this->dom->createAttributeNS($this->namespaces[$this->xmlSchemaPreffix], $this->xmlSchemaPreffix.':definitions');
        
        //@todo this only required when we have arrays
        $this->dom->createAttributeNS($this->namespaces['soapenc'], 'soapenc:definitions');
        
        $this->wsTypes = $this->dom->createElement('wsdl:types');
        $this->wsDefinitions->appendChild($this->wsTypes);
        
        $wsXmlSchema = $this->dom->createElement($this->xmlSchemaPreffix.':schema');
        $wsXmlSchema->setAttribute('targetNamespace', $this->wsdlTargetNamespace);
        
        $this->wsXmlSchema = $this->wsTypes->appendChild($wsXmlSchema);
        
        

        $portType =  $this->dom->createElement('wsdl:portType');
        $portType->setAttribute('name', $this->wsdlName.$this->portNameSuffix);
        $this->wsPortType = $this->wsDefinitions->appendChild($portType);
        
        $binding = $this->dom->createElement('wsdl:binding');
        $binding->setAttribute('name', $this->wsdlName.$this->bindingNameSuffix);
        $binding->setAttribute('type', $this->targetNsPrefix.":".$this->wsdlName.$this->portNameSuffix);
        $this->wsBinding = $this->wsDefinitions->appendChild($binding);
        
        $soapBinding = $this->dom->createElement('soap:binding');
        if ($this->soapBindingStyle === SOAP_DOCUMENT) {
            $soapBinding->setAttribute('style', "document");
        } elseif ($this->soapBindingStyle === SOAP_RPC) {
            $soapBinding->setAttribute('style', "rpc");
        }
        $soapBinding->setAttribute('transport', $this->soapBindingTransport);
        $this->wsBinding->appendChild($soapBinding);
        
        
        $wsService = $this->dom->createElement('wsdl:service');
        $wsService->setAttribute('name', $this->wsdlName.$this->serviceNameSuffix);
        $this->wsService = $this->wsDefinitions->appendChild($wsService);
        
        $port = $this->dom->createElement('wsdl:port');
        $port->setAttribute('name', $this->wsdlName.$this->portNameSuffix);
        $port->setAttribute('binding', $this->targetNsPrefix.":".$this->wsdlName.$this->bindingNameSuffix);
        
        $soapAddress =  $this->dom->createElement('soap:address');
        $soapAddress->setAttribute('location', $this->getLocation());
        $port->appendChild($soapAddress);
        
        $this->wsService->appendChild($port);
        
        
        
        $this->extractTypes();
    }
public function prepare ( ) { $ this -> dom -> createAttributeNS ( $ this -> namespaces [ 'soap' ] , 'soap:definitions' ) ; $ this -> dom -> createAttributeNS ( $ this -> namespaces [ $ this -> xmlSchemaPreffix ] , $ this -> xmlSchemaPreffix . ':definitions' ) ; //@todo this only required when we have arrays $ this -> dom -> createAttributeNS ( $ this -> namespaces [ 'soapenc' ] , 'soapenc:definitions' ) ; $ this -> wsTypes = $ this -> dom -> createElement ( 'wsdl:types' ) ; $ this -> wsDefinitions -> appendChild ( $ this -> wsTypes ) ; $ wsXmlSchema = $ this -> dom -> createElement ( $ this -> xmlSchemaPreffix . ':schema' ) ; $ wsXmlSchema -> setAttribute ( 'targetNamespace' , $ this -> wsdlTargetNamespace ) ; $ this -> wsXmlSchema = $ this -> wsTypes -> appendChild ( $ wsXmlSchema ) ; $ portType = $ this -> dom -> createElement ( 'wsdl:portType' ) ; $ portType -> setAttribute ( 'name' , $ this -> wsdlName . $ this -> portNameSuffix ) ; $ this -> wsPortType = $ this -> wsDefinitions -> appendChild ( $ portType ) ; $ binding = $ this -> dom -> createElement ( 'wsdl:binding' ) ; $ binding -> setAttribute ( 'name' , $ this -> wsdlName . $ this -> bindingNameSuffix ) ; $ binding -> setAttribute ( 'type' , $ this -> targetNsPrefix . ":" . $ this -> wsdlName . $ this -> portNameSuffix ) ; $ this -> wsBinding = $ this -> wsDefinitions -> appendChild ( $ binding ) ; $ soapBinding = $ this -> dom -> createElement ( 'soap:binding' ) ; if ( $ this -> soapBindingStyle === SOAP_DOCUMENT ) { $ soapBinding -> setAttribute ( 'style' , "document" ) ; } elseif ( $ this -> soapBindingStyle === SOAP_RPC ) { $ soapBinding -> setAttribute ( 'style' , "rpc" ) ; } $ soapBinding -> setAttribute ( 'transport' , $ this -> soapBindingTransport ) ; $ this -> wsBinding -> appendChild ( $ soapBinding ) ; $ wsService = $ this -> dom -> createElement ( 'wsdl:service' ) ; $ wsService -> setAttribute ( 'name' , $ this -> wsdlName . $ this -> serviceNameSuffix ) ; $ this -> wsService = $ this -> wsDefinitions -> appendChild ( $ wsService ) ; $ port = $ this -> dom -> createElement ( 'wsdl:port' ) ; $ port -> setAttribute ( 'name' , $ this -> wsdlName . $ this -> portNameSuffix ) ; $ port -> setAttribute ( 'binding' , $ this -> targetNsPrefix . ":" . $ this -> wsdlName . $ this -> bindingNameSuffix ) ; $ soapAddress = $ this -> dom -> createElement ( 'soap:address' ) ; $ soapAddress -> setAttribute ( 'location' , $ this -> getLocation ( ) ) ; $ port -> appendChild ( $ soapAddress ) ; $ this -> wsService -> appendChild ( $ port ) ; $ this -> extractTypes ( ) ; }
Prepare WSDL DOM model

@return void
Prepare WSDL DOM model