Php Nusoap如何使用现有的WSDL?

Php Nusoap如何使用现有的WSDL?,php,soap,wsdl,nusoap,Php,Soap,Wsdl,Nusoap,所以我有一个WSDL,作为soap服务的文档。我需要完全按照定义实现这个服务,我不想使用nusoap重写wsdl。有没有办法告诉对象nusoap_server=newsoap_server();使用现有wsdl,然后实现现有wsdl中的功能 谢谢$WSDL='/path/to/WSDL/file'; $nusoap\u server=新的soap\u服务器($WSDL) 唯一的问题是nusoap可能无法正确创建响应,但它将承载wsdl文件 我必须自定义我的xml响应 您可以告诉nusoap这样做

所以我有一个WSDL,作为soap服务的文档。我需要完全按照定义实现这个服务,我不想使用nusoap重写wsdl。有没有办法告诉对象nusoap_server=newsoap_server();使用现有wsdl,然后实现现有wsdl中的功能


谢谢

$WSDL='/path/to/WSDL/file'; $nusoap\u server=新的soap\u服务器($WSDL)

唯一的问题是nusoap可能无法正确创建响应,但它将承载wsdl文件

我必须自定义我的xml响应

您可以告诉nusoap这样做,但需要修改库

<?PHP     

function serialize_return() {
                    //$this->fuze_debug(array('test',$this->fuze_print_s($this->methodreturn)),'soap_server_debug.log');
                    $this->debug('Entering serialize_return methodname: ' . $this->methodname . ' methodURI: ' . $this->methodURI);
                    // if fault
                    if (isset($this->methodreturn) && is_object($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
                            $this->debug('got a fault object from method');
                            $this->fault = $this->methodreturn;
                            return;
                            // for some reason with code ignitor this doesnot get set correctly
                    } elseif ($this->methodreturnisliteralxml) {
                            //$this->fuze_debug(array('literal xml is : ',$this->fuze_print_s($this->methodreturnisliteralxml)),'soap_server_debug.log');
                            $return_val = $this->methodreturn;
                    // returned value(s)
                    } else {