--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Can you send us the WSDL please? I don't have .NET 2.0 set up. > > Matt
Hi Matt I've kind of hijacked this thread so Tony (syndrake7) please don't hesitate to show your wsdl as well. Below is my wsdl and flex 2.0 code. i'm using a call object btw. flex 2.0 code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"> <mx:Script> <![CDATA[ import mx.controls.Alert; private function getDataSet():void { var call:Object = service1.GetDataSet(); call.onResult = returnWebService; } private function returnWebService(result:Object):void { dg.dataProvider = result.diffgram.NewDataSet.Table; } ]]> </mx:Script> <mx:WebService id="service1" wsdl="http://localhost/FlexTestWebService/Service1.asmx?wsdl" showBusyCursor="true" fault="mx.controls.Alert.show (event.fault.faultstring, 'WebService')"/> <mx:Button label="populate DG" click="getDataSet()" /> <mx:DataGrid id="dg"> <mx:columns> <mx:Array> <mx:DataGridColumn columnName="CODE" headerText="Code"/> <mx:DataGridColumn columnName="STATUS" headerText="Status"/> <mx:DataGridColumn columnName="DESC" headerText="Description"/> <mx:DataGridColumn columnName="SHORT" headerText="Short"/> </mx:Array> </mx:columns> </mx:DataGrid> </mx:Application> wsdl - btw its not .net 2.0, but i'm getting the same error <?xml version="1.0" encoding="utf-8" ?> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> <s:import namespace="http://www.w3.org/2001/XMLSchema" /> <s:element name="GetDataSet"> <s:complexType /> </s:element> <s:element name="GetDataSetResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="GetDataSetResult"> <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="HelloWorld"> <s:complexType /> </s:element> <s:element name="HelloWorldResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> </s:schema> </wsdl:types> <wsdl:message name="GetDataSetSoapIn"> <wsdl:part name="parameters" element="tns:GetDataSet" /> </wsdl:message> <wsdl:message name="GetDataSetSoapOut"> <wsdl:part name="parameters" element="tns:GetDataSetResponse" /> </wsdl:message> <wsdl:message name="HelloWorldSoapIn"> <wsdl:part name="parameters" element="tns:HelloWorld" /> </wsdl:message> <wsdl:message name="HelloWorldSoapOut"> <wsdl:part name="parameters" element="tns:HelloWorldResponse" /> </wsdl:message> <wsdl:portType name="Service1Soap"> <wsdl:operation name="GetDataSet"> <wsdl:input message="tns:GetDataSetSoapIn" /> <wsdl:output message="tns:GetDataSetSoapOut" /> </wsdl:operation> <wsdl:operation name="HelloWorld"> <wsdl:input message="tns:HelloWorldSoapIn" /> <wsdl:output message="tns:HelloWorldSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Service1Soap" type="tns:Service1Soap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="GetDataSet"> <soap:operation soapAction="http://tempuri.org/GetDataSet" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="HelloWorld"> <soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Service1"> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/" /> <wsdl:port name="Service1Soap" binding="tns:Service1Soap"> <soap:address location="http://localhost/FlexTestWebService/Service1.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions> -- 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/