How do I enable logging of SOAP requests and responses with the PayPal SDK for Java?

Using the the Axis client configuration file (client-config.wsdd), configure Axis to use the com.paypal.sdk.util.DefaultSOAPHandler class. The SDK lib directory includes this file.

Once you install the SDK, make sure the SDK resources (for example, the run.bat file in the samples/SampleApp directory of the SDK) are correctly loaded.

You can find the SDKs listed under PayPal SDKs.