Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem Consuming Web Service

Former Member
0 Likes
409

Hello,

I have the following code:

REPORT  zprueba6.

DATA: zws           TYPE REF TO zsondaco_consulta_estado_pago.
DATA: lo_system_ex  TYPE REF TO cx_ai_system_fault.
DATA: lo_app_ex     TYPE REF TO cx_ai_application_fault.

DATA: ls_input TYPE zsondaconsulta_estado_pago_se1.
DATA: ls_out   TYPE zsondaconsulta_estado_pago_ser.

START-OF-SELECTION.

  TRY.
      CREATE OBJECT zws.

    CATCH cx_ai_system_fault .
  ENDTRY.

  break josechau.

  TRY.

      CALL METHOD zws->consulta_estado_pago_service_o
        EXPORTING
          input1  = ls_input
        IMPORTING
          output1 = ls_out.

    CATCH cx_ai_system_fault INTO lo_system_ex.
      WRITE: / 'System fault occurred', lo_system_ex->errortext.
    CATCH cx_ai_application_fault INTO lo_app_ex.
      WRITE: / 'Application fault occurred ', lo_app_ex->textid.
    CATCH cx_sy_ref_is_initial.
      WRITE: / 'Object is initial'.
  ENDTRY.

I have created the Proxy Class and I have created a logic port in lpconfig for this proxy class.

When I run this program or any program using any Web Service I receive the following exception:

System fault occurred Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/

Any help would be appreciated.

Best Regards

2 REPLIES 2
Read only

Former Member
0 Likes
372

HI,I got the same problem,But I don't know why. If you have the reason ,please help. thank you.

Read only

0 Likes
372

Finally I used another WS.

We suppose it is a problem with the WSDL Schema but we are not sure.

Best Regards