Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何将复杂类型参数传递给Web服务_Php_Xml_Web Services_Soap - Fatal编程技术网

Php 如何将复杂类型参数传递给Web服务

Php 如何将复杂类型参数传递给Web服务,php,xml,web-services,soap,Php,Xml,Web Services,Soap,我的Web服务提供者提供了一个WSDL,其中包含以下部分 <s:element minOccurs="0" maxOccurs="1" name="dtAcData"> <s:complexType> <s:sequence> <s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />

我的Web服务提供者提供了一个WSDL,其中包含以下部分

<s:element minOccurs="0" maxOccurs="1" name="dtAcData">
<s:complexType>
<s:sequence>
<s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
<s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
</s:sequence>
</s:complexType>
</s:element>
我试图从提供程序获取所需的XML。我的服务提供商说他们不知道他们的服务期望的XML格式。我尝试使用dtAcData关联数组。 $dtAcData=数组(“名称”=>“名称测试”)

但服务仍然返回“系统故障”

服务提供商说我的请求不包含所有数据

$dtAcData = array('Name Test');
$param = array(
                'strApp'          =>  'TEST',
                'strCode'   =>  '82',
                'strDelim'      =>  '^',
                'strDate'           =>  $tranDate,
                'strTime'           =>  $tranTime,
                'strNetID'          =>  'test',
                'intRefNum'         =>  $txn_referance_number,
                'intSTNUM'           =>  $intStan,
                'strTranMsg'        =>  '0200',
                'strMerName'        =>  '10.0.01.10',
                'strMCC'            =>  '1111',
                'strToken'          =>  $tranToken,              
                'strIDNum'          =>  '1234598798637',
                'dtAcData'         =>  $dtAcData,
                'R1'                =>  '',
                'R2'                =>  '',
                'R3'                =>  '',
                'R4'                =>  ''
                );

$result = $client->__soapCall("strAcData", $param);