public function addPortOperation(DOMElement $portType, $name, $inputMessage = null, $outputMessage = null)
    {
        $operation = $this->dom->createElement('operation');
        $operation->setAttribute('name', $name);

        if (is_string($inputMessage) && (strlen(trim($inputMessage)) >= 1)) {
            $inputElement = $this->dom->createElement('input');
            $inputElement->setAttribute('message', $inputMessage);
            $operation->appendChild($inputElement);
        }

        if (is_string($outputMessage) && (strlen(trim($outputMessage)) >= 1)) {
            $outputElement = $this->dom->createElement('output');
            $outputElement->setAttribute('message', $outputMessage);
            $operation->appendChild($outputElement);
        }

        $portType->appendChild($operation);

        return $operation;
    }
public function addPortOperation(DOMElement $portType, $name, $inputMessage = null, $outputMessage = null)
    {
        $operation = $this->dom->createElement('operation');
        $operation->setAttribute('name', $name);

        if (is_string($inputMessage) && (strlen(trim($inputMessage)) >= 1)) {
            $inputElement = $this->dom->createElement('input');
            $inputElement->setAttribute('message', $inputMessage);
            $operation->appendChild($inputElement);
        }

        if (is_string($outputMessage) && (strlen(trim($outputMessage)) >= 1)) {
            $outputElement = $this->dom->createElement('output');
            $outputElement->setAttribute('message', $outputMessage);
            $operation->appendChild($outputElement);
        }

        $portType->appendChild($operation);

        return $operation;
    }
public function addPortOperation ( DOMElement $ portType , $ name , $ inputMessage = null , $ outputMessage = null ) { $ operation = $ this -> dom -> createElement ( 'operation' ) ; $ operation -> setAttribute ( 'name' , $ name ) ; if ( is_string ( $ inputMessage ) && ( strlen ( trim ( $ inputMessage ) ) >= 1 ) ) { $ inputElement = $ this -> dom -> createElement ( 'input' ) ; $ inputElement -> setAttribute ( 'message' , $ inputMessage ) ; $ operation -> appendChild ( $ inputElement ) ; } if ( is_string ( $ outputMessage ) && ( strlen ( trim ( $ outputMessage ) ) >= 1 ) ) { $ outputElement = $ this -> dom -> createElement ( 'output' ) ; $ outputElement -> setAttribute ( 'message' , $ outputMessage ) ; $ operation -> appendChild ( $ outputElement ) ; } $ portType -> appendChild ( $ operation ) ; return $ operation ; }
Add an operation element to a portType element.

@param DOMElement $portType The port type element (from addPortType() method).
@param string $name The name of the operation.
@param string $inputMessage The input message.
@param string $outputMessage The output message.
@return DOMElement
@link http://www.w3.org/TR/wsdl#_request-response
Add an operation element to a portType element .