Service 是否可以使用nusoap';s call()函数?

Service 是否可以使用nusoap';s call()函数?,service,nusoap,fedex,Service,Nusoap,Fedex,我正在创建一个将利用联邦快递网络服务的类。我试图通过nusoap php类的nosoapclient()函数进行通信,并向其传递一个wsdl文件。联邦快递似乎在请求的文档根中需要一个名称空间属性 我可以使用nusoap的call()函数,并将一个XML字符串作为参数agrument传递给它,该参数将正常工作。我宁愿传递一个数组作为参数参数,这就是我遇到的问题 是否可以通过nusoap的call()函数传递数组,并在根目录中包含名称空间属性 联邦快递费率请求PHP EXPERPT 下面是我想做的事

我正在创建一个将利用联邦快递网络服务的类。我试图通过nusoap php类的nosoapclient()函数进行通信,并向其传递一个wsdl文件。联邦快递似乎在请求的文档根中需要一个名称空间属性

我可以使用nusoap的call()函数,并将一个XML字符串作为参数agrument传递给它,该参数将正常工作。我宁愿传递一个数组作为参数参数,这就是我遇到的问题

是否可以通过nusoap的call()函数传递数组,并在根目录中包含名称空间属性

联邦快递费率请求PHP EXPERPT
下面是我想做的事情,而不是实际的代码

联邦快递费率请求XML摘录 以下不是完整的XML(查看末尾的RateRequest标记以查看差异)

格式不正确

。。。
正确格式

。。。
如果我错过了其他地方的对话,我会提前表示歉意,但我一直在搜索网络,尽我所能让它发挥作用,如果不可能的话,有什么建议吗?提前感谢您的帮助

$client = new nusoapclient('RateRequest_v9.wsdl',true);
//Thought this would work but to no avail.
//$request_array is a multi-associative array with keys as required XML tag names and values as the tags inner value, did not include as it is irrelevant to this problem
//$root_attr = array('xmlns'=>'http://fedex.com/ws/rate/v9');
//$parameters = array('RateRequest'=>new soapval('RateRequest',false,$request_array,false,false,$root_attr));

$parameters = array('RateRequest'=>$request_array);

//Have tried with and without the third argument - which is the for the namespace
$response = $client->call('getRates',$parameters,'http://fedex.com/ws/rate/v9');
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns="http://fedex.com/ws/rate/v9"><SOAP-ENV:Body><RateRequest>...</RateRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns="http://fedex.com/ws/rate/v9"><SOAP-ENV:Body><RateRequest xmlns="http://fedex.com/ws/rate/v9">...</RateRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>