Código:
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" applicationComplete="srv.saludo()"> <fx:Declarations> <s:WebService id="srv" wsdl="http://localhost:9080/Proveedor/services/HolaMundo?wsdl" /> </fx:Declarations> <mx:DataGrid dataProvider="{srv.saludo.lastResult}"/> </s:Application>
y este es mi web service:
Código:
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://webservice" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservice" xmlns:intf="http://webservice" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)--> <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://webservice" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="saludo"> <complexType/> </element> <element name="saludoResponse"> <complexType> <sequence> <element name="saludoReturn" type="xsd:string"/> </sequence> </complexType> </element> </schema> </wsdl:types> <wsdl:message name="saludoResponse"> <wsdl:part element="impl:saludoResponse" name="parameters"> </wsdl:part> </wsdl:message> <wsdl:message name="saludoRequest"> <wsdl:part element="impl:saludo" name="parameters"> </wsdl:part> </wsdl:message> <wsdl:portType name="HolaMundo"> <wsdl:operation name="saludo"> <wsdl:input message="impl:saludoRequest" name="saludoRequest"> </wsdl:input> <wsdl:output message="impl:saludoResponse" name="saludoResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HolaMundoSoapBinding" type="impl:HolaMundo"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="saludo"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="saludoRequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="saludoResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HolaMundoService"> <wsdl:port binding="impl:HolaMundoSoapBinding" name="HolaMundo"> <wsdlsoap:address location="http://localhost:9080/Proveedor/services/HolaMundo"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
si alguien sabe por que esto no me funciona o conoce un buen link, tutorial, lo que sea, aunque dudo que no lo haya leido ya he redorrido toda la web XD....saludos gracias de ante mano.