View Message Payload for Interfaces using WS-RM Standard without involving SAP Process Integration (SAP PI)

View Message Payload for Interfaces using WS-RM Standard without involving   SAP Process Integration (SAP PI).

Scenario:  SAP systems has interfaces using WS-RM Standard with other systems (SAP or non SAP) without involving the SAP Process integration as middleware like consuming Web service using WSDL Proxy.  

Problem: Same situation I have faced in my project, in this type of interfaces, monitoring is quit difficult as there is no middleware and also difficult to view the XML message payload.

Solution: This blog should help you to check the message payload in this type of scenario and help in error handling. Blog will provide the step by step process to view xml message payload using debug mode.

Blog contain two parts

1: View Request message

2: View Response message in case of Synchronous communication.

1         View Request message

1.1          Put the break point at following point

Class: CL_SOAP_MESSAGE_NEW

Method: IF_SOAP_MESSAGE_PART~SERIALIZE

Line No: 172 xmlout = l_xml_writer_class->get_output( ).

Request_Break_Point

1.2          Run the interface, Debugger screen will open and process will pause at above break point. Double click on the variable xmlout to view run time data. Press F6

Request_Debug

1.3          Open the variable XMLOUT in detail section with double click and view as XML Browser 

Request_Message

XML Request Payload can be viewed.

2: View Response message in case of Synchronous communication.

2.1          Put the break point at following point

Class: CL_SOAP_MESSAGE_NEW

Method: DESERIALIZE_BODY

Line 24: Starting of Method

Response_Break_Point

2.2          Run the interface, Debugger screen will open and process will pause at above break point.  In variable tab put Variable: m_xml_reader

Response_Debug

2.3          Open Variable in detail section and click attribute M_INPUT.

Response_attribute

2.4          View attribute M_INPUT as XML Browser 

Response_Message

XML Response Payload can be viewed.

SAP Developer Network SAP Weblogs: SAP Process Integration (PI)