0 Replies Latest reply on Dec 7, 2007 8:13 AM by AnneGFilms

    Flex & ArcGis

    AnneGFilms
      I'm a newbie to both Flex & ArchGis Server. I"m using Flex 3.0, direct rpc call (no Flex Data Service). Also, I know the endpoint works because we have an existing java implementation that calls up a map.

      Does anyone know how to do the equivalent of these two calls in Flex?

      MapServerInfo mapinfo = mapserver.GetServerInfo(mapserver.GetDefaultMapName());
      MapDescription mapdesc = mapinfo.DefaultMapDescription;
      ( http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/ArcGIS/SOAP/map_overview.ht m)

      I have an ..\MapServer?wsdl endpoint, and I want to use the <mx:WebService> tag in my Flex mxml.
      Here's what I have so far, and I"ve tried various combinations of operation calls.

      <mx:WebService
      id="xxx"
      service="xxx"
      result="Alert.show('ResultFound')"
      wsdl=" http://.../MapServer?wsdl"
      makeObjectsBindable="true"
      fault="Alert.show('Service Error')">

      <mx:operation name="GetServerInfo" fault="Alert.show('Operation Error')">
      </mx:operation>

      </mx:WebService>

      I then try to reference the object, but it returns NULL :
      <mx:Label width="100%" color="black" text="- {xxx.GetServerInfo.lastResult.MapName} -"/>

      I can't find clear documentation on the order or syntax for making the operation calls from the wsdl. I'd appreciate any help to get educated on using web services from Flex.

      Thanks very much!