Hi,
This is an interesting question...
Whilst SoapUI can send PDF files as attachments as part of SOAP attachments, as far as I am aware I don't think any of the versions can actually display PDF responses..
Presumably you would actually also like to query document properties / do assertions on the PDF response?
(unless someone else can jump in with a solution)
My thoughts on doing this would be:
- Use a Groovy TestStep to get the response data and build a PDF document object using some kind of PDF library e.g. IText. Presumably it would then be possible to dump it to file / test it with Assertions.
- Write a SoapUI plugin to do something similar. This would probably be more complicated, but possibly allow you (with sufficient effort) to customize the way SoapUI deals with the response.
Of course this isn't a direct answer to your problem, but if I can find the time I'd be happy to discuss / work on it together if you're interested?
Cheers,
Rup