Skip to Content

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.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Guillaume GARCIA
    Hi,
    Thanks for sharing.
    By the way, could you please indicate/remind us of the required version for this? We are running ECC 5.0 (640 SP 19) and I am not sure WS-RM is supported. 🙂
    Besides, it this possible for those that have no access to debug (Production system, …) to be able to view the payload using traces & log (transaction ST11: RFC & ICM log files)?
    (0) 

Leave a Reply