10 Replies Latest reply on Apr 21, 2011 3:24 AM by Sameer Bhatt

    DCD Http Service

    RSA_shree

      Hi ,

       

      Im new to Flex, im retreiving data using http url, after  accessing http url, im trying to bind data to dropdown but when running  the application it gives TypeError: Error #1085: The element type  "input" must be terminated by the matching end-tag "</input>".

       

      This is my mxml code

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            xmlns:pgroup="services.pgroup.*"
            xmlns:lookup="services.lookup.*">
         <fx:Script>
            <![CDATA[
               import com.adobe.serializers.utility.TypeUtility;
              
               import mx.events.FlexEvent;

       

       

       

              
               protected function dropDownList_creationCompleteHandler(event:FlexEvent):void
               {
                  pgroupResult.token  = lookup.pgroup(/*Enter value(s) for */ "2.5", "data", "1156",  "0a0fb7ff-eb61-47e2-9674-77d51b900b73", "2.0", "dse1","r");
               }
              
            ]]>
         </fx:Script>
         <fx:Declarations>
            <s:CallResponder id="pgroupResult"/>
            <lookup:Lookup id="lookup"/>

       


           
         </fx:Declarations>
         <s:DropDownList id="dropDownList" x="228" y="74"
                     creationComplete="dropDownList_creationCompleteHandler(event)" labelField="row">
            <s:AsyncListView list="{TypeUtility.convertToCollection(pgroupResult.lastResult)}"/>
         </s:DropDownList>
      </s:View>

       


      HTTP urls response
      ------------------

       


      <?xml version="1.0" encoding="UTF-8"?>
      <SERVICE-DATA-RESPONSE>
        <RESULT STATUS="ok"/>
        <STATUS_NUM> QUERY_SUCCESS</STATUS_NUM>
        <STATUS_MESSAGE> Service Query Successful </STATUS_MESSAGE>
        <SECTION TYPE="TABLE">
          <DATA-DEFINITION>
            <OUTPUT-LIST>
              <OUTPUT-PARAM NAME="Product Group"/>
            </OUTPUT-LIST>
            <DATA-RESULT>
              <ROW>
                <COLUMN>
                  <DATA><![CDATA[Body Care]]></DATA>
                </COLUMN>
              </ROW>
              <ROW>
                <COLUMN>
                  <DATA><![CDATA[Skin Care]]></DATA>
                </COLUMN>
              </ROW>
              <ROW>
                <COLUMN>
                  <DATA><![CDATA[Hair Care]]></DATA>
                </COLUMN>
              </ROW>
              <ROW>
                <COLUMN>
                  <DATA><![CDATA[Detergents]]></DATA>
                </COLUMN>
              </ROW>
              <ROW>
                <COLUMN>
                  <DATA><![CDATA[Oral Care]]></DATA>
                </COLUMN>
              </ROW>
            </DATA-RESULT>
          </DATA-DEFINITION>
        </SECTION>
      </SERVICE-DATA-RESPONSE>

       

       

       

      Thanks in advance
      Kiss