Web service : save response as PDF file

The following sample code shows how to download a binary file from URL using the standard Java API (java.net.* and java.io.*) only.

And the following sample code demonstrates how to use Apache HttpClient in a KS Test Case script.

You would be able to modify these to download and save a PDF from a web service.