import java.io.IOException;

import javax.wsdl.WSDLException;

import org.apache.woden.tool.converter.Convert;


public class CovertToWSDL2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Convert convert = new Convert();
		try{
			try {
				String convertFile = convert.convertFile("http://www.ebi.ac.uk/ws/services/WSDbfetch", "/home/ganjoo/parser/woden-dom-1.0M8/wsdl/WSDbfetch.wsdl", "/home/ganjoo/parser/woden-dom-1.0M8/wsdl/wsdl2/", true, true);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}catch(WSDLException e){
			e.printStackTrace();
		}
	}

}
