Joined: 24 Aug 2007 |
Posts: 1 |
|
|
|
Posted: Thu Aug 23, 2007 11:30 am |
|
|
|
|
|
Hi,
The wsdl that I'm using extends the methods I'm trying to use via extension = 'base'. When I try to pass in (array) information into a proxy call, it seems to build the non-inherited parameters into the request fine, but does nothing with the extended parameters. Any suggestions would be much appreciated.
Code:
require_once('nusoap.php');
$username = "user";
$password = "password";
$wsdlURL = "http://localhost/ssuite-wsmanage/services/ManagementService?wsdl";
$soap = new soapclient($wsdlURL, 'wsdl');
$soap->setCredentials($username, $password, 'basic');
$proxy = $soap->getProxy();
$query = array();
// The sipUsernameFilter gets built into the request, the iterator does not.
$query['iterator']['pageSize'] = '500';
$query['iterator']['startIndex'] = '5';
$query['sipUsernameFilter'] = 'fglynn';
$results = $proxy->queryUsers($query);
WSDL snippets: (I didn't include the entire wsdl, due to it's size...just the path that is taken)
<wsdl:operation name="queryUsers">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="queryUsersRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="queryUsersResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="ManagementFault">
<wsdlsoap:fault name="ManagementFault" use="literal" />
</wsdl:fault>
</wsdl:operation>
<xs:complexType name="QueryUsersRequest">
<xs:complexContent>
<xs:extension base="tns:ManagementQueryRequest">
<xs:sequence>
<xs:element minOccurs="0" name="extensionFilter" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="firstNameFilter" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="lastNameFilter" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="profileIdFilter" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="sipUsernameFilter" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
<xs:complexType abstract="true" name="ManagementQueryRequest">
<xs:complexContent>
<xs:extension base="tns:ManagementListRequest">
<xs:sequence>
<xs:element minOccurs="0" name="iterator" type="ns1:QueryIterator" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="QueryIterator">
<xs:annotation>
<xs:documentation>QueryIterator is used for paging query operations.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element default="100" name="pageSize" type="xs:short">
<xs:annotation>
<xs:documentation>Number of results to return in the page.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="0" name="startIndex" type="xs:int">
<xs:annotation>
<xs:documentation>Zero-based index from which to start the page from.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
thanks,
Dan
|
|