public static void main(String [] args) throws MalformedURLException {
// If called from the command line, parse the argument as a WSDL URL.
if( args.length == 1 ) {
URL wsdl = new URL(args[0]);
ServiceDescription sd = DiscoveryUtils.getServiceDescription(wsdl);
System.out.print(sd.toXmlFormatted());
return;
}
// Otherwise, do a simple test:
URL wsdls[] = new URL[] {
new URL("http://127.0.0.1:8080/pserv-if-simple/AlwaysSaysValidService?wsdl"),