2 Replies Latest reply on Aug 8, 2007 7:24 AM by flashgruven

    WebService with multiple operations

    flashgruven Level 1
      Is it possible to have one WebService declaration with multiple operations?

      I see an operations tag vs. an operation tag but can't find any good documentation on it.

      It seems like an ASP.NET WebService (endpoint defined by a WSDL) can have many web methods/operations and therefore the <mx:WebService> tag should support multiple <mx:operation> tags perhaps inside an <mx:operations> tag?

      Is this the way it works? Is there any documentation on this or samples??

      Thank in Advance,
      George
        • 1. Re: WebService with multiple operations
          DanaB97531
          Yes, you can have multiple operations. Here's a generic example

          <mx:WebService id="ws" sdl="yourlinkhere" showBusyCursor="true" fault="faultHandler(event)">
          <mx:operation name="wsMethod1" result="wsMethod1Handler(event)">
          <mx:request xmlns="">
          <param1>Param1 Value</param1>
          <param2>Param2 Value</param2>
          </mx:request>
          </mx:operation>
          <mx:operation name="wsMethod2" result="wsMethod2Handler(event)">
          <mx:request xmlns="">
          <param1>Param1 Value</param1>
          <param2>Param2 Value</param2>
          </mx:request>
          </mx:operation>
          <mx:operation name="wsMethod3" result="wsMethod3Handler(event)">
          <mx:request xmlns="">
          <param1>Param1 Value</param1>
          <param2>Param2 Value</param2>
          </mx:request>
          </mx:operation>
          </mx:WebService>
          • 2. Re: WebService with multiple operations
            flashgruven Level 1
            Ah, so easy it was hard for me to see it.

            It think it was the mx:operations in Flex Builder's drop down type ahead that caused me to get confused and head down the wrong path.

            Thanks for your reply,
            George