SOAP-ERROR:编码:对象没有';任何';财产

SOAP-ERROR:编码:对象没有';任何';财产,soap,wsdl,Soap,Wsdl,它会还给我的 “致命错误:SOAP-error:编码:对象在..中没有'any'属性”设置为字符串 $info=$client->\uuuSOAPCALL(“PN\u SET\u ACTUAL”,数组($ap\u param)) 这是一个功能: 服务器上的GN_SET_ACTUAL(XmlDocument actuals,Int32 integration_id) 这是来自wdsl的描述 $sh_param = array( 'SessionKey' => $sessionKey

它会还给我的 “致命错误:SOAP-error:编码:对象在..中没有'any'属性”设置为字符串 $info=$client->\uuuSOAPCALL(“PN\u SET\u ACTUAL”,数组($ap\u param))

这是一个功能: 服务器上的GN_SET_ACTUAL(XmlDocument actuals,Int32 integration_id)

这是来自wdsl的描述

$sh_param = array( 
    'SessionKey' => $sessionKey, 
    'ClientName' => 'QABudgetClient',
    'UserName'   => 'username'
);
$ap_param = array(
    'actuals' => array(
        'BUDGET' => array( 
            'Business_Unit' => 1,
        ),
    ),
    'integration_id' => 1
);
$headers = new SoapHeader('http://tempuri.org/', 'SecurityHeader', $sh_param);
$client->__setSoapHeaders($headers); 
$info = $client->__soapCall("GN_SET_ACTUAL", array($ap_param));

此请求在SOAPUI中运行良好:

<s:element name="GN_SET_ACTUAL">
    <s:complexType>
        <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="actuals">
                <s:complexType mixed="true">
                    <s:sequence>
                        <s:any/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element minOccurs="1" maxOccurs="1" name="integration_id" type="s:int"/>
        </s:sequence>
    </s:complexType>
</s:element>

XXX
QabutcClient
用户名
1.
1.

你能帮我吗?错误是什么?

请确保您在请求中传递了“any”参数,这可能是它所期望的。如果您解决了此问题,我将得到相同的错误。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header>
      <tem:SecurityHeader>
         <!--Optional:-->
         <tem:SessionKey>XXX</tem:SessionKey>
         <!--Optional:-->
         <tem:ClientName>QABudgetClient</tem:ClientName>
         <!--Optional:-->
         <tem:UserName>username</tem:UserName>
      </tem:SecurityHeader>
   </soapenv:Header>
   <soapenv:Body>
      <tem:GN_SET_ACTUAL>
         <!--Optional:-->
         <tem:actuals>
             <BUDGET>
               <Business_Unit>1</Business_Unit>
           </BUDGET>
         </tem:actuals>
         <tem:integration_id>1</tem:integration_id>
      </tem:GN_SET_ACTUAL>
   </soapenv:Body>
</soapenv:Envelope>