5 Replies Latest reply on Feb 17, 2010 2:20 AM by Vikram_S

    WebServices

    Shweta Gothe

      Hi ,

       

      In the schema , two operations are having same input and output messge.I am not able to that hit operation.Is it that Flex is not able to generate the stubs because of the namespace used in the schema ?

        • 1. Re: WebServices
          Yogi_ACE Level 2

          Not able to understand your question correctly.

          • 2. Re: WebServices
            Shweta Gothe Level 1

            <wsdl:operation name="UpdateST">
              <wsdl:input message="tns:SavedSTRequest" />
              <wsdl:output message="tns:GenericResponse" />
              <wsdl:fault name="Fault" message="tns:FaultMessage" />
              </wsdl:operation>
             
              <wsdl:operation name="CreateST">
              <wsdl:input message="tns:SavedSTRequest" />
              <wsdl:output message="tns:GR" />
              <wsdl:fault name="Fault" message="tns:FaultMessage" />
              </wsdl:operation>

             

            I am able to hit CreateST but when I am trying to hit UpdateST I am getting 2032 error

            • 3. Re: WebServices
              Shweta Gothe Level 1

              <wsdl:operation name="UpdateST">
                <wsdl:input message="tns:SavedSTRequest" />
                <wsdl:output message="tns:GenericResponse" />
                <wsdl:fault name="Fault" message="tns:FaultMessage" />
                </wsdl:operation>
               
                <wsdl:operation name="CreateST">
                <wsdl:input message="tns:SavedSTRequest" />
                <wsdl:output message="tns:GR" />
                <wsdl:fault name="Fault" message="tns:FaultMessage" />
                </wsdl:operation>

               

              I am able to hit CreateST but when I am trying to hit UpdateST I am getting 2032 error

              • 4. Re: WebServices
                Yogi_ACE Level 2

                Shweta,

                 

                #2032 error occurs when Flex is unable to find method. Check for Typo (exact method name).

                You can also use wireshark to figure out what is the input and output from method.

                 

                Alternately, you can simply post html text to method by removing flex from the view.

                • 5. Re: WebServices
                  Vikram_S Level 2
                  Hi,

                  can you try using fallowing code ?.

                  Write this in mxml <fx:Declarations>
                  <mx:WebService
                    id="service"
                    result="onResult(event)"
                    fault="onFault(event)"
                    wsdl="/*WSDL URL*\"/>

                  in Scirpt
                  function callService():void{
                       service.UpdateST.send(/*parameter*\);
                  }