Application Development 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: 

Problem call a webservice with a generated web service consumer

andreas_helm
Discoverer
0 Kudos
588

Hello all,

I have created a web service consumer proxy class for a WDSL based SOAP webservice and created a logical port for it in SOAMANAGER. When I call the webservice with SoapUI from my local PC it responds with a HTTP code 200, so the webservice itself is working. However when I call it from the ABAP code nothing happens, according to the company which provides the web service they do not receive any request. The webservice payload trace from the transaction SRT_UTIL shows no error, the error log is empty and the input data looks correct. However even if I change the URL to a definitely wrong one, this looks the same:

The detailed payload trace looks the same for both calls, the response is empty:

I suppose there is either an error message or a HTTP result code other than 200, however I do not get any error. The call in the ABAP does not create an exception and is returning without any error message. The ABAP call behaves the same, no matter if I use the correct URL or the wrong one.

- Is there a way to get the HTTP return code of the call out of the proxy class?

- is there any log which can show errors? I already checked the logs in the transactions SRT_UTIL, SRT_ELOG, SM21 and SMICM, but could not find anything which helped me to get closer to the problem.

ABAP Coding (the exception CX_AI_SYSTEM_FAULT is never thrown):

    try.
        create object LREF_SCHRANKEN
          exporting
            LOGICAL_PORT_NAME = P_PORT.
        LREF_SCHRANKEN->MI_SCHRANKENDATEN_OB( WA_SCHRANKENDATEN ).
      catch CX_AI_SYSTEM_FAULT into LREF_EXC.
        write:/ 'Error in SOAP call:'(004) color 6,
          LREF_EXC->GET_TEXT( ).
        return.
    endtry.

Any help is appreciated, kind regards

Andreas

0 REPLIES 0