6 Replies Latest reply on Feb 22, 2010 8:15 AM by Scott Brodersen

    how to take output from Webservices

    Subba560 Level 1

      Hi all,


      I am new to ES just i want to know how we will take the responce from webservices in to variable fo rthe flow it is bit easier in workflow 7X but i am facing problem here




      webservices option(literal value) i am entering the WSDL url and calling the funtion over there and in request i am taking the value from the flow through var

      and passing to webservice



      <tem:EmployeeLogin>{$ /process_data/@company_code $}</tem:EmployeeLogin>



      and iam testing it there i can see the out put in xml


      how will i get the out put in to variable where i need to pass to form again



      Please help me out .....

        • 1. Re: how to take output from Webservices
          Jasmin Charbonneau Level 4

          In the Web Service Response section, you can map an XML variable to the Response property.


          The xml variable will contain the entire SOAP response. You'll have to parse it to extract your XML from it. It'll be in a CDATA section.



          • 2. Re: how to take output from Webservices
            Subba560 Level 1

            thanks for reply..


            Please help me out with the entire setp by step procedure that i have to follow in getting the output in variable


            i am using to get the emp name from webservices and i am passing empno from form.


            INPUT STRING


            <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
                     tem:EmployeeLogin>{$ /process_data/@emp_no $}</tem:EmployeeLogin>

            when i hard coded emp no for testing EG: 1234 the out put i am getting the folloeing XML when i click tes


            <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                  <ALL_GetEmpNamefrmIDResponse xmlns="http://tempuri.org/">




            Please help me out what are the steps i have to follow for getting out put SUBBA to my variable

            • 3. Re: how to take output from Webservices
              $Nith$ Level 4

              Assign the web service result to a XML variable (say myResult).


              Now you can access your name as /process_data/myResult/Envelope/Body/ALL_GetEmpNamefrmIDResponse/ALL_GetEmpNamefrmIDResult


              Looks clear?



              • 4. Re: how to take output from Webservices
                Subba560 Level 1

                hi nith


                As you mentioned i have created xml variable myResult


                and in the webservices reponce CDLIST i have given this myResult



                and in set value i have passed this result to form






                    /process_data/myResult/Envelope/Body/ALL_GetEmpNamefrmIDResponse/ALL_GetEmpNamefrmIDResul t



                but i am not getting the result in the form



                please let me know any wrong i have done......

                • 5. Re: how to take output from Webservices
                  $Nith$ Level 4

                  Enable process recording and check the data of your xml variable after the web service call.


                  Also look at the server log file for any errors.






                  "This communication is intended only for the named recipient and others authorized to receive it.

                  It contains confidential or legally privileged information. If you are not the intended recipient, please notify us immediately, and note that any disclosure, copying, distribution or action you may take in reliance on this communication is strictly prohibited and may be unlawful. Unless indicated otherwise, this communication is not intended, nor should it be taken to create any legal and/or contractual relation or otherwise. Ministry of Finance (MOF) is neither liable for the proper and complete transmission of the communication, nor for any delay in its receipt.

                  Whilst MOF undertakes all reasonable efforts to screen outgoing e-mails for viruses, it cannot be held liable for any viruses transmitted by this e-mail."

                  • 6. Re: how to take output from Webservices
                    Scott Brodersen Level 4

                    And when you check the xml, see if the structure matches what the form is expecting. You might need to manipulate the xml so that it will correctly merge with the form.