5 Replies Latest reply: Sep 1, 2014 10:00 PM by Flex harUI RSS

    calling soap  webservice from flex

    aravnd Community Member

      How to add  http header in calling soap service request  from flex 3.2? Pls help!!!!!!!

        • 1. Re: calling soap  webservice from flex
          aravnd Community Member

          This is what i have

           

          public function getvalue(getvalueResultHandler:Function, getvalueFaultHandler:Function):void {

          // frame webservice request and invoke the service

          // create webservice object

          var service:WebService = new WebService();

          service.wsdl = URL + Common.WSDL_STRING;

          service.loadWSDL();

          var oper:Operation = service.getOperation(Common.operatn) as Operation;

          oper.resultFormat= Common.operationResultFormat;

          oper.addEventListener(ResultEvent.RESULT, getvalueResultHandler);

          oper.addEventListener(FaultEvent.FAULT, getvalueFaultHandler);

          // frame webservice request XML

          var xmlRequest:XML =

          <RetrievevalueRequest>

          <ClientID>{_helixGlobal.id}</ClientID>

          <WsdlVersion>{Common.wsdlVersion_2_0}</WsdlVersion>

          <ServiceType>{Common.serviceType}</ServiceType>

          <ApplicationID>{Common.applicationId}</ApplicationID>

          <RetrievevalueRequestItem>

          <ID>{_helixGlobal.inputparam}</ID>

          </RetrievevalueRequestItem>

          </RetrieveCvalueRequest>;

          oper.request = xmlRequest;

          service.endpointURI = Common.valueURL;

          oper.send();

          }

          • 2. Re: calling soap  webservice from flex
            aravnd Community Member

            In existing posted soap request we are not passing any additional http header  now i need to add two  header in the http header along with the request please share your comments

            • 3. Re: calling soap  webservice from flex
              Flex harUI Adobe Employee

              The doc says there is an addHeader method.

              • 4. Re: calling soap  webservice from flex
                aravnd Community Member

                addheader will send it as a http header or soap header?

                • 5. Re: calling soap  webservice from flex
                  Flex harUI Adobe Employee

                  Don't know.  The web service stuff is a bit out of my area of expertise.  Google for some blog posts about it.

                   

                  -Alex