public function addService($name, $portName, $binding, $location)
    {
        $service = $this->dom->createElement('service');
        $service->setAttribute('name', $name);

        $port = $this->dom->createElement('port');
        $port->setAttribute('name', $portName);
        $port->setAttribute('binding', $binding);

        $soapAddress = $this->dom->createElement('soap:address');
        $soapAddress->setAttribute('location', $location);

        $port->appendChild($soapAddress);
        $service->appendChild($port);

        $this->wsdl->appendChild($service);

        return $service;
    }
public function addService($name, $portName, $binding, $location)
    {
        $service = $this->dom->createElement('service');
        $service->setAttribute('name', $name);

        $port = $this->dom->createElement('port');
        $port->setAttribute('name', $portName);
        $port->setAttribute('binding', $binding);

        $soapAddress = $this->dom->createElement('soap:address');
        $soapAddress->setAttribute('location', $location);

        $port->appendChild($soapAddress);
        $service->appendChild($port);

        $this->wsdl->appendChild($service);

        return $service;
    }
public function addService ( $ name , $ portName , $ binding , $ location ) { $ service = $ this -> dom -> createElement ( 'service' ) ; $ service -> setAttribute ( 'name' , $ name ) ; $ port = $ this -> dom -> createElement ( 'port' ) ; $ port -> setAttribute ( 'name' , $ portName ) ; $ port -> setAttribute ( 'binding' , $ binding ) ; $ soapAddress = $ this -> dom -> createElement ( 'soap:address' ) ; $ soapAddress -> setAttribute ( 'location' , $ location ) ; $ port -> appendChild ( $ soapAddress ) ; $ service -> appendChild ( $ port ) ; $ this -> wsdl -> appendChild ( $ service ) ; return $ service ; }
Add a service element to the WSDL.

@param string $name Service name.
@param string $portName Port name.
@param string $binding Binding for the port.
@param string $location SOAP Address location.
@return DOMElement
@link http://www.w3.org/TR/wsdl#_services
Add a service element to the WSDL .