1
私は、Webサービスで働いている:私はPHPのリクエストを送信してい`tns:ArrayOfAnyType`のxmlフィールドを初期化する方法は?
<s:element name="Recipients_AddOrUpdate">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="email" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="groups" type="tns:ArrayOfAnyType" />
</s:sequence>
</s:complexType>
</s:element>
:
$data='<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<SecHeader xmlns="http://www.inwise.com/schemas">
<username>'.$userName.'</username>
<pass>'.$password.'</pass>
</SecHeader>
</soap:Header>
<soap:Body>
<Recipients_AddOrUpdate xmlns="http://www.inwise.com/schemas">
<email>[email protected]</email>
</Recipients_AddOrUpdate>
</soap:Body>
</soap:Envelope>';
私の質問は、(tns:ArrayOfAnyType
)groups
のXMLノードを初期化する方法です?
この構文が動作していません。
<Recipients_AddOrUpdate xmlns="http://www.inwise.com/schemas">
<email>[email protected]</email>
<groups>15245</groups>
</Recipients_AddOrUpdate>