0 Replies Latest reply on Dec 3, 2010 9:17 PM by nuudles

    Looking for some clarification regarding SOAP web services

    nuudles

      I asked this question at experts-exchange but received no response yet so I thought I'd post here to see if there's a guru that can help me. Hopefully there is.

       

      I'm trying to figure out SOAP to use to communicate between a server written in C and a client written in Flex and I could really use some clarification on what's required.

       

      I'm using the libcsoap library under Linux and after compiling there is a simple server that simply echoes back the message that the client sends. For the Flex client I've attempted to cludge together what I could using the examples online, that's where confusion ensues.

       

      All of the Flex examples that use a WebService use a WSDL that's pulled from the server, does anyone know if this is a requirement of Flex? Also, will a WSDL document coexist with any web service that it has been written to match?

       

      The code for the server can be found at http://code.google.com/p/phoebus/source/browse/trunk/libsoap-1.1.0/examples/csoap/simplese rver.c?r=7

       

      and the client test that I'm trying to use so far is

      1:
      2:
      3:
      4:
      5:
      6:
      7:
      8:
      9:
      10:
      11:
      12:
      13:
      14:
      15:
      16:
      17:
      
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application name="SoapClient" pageTitle="SoapClient"
        applicationComplete="srv.sayHello.send('xsd:string', 'name', 'Test')"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:s="library://ns.adobe.com/flex/spark">
      
        <fx:Declarations>
          <s:WebService id="srv" endpointURI="http://10.0.0.50:10000/csoapserver">
            <mx:operation name="sayHello"/>
          </s:WebService>
        </fx:Declarations>
      
        <s:Label text="{srv.sayHello}"/>
      
      </s:Application>

      but this was just a guess so I wouldn't be surprised to find out that I completely missed the mark.

       

      Thanks for any help.