Skip to Content
0
Former Member
Apr 02, 2012 at 06:00 PM

Dump when calling an external Web Service

277 Views

Hi,

I have a problem when I call an external webservice. When I test the proxy class, I get the dump:

****************************************************************************************

Erreur d'exécution OBJECTS_OBJREF_NOT_ASSIGNED

Désignation

Access via 'NULL' object reference not possible.

Causes

Error in the ABAP Application Program

The current ABAP program "CL_WS_PART_RECORDER===========CP" had to be

terminated because it has

come across a statement that unfortunately cannot be executed.

Analyse des erreurs

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

access a component (variable: " ").

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.

Extrait code source

1 METHOD constructor.

2

3 m_xml_part = xml_part.

>>>>> if_sxmlp_part~qname = xml_part->qname.

5

6 ENDMETHOD.

***********************************************************************************

When I test the WS in SOAP UI it's works and I get the response. So, the WS works well.

I created a RFC in SM59 to test the connexion with the WS and it is OK.

I followed the steps in http://www.sapdev.co.uk/sap-webapps/sap-webservices/ws_abapproxy.htm to create the proxy class and the logical port.

I looked on SDN but I didn't find a solution

Can you help ?

Thank you in advance,

Mll Mat