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 to test WebService with ABAP-Program

Former Member
0 Likes
2,690

Hello together,

i've developed a webservice based on webdynpro and deployed it on out portal-server. the testing of this webservice with the internal test-tool for webservice on portal (web services navigator) was finished succesfully.

Now i try to use this webservice with an abap-program. first of all i let the system generated a webservice-proxy to get comfortable access to the webservice. The proxy-class has been generated and i configured with transaction lpconfig a logical port with the use of this proxy-class.

So after i comply all these requirements i developed the abap-code and tried to test it.

But i have following failure-code and i could not find any reason for that. Perhaps you have some ideas on this issue:

Runtime Errors UNCAUGHT_EXCEPTION

Except. CX_AI_SYSTEM_FAULT

What happened?

The exception 'CX_AI_SYSTEM_FAULT' was raised, but it was not caught anywhere

along

the call hierarchy.

Since exceptions represent error situations and this error was not

adequately responded to, the running ABAP program

'CL_PROXY_RUNTIME_ERRORS=======CP' has to be

terminated.

The reason for the exception is:

Error (id=SOAP:1.004): variable M_ENTITY is not initiated

8 WRITE soap_failure->error_id TO l_id_c LEFT-JUSTIFIED.

9 CONCATENATE 'SOAP:' l_id_c INTO l_id.

10 l_text = soap_failure->error_text.

11 RAISE EXCEPTION TYPE cx_ai_system_fault

12 EXPORTING

13 code = l_id

14 errortext = l_text.

Does anybody have an idea whats wrong with that variable "M_ENTITY"

Thanks a lot in advance,

Marcel

2 REPLIES 2
Read only

Former Member
0 Likes
1,041

Hi Marcel,

I'm facing the same problem... did you already find a solution to that?

Thank you,

Uwe

Read only

Former Member
0 Likes
1,041

The solution for me was to ensure the Logical Port was correctly defined. I had forgotten to enter a URL.

1. Start transaction LPCONFIG

2. Under "General Settings" click the tab "Call Parameters"

3. Enter the URL of your Web Service or define the HTTP Destination

Make sure you don't have any leading spaces in your URL or you will get the following error message:

cx_ai_system_fault Error when instantiating the Web service runtime (Error when initializing SOAP client application: ' error_text' )