SOAP / PHP:复杂类型作为函数参数

时间:2017-06-28 15:57:49

标签: php soap complextype

我正在使用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")

0 个答案:

没有答案