Ok, I created a Web Service using PHP5 SOAP extension. I created the WSDL and I
can serve and consume that service in PHP. Now I am trying to consume the
service using Flash.

I have attached the WSDL file.

Now, I only have 1 method call, and it appears correctly in the Web Services
Panel. I add the method call and the WebServiceConnector is available
[id=wsc1]. The schema shows the data type as FACILITIES.

Now I add a list box [id=list1] (or combo box). I create a results binding
bound to the application.form1.list1 dataProvider.

I added a button, with the behavior to trigger the WebServiceConnector.

I get nothing.

I am obviously doing something wrong. However the tutorials from Macromedia
make no mention how to consume complex datatypes. I see the technotes stating
problems passing complex datatypes as parameters to a method call, but they
state there is no problem consuming them.

Anybody know what step I am missing to start the "magic"?



<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HRService"
targetNamespace="http://[omitted]/_services/hr/service.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://[omitted]/_services/hr/service.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<types>
<xsd:schema targetNamespace="HRService-XSD"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsd:complexType name="FACILITY">
<xsd:sequence>
<xsd:element name="id" type="xsd:int" />
<xsd:element name="name" type="xsd:string" />
</xsd:sequence>

</xsd:complexType>
<xsd:complexType name="FACILITIES">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="tns:FACILITY[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>

</types>

<message name="GetFacilitiesRequest" />

<message name="GetFacilitiesResponse">
<part name="result" type="tns:FACILITIES"/>
</message>

<portType name="HRSERVICE_PORTTYPE">
<operation name="getFacilities">
<input message="tns:GetFacilitiesRequest" />

<output message="tns:GetFacilitiesResponse" />
</operation>
</portType>

<binding name="HRSERVICE_BINDING" type="tns:HRSERVICE_PORTTYPE">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="getFacilities">
<soap:operation soapAction="getFacilities" />
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:ie:hrservice"
use="encoded" />

</input>
<output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:ie:hrservice"
use="encoded" />
</output>
</operation>
</binding>

<service name="HR_Service">
<documentation>WSDL File for HRService</documentation>

<port binding="tns:HRSERVICE_BINDING" name="HRSERVICE_PORT">
<soap:address location="http://[omitted]/_services/hr/" />
</port>
</service>
</definitions>