What is the best way of creating a static class or static function(s) from a WSDL document.
The dynamic way is by having SoapClient fetch and parse the wsdl document and dynamically define all of its methods and parameters.
new SoapClient($wsdl, $opts);
What I want is pretty much to have the result of that statement as a pre-defined class on disk. Or at least have the one single function I use together with its paramter.
What options exist for creating this? Are there any existing libraries, helper functions or similar that can do the job for me? Should I just check what XML is sent for each request used and sprintf that? I'd rather avoid reading the soap specification followed by manually parsing their wsdl document and build everything from scratch. It seems like a waste of time.