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: 

Error in Consuming Webservice in ABAP

Former Member
0 Kudos

Hello Experts,

I am very new to webservices in ABAP. just to test the webservice within ABAP, I created a Service Definition which gave me a WSDL URL using the Provider wizard. then I generated proxy class to consume the WSDL URL generated in previous step . I am calling the proxy class within a program as below. It is raising a exception CX_AI_SYSTEM_FAULT . Does anyone have idea what this could be and how to correct it?

TRY.

CALL METHOD TEST->ZTESSTHJKJH

EXPORTING

INPUT = INPUT

IMPORTING

OUTPUT = output

.

CATCH CX_AI_SYSTEM_FAULT .

CATCH CX_AI_APPLICATION_FAULT .

ENDTRY.

Thanks,

Harkamal

2 REPLIES 2

Former Member
0 Kudos

Hi,

try to look into this :

http://wiki.sdn.sap.com/wiki/display/Snippets/WebServiceconsumerusingABAP-PROXY

hope it helps u.

Thanks

former_member848108
Active Participant
0 Kudos

Hi Harkamal,

It seems that the webservice provider and consumer are on the same server (loopback). It's probably releated with network access. You can follow SAP Note Number 1009109 (Analyzing Web service problems using the ICF recorder) to track down the sent and received soap messages . Alternatively, you can download and use "Webservice Studio", a small freeware program to test the webservice easily. Official website is: [http://webservicestudio.codeplex.com/]

Good luck,

Ozcan.