SOAP with PHP5

windows

Guest
So I've been poring over all the PHP5/SOAP related stuff I can find, but I still haven't been able to find a very complex example of data being returned. Say an 'equipment' type with a description. I want to be able to return a list of these types. From my WSDL:

<xsd:complexType name="EquipmentArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:Equipment[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Equipment">
<xsd:all>
<xsd:element name="Description" type="xsd:string"/>
</xsd:all>
</xsd:complexType>

What would the code look like to return that structure? I'm not sure how to use SOAPVar to generate the right type and structure.
 
Back
Top