问题
I'd like to build a simple test harness for the various web services consumed by my application that I can run in my staging or production environment to verify that the web services are working and see what data their web methods are returning.
Is there a way I can generate a SOAP request based on the WSDL provided by a web service at run time (i.e. without adding a web reference to my project and creating a proxy for the web service)?
回答1:
Check out SoapUI (http://www.soapui.org/). It's the only tool I've ever needed for testing Web Services.
回答2:
You can try using Castle Dynamic Proxy.
来源:https://stackoverflow.com/questions/1869960/generate-soap-requests-on-the-fly-based-on-wsdl