protected function createWSDL_messages()
    {
        /*
        <message name="hello">
            <part name="i" type="xsd:int"/>
            <part name="j" type="xsd:string"/>
        </message>
        <message name="helloResponse">
            <part name="helloResponse" type="xsd:string"/>
        </message>
        */
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $name => $method) {
            $messageInput = $this->wsdl->createElement('message');
            $messageInput->setAttribute('name', $name);
            $messageOutput = $this->wsdl->createElement('message');
            $messageOutput->setAttribute('name', $name . 'Response');
            $this->wsdl_definitions->appendChild($messageInput);
            $this->wsdl_definitions->appendChild($messageOutput);

            foreach ($method['var'] as $methodVars) {
                if (isset($methodVars['param'])) {
                    $part = $this->wsdl->createElement('part');
                    $part->setAttribute('name', $methodVars['name']);
                    $part->setAttribute(
                        'type',
                        (($methodVars['array'] != 1 && $methodVars['class'] != 1) ?
                        'xsd:' : 'typens:') . $methodVars['wsdltype']
                    );
                    $messageInput->appendChild($part);
                }
                if (isset($methodVars['return'])) {
                    $part = $this->wsdl->createElement('part');
                    $part->setAttribute('name', $name.'Response');
                    $part->setAttribute(
                        'type',
                        (($methodVars['array'] != 1 && $methodVars['class'] != 1) ?
                        'xsd:' : 'typens:') . $methodVars['wsdltype']
                    );
                    $messageOutput->appendChild($part);
                }
            }
        }
    }
protected function createWSDL_messages()
    {
        /*
        <message name="hello">
            <part name="i" type="xsd:int"/>
            <part name="j" type="xsd:string"/>
        </message>
        <message name="helloResponse">
            <part name="helloResponse" type="xsd:string"/>
        </message>
        */
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $name => $method) {
            $messageInput = $this->wsdl->createElement('message');
            $messageInput->setAttribute('name', $name);
            $messageOutput = $this->wsdl->createElement('message');
            $messageOutput->setAttribute('name', $name . 'Response');
            $this->wsdl_definitions->appendChild($messageInput);
            $this->wsdl_definitions->appendChild($messageOutput);

            foreach ($method['var'] as $methodVars) {
                if (isset($methodVars['param'])) {
                    $part = $this->wsdl->createElement('part');
                    $part->setAttribute('name', $methodVars['name']);
                    $part->setAttribute(
                        'type',
                        (($methodVars['array'] != 1 && $methodVars['class'] != 1) ?
                        'xsd:' : 'typens:') . $methodVars['wsdltype']
                    );
                    $messageInput->appendChild($part);
                }
                if (isset($methodVars['return'])) {
                    $part = $this->wsdl->createElement('part');
                    $part->setAttribute('name', $name.'Response');
                    $part->setAttribute(
                        'type',
                        (($methodVars['array'] != 1 && $methodVars['class'] != 1) ?
                        'xsd:' : 'typens:') . $methodVars['wsdltype']
                    );
                    $messageOutput->appendChild($part);
                }
            }
        }
    }
protected function createWSDL_messages ( ) { /*
        <message name="hello">
            <part name="i" type="xsd:int"/>
            <part name="j" type="xsd:string"/>
        </message>
        <message name="helloResponse">
            <part name="helloResponse" type="xsd:string"/>
        </message>
        */ foreach ( $ this -> wsdlStruct [ $ this -> wsdlclassname ] [ 'method' ] as $ name => $ method ) { $ messageInput = $ this -> wsdl -> createElement ( 'message' ) ; $ messageInput -> setAttribute ( 'name' , $ name ) ; $ messageOutput = $ this -> wsdl -> createElement ( 'message' ) ; $ messageOutput -> setAttribute ( 'name' , $ name . 'Response' ) ; $ this -> wsdl_definitions -> appendChild ( $ messageInput ) ; $ this -> wsdl_definitions -> appendChild ( $ messageOutput ) ; foreach ( $ method [ 'var' ] as $ methodVars ) { if ( isset ( $ methodVars [ 'param' ] ) ) { $ part = $ this -> wsdl -> createElement ( 'part' ) ; $ part -> setAttribute ( 'name' , $ methodVars [ 'name' ] ) ; $ part -> setAttribute ( 'type' , ( ( $ methodVars [ 'array' ] != 1 && $ methodVars [ 'class' ] != 1 ) ? 'xsd:' : 'typens:' ) . $ methodVars [ 'wsdltype' ] ) ; $ messageInput -> appendChild ( $ part ) ; } if ( isset ( $ methodVars [ 'return' ] ) ) { $ part = $ this -> wsdl -> createElement ( 'part' ) ; $ part -> setAttribute ( 'name' , $ name . 'Response' ) ; $ part -> setAttribute ( 'type' , ( ( $ methodVars [ 'array' ] != 1 && $ methodVars [ 'class' ] != 1 ) ? 'xsd:' : 'typens:' ) . $ methodVars [ 'wsdltype' ] ) ; $ messageOutput -> appendChild ( $ part ) ; } } } }
Create the messages node

@return void
Create the messages node