If your server supports putting all requests to demo mode (just making a response back), you could specify this aswell:
$wsdlviewer->demo(true, 'demo');
Example:
Specify file, template and namespace (the targetNamespace, used for s:string / s:int etc) in the construct by WSDLViewer(array('settings' => array('file' => ..)).
Specify functions to initiate demo/auth modes.
Execute with ->output()
Missing features:
Doesn't handle enum-restrictions.
Doesn't handle inline authorization nor SOAP-Header auth.
Disclaimer: The idea of this came up while integrating to E-Conomic (e-conomic.com) since they have a pretty neat documentation of their service,
probably using some .NET module for generating it: