Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

how to take output from Webservices

Avatar

Level 2

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

INPUT:

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 Accepted Solution

Avatar

Correct answer by
Level 10

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?

Nith

View solution in original post

6 Replies

Avatar

Level 10

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.

Jasmin

Avatar

Level 2

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/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:ALL_GetEmpNamefrmID>
         <!--Optional:-->
         tem:EmployeeLogin>{$ /process_data/@emp_no $}</tem:EmployeeLogin>
      </tem:ALL_GetEmpNamefrmID>
   </soapenv:Body>
</soapenv:Envelope>


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


OUTPUT:

<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">
   <soap:Body>
      <ALL_GetEmpNamefrmIDResponse xmlns="http://tempuri.org/">
         <ALL_GetEmpNamefrmIDResult>SUBBA</ALL_GetEmpNamefrmIDResult>
      </ALL_GetEmpNamefrmIDResponse>
   </soap:Body>
</soap:Envelope>

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

Avatar

Correct answer by
Level 10

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?

Nith

Avatar

Level 2

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

Location

/process_data/formvar/object/data/xdp/datasets/data/FSFIELDS_/TextField1    

expression

    /process_data/myResult/Envelope/Body/ALL_GetEmpNamefrmIDResponse/ALL_GetEmpNamefrmIDResult

but i am not getting the result in the form

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

Avatar

Level 10

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.

Nith

DISCLAIMER:

========================================================================

"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."

Avatar

Level 8

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.

http://livedocs.adobe.com/livecycle/8.2/wb_help/001018.html

Scott