‎2009 Apr 30 12:02 AM
Hi I am new to using Webservices but I have successfully created a Client Proxy to consume a web service. In the Abap Development Workbench and have created a Logical Port for it. The proxy works fine when I test it using F8.
However I do not seem to be calling it correctly from my program. When I run the program in debug no exception is generated but the return structure is empty.
The method call does not require any data in the input structure.
The code is as follows :
REPORT zweb_test_wsclient.
DATA: object_ref TYPE REF TO zwebco_bcepsoap,
input TYPE zwebget_bceplist_soap_in,
output TYPE zwebget_bceplist_soap_out,
exception TYPE REF TO cx_ai_system_fault.
START-OF-SELECTION.
TRY.
CREATE OBJECT object_ref.
EXPORTING LOGICAL_PORT_NAME = 'LP1'.
CATCH cx_ai_system_fault INTO exception.
ENDTRY.
TRY.
CALL METHOD object_ref->get_bceplist
EXPORTING
input = input
IMPORTING
output = output.
CATCH cx_ai_system_fault INTO exception.
ENDTRY.
END-OF-SELECTION.
Can tell me what I am missing or what steps I can take to identify the problem ?
thanks
‎2011 Apr 05 5:46 PM
Hello Peter,
I have the same problem as You. Do you remember the solution?
A lot of thanks,
jordi