Legacy transaction LPCONFIG works well for setting up logical ports for web services. However Solution Manager provides greater functionality for logging errors and tracing. More importantly it provides an easy way to capture and view web service request and response messages. This is especially handy for providing sample messages to web service providers when troubleshooting.
For earlier versions of ECC or if Solution Manager is not an option, a handy tip for viewing the outbound web service messages is to put a breakpoint in class CL_SOAP_MESSAGE method SERIALIZE (using SE24). Then save the contents of variable UCDOC to a local file. You may need to remove the line feeds using a text editor, but you should be able to view the resulting file as an XML document in any browser.
Another handy option is putting a breakpoint in class CL_PROXY_FRAMEWORK method WS_PROCESS_PAYLOAD, then change the value of variable L_SHOW
to ‘X’. This should popup the outbound XML document in the SAP browser.