NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problems following wsdl inheritancies (extension base="


Joined: 24 Aug 2007
Posts: 1
Reply with quote
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
View user's profileFind all posts by drb1215Send private message
Problems following wsdl inheritancies (extension base="
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic