Skip to Content
0
Former Member
Jun 04, 2009 at 07:14 AM

Call .net web service from ABAP

34 Views

Hi,

We are trying to send some fields to .net web service.

I created Proxy Client and Logical Port.

When I execute the function, the function is executed without any errors.

I see that there is connection between the .net and ECC in the ICM Monitor and in the IIS log, and I see that data is transfered.

Nevertheless, the file that the web service should create, is not created.

How can I check where is the failure ?

My ABAP source code:

FUNCTION Z_TEST.

DATA:

lo_clientProxy TYPE REF TO Z_HELLO_WORLD,

lo_sys_exception TYPE REF TO cx_ai_system_faulty,

ls_request TYPE Z_HELLO_WORLD_SOAP_IN,

ls_response TYPE Z_HELLO_WORLD_SOAP_OUT.

ls_request-NAME1 = 'NAME1'.

ls_request-NAME2 = 'NAME2'.

TRY.

CREATE OBJECT lo_clientProxy.

CALL METHOD lo_clientProxy->HELLO_WORLD

EXPORTING

INPUT = ls_request.

IMPORTING

OUTPUT = ls_response.

CATCH cx_ai_system_fault INTO lo_sys_exception.

ENDTRY.

END FUNCTION.

Regards,

Ofir