Como faço para me conectar com um WSDL ?
Eu tenho o seguinte código que consigo conectar com um .jws utilizando AXIS, como faço para acessar um WSDL que, acredito eu, não utiliza axis?
package tradutor;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import java.net.URL;
import javax.xml.rpc.ParameterMode;
public class Tradutor {
public static void main(String[] args) throws Exception {
String end = "http://www.xmethods.net/sd/2001/BabelFishService.wsdl";
String tipo = "pt_en";
String msg = "gato";
Service service = new Service();
Call chamada = (Call)service.createCall();
URL url = new URL(end);
chamada.setTargetEndpointAddress(url);
chamada.setOperationName("BabelFish");
chamada.addParameter("translationmode",XMLType.XSD_STRING,ParameterMode.IN);
chamada.addParameter("sourcedata",XMLType.XSD_STRING,ParameterMode.IN);
chamada.setReturnType(XMLType.XSD_STRING);
String resp = (String)chamada.invoke(new Object[] { tipo, msg});
System.out.println("Tradução de " + msg + " em INGLES eh +"+resp);
}
}