Php WSDL2HP生成的类中数组方法的类型提示?
我正在使用从WSDL生成的类代码到PHP。让我感到困惑的是类方法的编写方式,因此简单数组似乎需要成为不存在的类的对象 尤其是此TFolderArray,文档应将其作为TFolder对象的简单数组:Php WSDL2HP生成的类中数组方法的类型提示?,php,oop,wsdl,wsdl2php,Php,Oop,Wsdl,Wsdl2php,我正在使用从WSDL生成的类代码到PHP。让我感到困惑的是类方法的编写方式,因此简单数组似乎需要成为不存在的类的对象 尤其是此TFolderArray,文档应将其作为TFolder对象的简单数组: <xsd:complexType name="TFolderArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:ar
<xsd:complexType name="TFolderArray">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:TFolder[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
您使用哪个工具将wsdl转换为php?顺便说一句,您可以尝试删除函数定义中的TFolderArray。最后,我确实删除了数组的类提示。我使用了两种不同的工具,得到了类似的结果。这个特定的集合是由您用来将wsdl转换为php的wich工具呈现的?顺便说一句,您可以尝试删除函数定义中的TFolderArray。最后,我确实删除了数组的类提示。我使用了两种不同的工具,得到了类似的结果。那个特定的场景是由
public function GetOpportunityList(TLoginInfo $LoginInfo, $AllRecords, TFolderArray $FolderArray) {
return $this->__soapCall('GetOpportunityList', array($LoginInfo, $AllRecords, $FolderArray), array(
'uri' => 'urn:ExchangeService:Exchange33',
'soapaction' => ''
)
);
}