Call to WS from one backend to other backend
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 ?
Edited by: Nina C on May 4, 2009 12:53 PM
mohammad afzal replied
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
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'.
CALL METHOD l_proxy->zproject
input = in
output = out
. CATCH cx_ai_system_fault into lo_sys_exception .
CATCH cx_ai_application_fault .