Skip to Content
0
Former Member
Apr 08, 2010 at 03:11 PM

webservice SoapFaultCode:1 error.

63 Views

Hi I call webservice that cretaed java in my system.

I create consumer proxy with this webservice and logical port in soamanager.

I write program like follow but ıt doesn't work and I take SoapFaultCode:1 error.

how can I solve this problem?I want to help quickly olease.

data: lo_sys_exception type ref to cx_ai_system_fault , err_string type string.

DATA: zornek TYPE REF TO ZORNEKCO_WEBSERVICE_API_TEST .

TRY.

CREATE OBJECT zornek

EXPORTING

LOGICAL_PORT_NAME = 'GET_CUSTOMER'

.

catch cx_ai_system_fault into lo_sys_exception.

err_string = lo_sys_exception->get_text( ).

  • CATCH CX_AI_SYSTEM_FAULT .

ENDTRY.

data: OUTPUT type ZORNEKWEBSERVICE_API_TEST_SEAR .

data: INPUT type ZORNEKWEBSERVICE_API_TEST_SEA1 .

input-SEARCH_BY_LAST_NAME = 'Moretti'.

TRY.

CALL METHOD zornek->SEARCH_BY_LAST_NAME

EXPORTING

INPUT = input

IMPORTING

OUTPUT = output

.

CATCH CX_AI_APPLICATION_FAULT .

CLEAR : ERR_STRING.

catch cx_ai_system_fault into lo_sys_exception.

err_string = lo_sys_exception->get_text( ).

ENDTRY.

write output-SEARCH_BY_LAST_NAME.