我正在使用SOAP Web服务,并希望调用使用ComplexType
EmailList
作为参数的函数:
<xsd:element name="EmailList">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="1024">
<xsd:element name="Number" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
这是我的代码:
$wsdl = __DIR__ . '/wsdl.wsdl';
$emailList = ???
$service = new SoapClient($wsdl, $options);
$service->sendMessage($emailList, "test", "mon message");
如何声明$emailList
变量? (数组?array("myemail.com")
)