Hi there,
I am trying to connect to a webservice on my local machine. I have 
the crossdomain.xml and everything in place and the flex app does 
see the service.
However, when I try to post to it I get the error:

Element http://localhost/bookingsystem:logonResponse not resolvable
at 
mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/intern
al::parseMessage()
at mx.rpc.soap$internal::WSDLOperation/parseMessages()
at 
mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/interna
l::invokePendingCall()
at mx.rpc.soap::Operation/send()
at mx.rpc.soap.mxml::Operation/send()
at meeting/__button1_click()


My MXML looks like this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"; 
xmlns="*">
<mx:WebService id="meetingRoomService" 
wsdl="http://localhost/bookingservice/Service.asmx?wsdl";>
<mx:operation name="logon">
<mx:request>
<uname>{uname.text}</uname>
<upassword>
{upassword.text}
</upassword>
</mx:request>
</mx:operation>

</mx:WebService>
<mx:states>
<mx:State name="mainScreen">
<mx:RemoveChild child="{upassword}"/>
<mx:RemoveChild child="{label1}"/>
<mx:RemoveChild child="{label2}"/>
<mx:RemoveChild child="{uname}"/>
<mx:RemoveChild child="{button1}"/>
<mx:PropertyOverride target="{MeetingRoom}" property="title" 
value="Meeting Room"/>
<mx:PropertyOverride target="{MeetingRoom}" property="width" 
value="100%"/>
<mx:PropertyOverride target="{MeetingRoom}" property="height" 
value="100%"/>
<mx:PropertyOverride target="{MeetingRoom}" property="x" value="0"/>
<mx:PropertyOverride target="{edgeanchor1}" property="top" value=""/>
<mx:PropertyOverride target="{MeetingRoom}" property="y" 
value="249"/>
</mx:State>
</mx:states>
<mx:Resize id="resize" duration="1000" widthFrom="260" 
widthTo="500"/>
<mx:Canvas width="100%" height="100%">

<mx:Panel id="MeetingRoom" title="Meeting App Login" 
horizontalAlign="center" verticalAlign="middle" label="Login" 
width="400" resizeEffect="resize" height="135" x="8">
<mx:layoutConstraints>
<mx:EdgeAnchor top="2" id="edgeanchor1"/>
</mx:layoutConstraints>
<mx:Canvas height="100%" width="100%">
<mx:Label x="39" y="23" text="Username" id="label2"/>
<mx:Label x="45" y="53" text="Password" id="label1"/>
<mx:Button x="286" y="52" label="Log on" id="button1" 
click="meetingRoomService.logon.send(); currentState='mainScreen'" 
resizeEffect="Resize"/>
<mx:TextInput x="106" y="22" id="uname"/>
<mx:TextInput x="106" y="51" id="upassword" password="true"/>
</mx:Canvas>
</mx:Panel>

</mx:Canvas>
</mx:Application>



and the wsdl looks like this:



<?xml version="1.0" encoding="utf-8" ?> 
- <wsdl:definitions 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:tns="http://localhost/bookingsystem"; 
xmlns:s="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
targetNamespace="http://localhost/bookingsystem"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" 
targetNamespace="http://localhost/bookingsystem";>
- <s:element name="logon">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="uname" 
type="s:string" /> 
<s:element minOccurs="0" maxOccurs="1" name="upassword" 
type="s:string" /> 
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="logonResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="logonResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" /> 
<s:any /> 
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="meetingAttendees">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MeetGuid" 
type="s:string" /> 
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="meetingAttendeesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" 
name="meetingAttendeesResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" /> 
<s:any /> 
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
- <wsdl:message name="logonSoapIn">
<wsdl:part name="parameters" element="tns:logon" /> 
</wsdl:message>
- <wsdl:message name="logonSoapOut">
<wsdl:part name="parameters" element="tns:logonResponse" /> 
</wsdl:message>
- <wsdl:message name="meetingAttendeesSoapIn">
<wsdl:part name="parameters" element="tns:meetingAttendees" /> 
</wsdl:message>
- <wsdl:message name="meetingAttendeesSoapOut">
<wsdl:part name="parameters" 
element="tns:meetingAttendeesResponse" /> 
</wsdl:message>
- <wsdl:portType name="ServiceSoap">
- <wsdl:operation name="logon">
<wsdl:documentation 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Login</wsdl:documentati
on> 
<wsdl:input message="tns:logonSoapIn" /> 
<wsdl:output message="tns:logonSoapOut" /> 
</wsdl:operation>
- <wsdl:operation name="meetingAttendees">
<wsdl:documentation 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Meeting 
Attendees</wsdl:documentation> 
<wsdl:input message="tns:meetingAttendeesSoapIn" /> 
<wsdl:output message="tns:meetingAttendeesSoapOut" /> 
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"; /> 
- <wsdl:operation name="logon">
<soap:operation soapAction="http://localhost/bookingsystem/logon"; 
style="document" /> 
- <wsdl:input>
<soap:body use="literal" /> 
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" /> 
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="meetingAttendees">
<soap:operation 
soapAction="http://localhost/bookingsystem/meetingAttendees"; 
style="document" /> 
- <wsdl:input>
<soap:body use="literal" /> 
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" /> 
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; /> 
- <wsdl:operation name="logon">
<soap12:operation soapAction="http://localhost/bookingsystem/logon"; 
style="document" /> 
- <wsdl:input>
<soap12:body use="literal" /> 
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" /> 
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="meetingAttendees">
<soap12:operation 
soapAction="http://localhost/bookingsystem/meetingAttendees"; 
style="document" /> 
- <wsdl:input>
<soap12:body use="literal" /> 
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" /> 
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Service">
- <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address 
location="http://localhost/bookingservice/Service.asmx"; /> 
</wsdl:port>
- <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address 
location="http://localhost/bookingservice/Service.asmx"; /> 
</wsdl:port>
</wsdl:service>
</wsdl:definitions>



Anyone any Ideas?

David









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to