3 Replies Latest reply on Nov 13, 2007 11:23 AM by bitwyse

    Web services & wsdl

    Smoke007
      Hi forum,

      I'm flex beginer, please, be patient with my stupid question. I have web services with wsdl (see below). I need to connect to this services from Flex, so I defined:

      <mx:WebService id="wsBlogAggr"
      wsdl=" http://localhost:8080/echo/echo.wsdl"
      useProxy="false"
      showBusyCursor="true">
      <mx:operation name="echo">
      <mx:request>
      <echoRequest>test</echoRequest>
      </mx:request>
      </mx:operation>
      </mx:WebService>

      However, it doesn't work. What do I wrong?

      Thanks,

      Smoke007

      <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/" xmlns:schema=" http://www.springframework.org/spring-ws/samples/echo" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace=" http://www.springframework.org/spring-ws/samples/echo">
      <wsdl:types>
      <schema xmlns=" http://www.w3.org/2001/XMLSchema" xmlns:tns=" http://www.springframework.org/spring-ws/samples/echo" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace=" http://www.springframework.org/spring-ws/samples/echo">

      <element name="echoRequest">
      <simpleType>
      <restriction base="string">
      <pattern value="([A-Z]|[a-z])+"/>
      </restriction>
      </simpleType>
      </element>

      <element name="echoResponse" type="string"/>
      </schema>
      </wsdl:types>
      <wsdl:message name="echoResponse">
      <wsdl:part element="schema:echoResponse" name="echoResponse">
      </wsdl:part>
      </wsdl:message>
      <wsdl:message name="echoRequest">
      <wsdl:part element="schema:echoRequest" name="echoRequest">
      </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="Echo">
      <wsdl:operation name="echo">
      <wsdl:input message="schema:echoRequest" name="echoRequest">
      </wsdl:input>
      <wsdl:output message="schema:echoResponse" name="echoResponse">
      </wsdl:output>
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="EchoBinding" type="schema:Echo">
      <soap:binding style="document" transport=" http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="echo">
      <soap:operation soapAction=""/>
      <wsdl:input name="echoRequest">
      <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="echoResponse">
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="EchoService">
      <wsdl:port binding="schema:EchoBinding" name="EchoPort">
      <soap:address location=" http://localhost:8080/echo/services"/>
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>