Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call to WS from one backend to other backend

Hi All,

I created web service in one back-end e.g. DEV1 and i want to call him from other back-end DEV2.

How can i do that ?

Best Regards

Nina

Edited by: Nina C on May 4, 2009 12:53 PM

Former Member
Former Member replied

hello nina,

ur right with the steps in creation of webservices

and during testing when u execute the webservice u get a pop up window where u have a check box generate template data , if it is checked the parameters are autmotically proposed and u get the result

if u want to pass explicitly the paramters then u have to write a program and pass the values in input parameters , the paramters for the method have deep structure and u have to pass properly

i have doen a sample webservice where i pass a project definition and get its details

the sample code for the proxy is

the results is fetched in out parameter form where i can fetthed detials

REPORT ZDEMOPROXY.

Data : l_proxy type ref to ZPRJCO_ZPROJECTPORT_TYPE,

lo_sys_exception TYPE REF TO cx_ai_system_fault,

out type ZPRJZPROJECTOUTPUT,

in type ZPRJZPROJECTINPUT,

it_controller type PRXCTRLTAB,

wa_controller type prxctrl.

create object l_proxy.

in-PROJECT = 'T-10068'.

TRY.

CALL METHOD l_proxy->zproject

EXPORTING

input = in

IMPORTING

output = out

.

. CATCH cx_ai_system_fault into lo_sys_exception .

  • CATCH cx_ai_application_fault .

ENDTRY.

write out-details-description.

regards

afzal

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question