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:
<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
<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
$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