protected function createWSDL_portType()
    {
        /*
        <portType name="myServicePort">
            <operation name="hello">
                <input message="typens:hello"/>
                <output message="typens:helloResponse"/>
            </operation>
        </portType>
        */
        $portType = $this->wsdl->createElement('portType');
        $portType->setAttribute('name', $this->wsdlclassname.'Port');
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $methodName => $methodVars) {
            $operation = $this->wsdl->createElement('operation');
            $operation->setAttribute('name', $methodName);
            $portType->appendChild($operation);

            $documentation = $this->wsdl->createElement('documentation');
            $documentation->appendChild(
                $this->wsdl->createTextNode($methodVars['description'])
            );
            $operation->appendChild($documentation);

            $input  = $this->wsdl->createElement('input');
            $output = $this->wsdl->createElement('output');
            $input->setAttribute('message', 'typens:' . $methodName);
            $output->setAttribute('message', 'typens:' . $methodName . 'Response');
            $operation->appendChild($input);
            $operation->appendChild($output);
        }
        $this->wsdl_definitions->appendChild($portType);
    }
protected function createWSDL_portType()
    {
        /*
        <portType name="myServicePort">
            <operation name="hello">
                <input message="typens:hello"/>
                <output message="typens:helloResponse"/>
            </operation>
        </portType>
        */
        $portType = $this->wsdl->createElement('portType');
        $portType->setAttribute('name', $this->wsdlclassname.'Port');
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $methodName => $methodVars) {
            $operation = $this->wsdl->createElement('operation');
            $operation->setAttribute('name', $methodName);
            $portType->appendChild($operation);

            $documentation = $this->wsdl->createElement('documentation');
            $documentation->appendChild(
                $this->wsdl->createTextNode($methodVars['description'])
            );
            $operation->appendChild($documentation);

            $input  = $this->wsdl->createElement('input');
            $output = $this->wsdl->createElement('output');
            $input->setAttribute('message', 'typens:' . $methodName);
            $output->setAttribute('message', 'typens:' . $methodName . 'Response');
            $operation->appendChild($input);
            $operation->appendChild($output);
        }
        $this->wsdl_definitions->appendChild($portType);
    }
protected function createWSDL_portType ( ) { /*
        <portType name="myServicePort">
            <operation name="hello">
                <input message="typens:hello"/>
                <output message="typens:helloResponse"/>
            </operation>
        </portType>
        */ $ portType = $ this -> wsdl -> createElement ( 'portType' ) ; $ portType -> setAttribute ( 'name' , $ this -> wsdlclassname . 'Port' ) ; foreach ( $ this -> wsdlStruct [ $ this -> wsdlclassname ] [ 'method' ] as $ methodName => $ methodVars ) { $ operation = $ this -> wsdl -> createElement ( 'operation' ) ; $ operation -> setAttribute ( 'name' , $ methodName ) ; $ portType -> appendChild ( $ operation ) ; $ documentation = $ this -> wsdl -> createElement ( 'documentation' ) ; $ documentation -> appendChild ( $ this -> wsdl -> createTextNode ( $ methodVars [ 'description' ] ) ) ; $ operation -> appendChild ( $ documentation ) ; $ input = $ this -> wsdl -> createElement ( 'input' ) ; $ output = $ this -> wsdl -> createElement ( 'output' ) ; $ input -> setAttribute ( 'message' , 'typens:' . $ methodName ) ; $ output -> setAttribute ( 'message' , 'typens:' . $ methodName . 'Response' ) ; $ operation -> appendChild ( $ input ) ; $ operation -> appendChild ( $ output ) ; } $ this -> wsdl_definitions -> appendChild ( $ portType ) ; }
Create the portType node

@return void
Create the portType node