cancel
Showing results for 
Search instead for 
Did you mean: 

error while consuming Web Service (returning XML ) in ABAP

Former Member
0 Kudos

Hi,

i am trying to consume a web service in ABAP. ( webservice which takes a request and return a XML string back).

I created a proxy class in SE80. and i tested it successfully.

When i tried to use the class in my program, it is giving dump.

i am not sure what is the problem. I guess it is not able to handle null values in XML.if that is the case. how to handle it..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

sorry friends,

It was my mistake...

there was a small mistake in my class calling program.. sorry for the trouble...

athavanraja
Active Contributor
0 Kudos

whats the dump analysis says , give us some more info on the dump from st22

Former Member
0 Kudos

The dump says:

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED

Except. CX_SY_REF_IS_INITIAL

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught and

therefore caused a runtime error.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing')

access a component (variable: "LO_CLIENTPROXY").

An object reference must point to an object (an instance of a class)

before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the

CLEAR statement.

I think this dump is because of the default value ( space) in some elements. How to avoide that.

wheni catch CX_SY_REF_IS_INITIAL it is not giving any dump. But this is not my requirement. Because it is not getting anything into response string.

Former Member
0 Kudos

sorry friends...

my guess is wrong. the dump is not becaus of default value in some elements.

I tested with XML which return some value in all elements. Even then it is giving the same dump.

I am totally stucked. Can help please.