NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
parameters to nusoap call function


Joined: 17 Jun 2009
Posts: 1
Reply with quote
Just started to use nusoap and got it to work with some straight forward web services.
Now I am not sure how to send the parameters to the given function. The web service works as i was able to use it with Java with no problems - but now i have to call it through PHP

From wsdl:

Code:

<complexType name="ManagedEntityKey">
   <sequence/>
</complexType>

<complexType name="ClassOfServiceKey">
   <complexContent>
   <extension base="tns1:ManagedEntityKey">
      <sequence>
         <element name="classOfServiceId" nillable="true" type="xsd:string"/>
      </sequence>
   </extension>
   </complexContent>
</complexType>


Here is the definition of the call i need to make
Code:

<message name="getNextItemsRequest">
   <part name="in0" type="xsd:string"/>
   <part name="in1" type="tns1:ManagedEntityKey"/>
   <part name="in2" type="xsd:int"/>
   <part name="in3" type="xsd:int"/>
</message>


so i want to send a ClassOfServiceKey into the in1 parameter.
Here is what i have attempted to no avail

Code:


    $searchKey = array( 'classOfServiceId' => 'cos11');
    $keys = $client->call( 'getNextItems', array( 'in0' => $psx, 'in1' => $searchKey, 'in2' => $chunkSize, 'in3' => $chunkNum));



I am not sure how to make the connection from the ManagedEntityKey to the ClassOfServiceKey - or if my syntax is even correct

Any suggestions would be great
View user's profileFind all posts by bdmcgraneSend private message
parameters to nusoap call function
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