0 Replies Latest reply on May 9, 2008 4:21 AM by 99Dev

    handling result ciontaining xml nodes from  c# web service method call in flex

      I have read a article headed: Handling results as XML with the e4x result format
      Using this I have build a test application.But facing lot of problems.

      Here are the details of my code.I have used first example of using namespace.

      private namespace tempNamespace = "TEST1.WebServices";
      use namespace tempNamespace;

      I have specified result type as 'e4x' :

      <mx:WebService id="myTestService" showBusyCursor="true"
      wsdl=" http://localhost/TEST/TestFlexWS.asmx?WSDL" useProxy="false">
      <mx:operation name="HelloWorldEx" resultFormat="e4x" result="Hello_Result_New(event);" fault="Hello_fault_New(event);">

      In result handler:

      o/p of myTestService.HelloWorldEx.lastResult is:

      <HelloWorldExResponse xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns="TEST1.WebServices" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/">
      &lt;PRODUCTNAME&gt;Test Product 121&lt;/PRODUCTNAME&gt;

      When I display alert for :
      Alert.show( myTestService.HelloWorldEx.lastResult.HelloWorldExResult);

      It's showing me result as:

      But when I display alert for inner node it doesn't show me anything:
      Alert.show( myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);

      Can anybody help me out?
      It will be gr8 help for me.