protected function createWSDL_binding()
    {
        /*
        <binding name="myServiceBinding" type="typens:myServicePort">
            <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="hello">
                    <soap:operation soapAction="urn:myServiceAction"/>
                    <input>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </input>
                    <output>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </output>
            </operation>
        </binding>
        */
        $binding = $this->wsdl->createElement('binding');
        $binding->setAttribute('name', $this->wsdlclassname . 'Binding');
        $binding->setAttribute('type', 'typens:' . $this->wsdlclassname . 'Port');
        $soap_binding = $this->wsdl->createElement('soap:binding');
        $soap_binding->setAttribute('style', 'rpc');
        $soap_binding->setAttribute('transport', self::SCHEMA_SOAP_HTTP);
        $binding->appendChild($soap_binding);
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $name => $vars) {
            $operation = $this->wsdl->createElement('operation');
            $operation->setAttribute('name', $name);
            $binding->appendChild($operation);
            $soap_operation = $this->wsdl->createElement('soap:operation');
            $soap_operation->setAttribute(
                'soapAction',
                'urn:'.$this->wsdlclassname.'Action'
            );
            $operation->appendChild($soap_operation);
            $input  = $this->wsdl->createElement('input');
            $output = $this->wsdl->createElement('output');
            $operation->appendChild($input);
            $operation->appendChild($output);
            $soap_body = $this->wsdl->createElement('soap:body');
            $soap_body->setAttribute('use', 'encoded');
            $soap_body->setAttribute('namespace', 'urn:'.$this->namespace);
            $soap_body->setAttribute('encodingStyle', self::SOAP_SCHEMA_ENCODING);
            $input->appendChild($soap_body);
            $soap_body = $this->wsdl->createElement('soap:body');
            $soap_body->setAttribute('use', 'encoded');
            $soap_body->setAttribute('namespace', 'urn:'.$this->namespace);
            $soap_body->setAttribute('encodingStyle', self::SOAP_SCHEMA_ENCODING);
            $output->appendChild($soap_body);
        }
        $this->wsdl_definitions->appendChild($binding);
    }
protected function createWSDL_binding()
    {
        /*
        <binding name="myServiceBinding" type="typens:myServicePort">
            <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="hello">
                    <soap:operation soapAction="urn:myServiceAction"/>
                    <input>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </input>
                    <output>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </output>
            </operation>
        </binding>
        */
        $binding = $this->wsdl->createElement('binding');
        $binding->setAttribute('name', $this->wsdlclassname . 'Binding');
        $binding->setAttribute('type', 'typens:' . $this->wsdlclassname . 'Port');
        $soap_binding = $this->wsdl->createElement('soap:binding');
        $soap_binding->setAttribute('style', 'rpc');
        $soap_binding->setAttribute('transport', self::SCHEMA_SOAP_HTTP);
        $binding->appendChild($soap_binding);
        foreach ($this->wsdlStruct[$this->wsdlclassname]['method'] as $name => $vars) {
            $operation = $this->wsdl->createElement('operation');
            $operation->setAttribute('name', $name);
            $binding->appendChild($operation);
            $soap_operation = $this->wsdl->createElement('soap:operation');
            $soap_operation->setAttribute(
                'soapAction',
                'urn:'.$this->wsdlclassname.'Action'
            );
            $operation->appendChild($soap_operation);
            $input  = $this->wsdl->createElement('input');
            $output = $this->wsdl->createElement('output');
            $operation->appendChild($input);
            $operation->appendChild($output);
            $soap_body = $this->wsdl->createElement('soap:body');
            $soap_body->setAttribute('use', 'encoded');
            $soap_body->setAttribute('namespace', 'urn:'.$this->namespace);
            $soap_body->setAttribute('encodingStyle', self::SOAP_SCHEMA_ENCODING);
            $input->appendChild($soap_body);
            $soap_body = $this->wsdl->createElement('soap:body');
            $soap_body->setAttribute('use', 'encoded');
            $soap_body->setAttribute('namespace', 'urn:'.$this->namespace);
            $soap_body->setAttribute('encodingStyle', self::SOAP_SCHEMA_ENCODING);
            $output->appendChild($soap_body);
        }
        $this->wsdl_definitions->appendChild($binding);
    }
protected function createWSDL_binding ( ) { /*
        <binding name="myServiceBinding" type="typens:myServicePort">
            <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="hello">
                    <soap:operation soapAction="urn:myServiceAction"/>
                    <input>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </input>
                    <output>
                        <soap:body use="encoded" namespace="urn:myService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </output>
            </operation>
        </binding>
        */ $ binding = $ this -> wsdl -> createElement ( 'binding' ) ; $ binding -> setAttribute ( 'name' , $ this -> wsdlclassname . 'Binding' ) ; $ binding -> setAttribute ( 'type' , 'typens:' . $ this -> wsdlclassname . 'Port' ) ; $ soap_binding = $ this -> wsdl -> createElement ( 'soap:binding' ) ; $ soap_binding -> setAttribute ( 'style' , 'rpc' ) ; $ soap_binding -> setAttribute ( 'transport' , self :: SCHEMA_SOAP_HTTP ) ; $ binding -> appendChild ( $ soap_binding ) ; foreach ( $ this -> wsdlStruct [ $ this -> wsdlclassname ] [ 'method' ] as $ name => $ vars ) { $ operation = $ this -> wsdl -> createElement ( 'operation' ) ; $ operation -> setAttribute ( 'name' , $ name ) ; $ binding -> appendChild ( $ operation ) ; $ soap_operation = $ this -> wsdl -> createElement ( 'soap:operation' ) ; $ soap_operation -> setAttribute ( 'soapAction' , 'urn:' . $ this -> wsdlclassname . 'Action' ) ; $ operation -> appendChild ( $ soap_operation ) ; $ input = $ this -> wsdl -> createElement ( 'input' ) ; $ output = $ this -> wsdl -> createElement ( 'output' ) ; $ operation -> appendChild ( $ input ) ; $ operation -> appendChild ( $ output ) ; $ soap_body = $ this -> wsdl -> createElement ( 'soap:body' ) ; $ soap_body -> setAttribute ( 'use' , 'encoded' ) ; $ soap_body -> setAttribute ( 'namespace' , 'urn:' . $ this -> namespace ) ; $ soap_body -> setAttribute ( 'encodingStyle' , self :: SOAP_SCHEMA_ENCODING ) ; $ input -> appendChild ( $ soap_body ) ; $ soap_body = $ this -> wsdl -> createElement ( 'soap:body' ) ; $ soap_body -> setAttribute ( 'use' , 'encoded' ) ; $ soap_body -> setAttribute ( 'namespace' , 'urn:' . $ this -> namespace ) ; $ soap_body -> setAttribute ( 'encodingStyle' , self :: SOAP_SCHEMA_ENCODING ) ; $ output -> appendChild ( $ soap_body ) ; } $ this -> wsdl_definitions -> appendChild ( $ binding ) ; }
Create the binding node

@return void
Create the binding node