I try to access a web service (SOAP, WSDL available) using ext/soap.
The argument of the SOAP function is quite nestled.
Today I've searched the web, but haven't found an example which uses an argument with is more
nestled than 1 dimension. The PHP documentation is not complete at this point, so it's undocumentated.
My question: What's the general syntax for nestled parameters (or: how must the following
$parameters be built?).
$return = $soapclient->myFunction ($parameters);
An exception from WSDL file to make it more clear:
<s:complexType name="GetModifiedOrdersInput">
<s:sequence>
<s:element name="QueryRequestHeader" type="que:queryRequestHeader" minOccurs="0"/>
<s:element name="FromDate" type="s:dateTime" minOccurs="0"/>
<s:element name="ToDate" type="s:dateTime" minOccurs="0"/>
<s:element name="OrderQueryOptions" type="que:orderQueryOptions" minOccurs="0"/>
</s:sequence>
</s:complexType>
....
<s:complexType name="queryRequestHeader">
<s:sequence>
<s:element name="PartnerCode" type="s:string" minOccurs="0"/>
<s:element name="AuthToken" type="que:authToken" minOccurs="0"/>
<s:element name="ReplayToken" type="s:string" minOccurs="0"/>
<s:element name="UseReplayToken" type="s:boolean" minOccurs="0"/>
</s:sequence>
</s:complexType>
....
<s:complexType name="orderQueryOptions">
<s:sequence>
<s:element name="ReturnProductDetail" type="s:boolean" minOccurs="0"/>
<s:element name="ReturnContacts" type="s:boolean" minOccurs="0"/>
<s:element name="ReturnCertificateInfo" type="s:boolean" minOccurs="0"/>
<s:element name="ReturnFulfillment" type="s:boolean" minOccurs="0"/>
<s:element name="ReturnCACerts" type="s:boolean" minOccurs="0"/>
<s:element name="ReturnOrderAttributes" type="s:boolean" minOccurs="0"/>
</s:sequence>
</s:complexType>
Best Regards,
Moritz Augustin
Core Networks GmbH
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php