SoapInteropImport1PortType binding;
try {
if (url == null) {
binding = new Import1Locator().getSoapInteropImport1Port();
} else {
binding = new Import1Locator().getSoapInteropImport1Port(url);
}
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertTrue("binding is null", binding != null);
try {
String value = "import1 test string";
String result = binding.echoString(value);
assertEquals("Strings didn't match", value, result);
}
catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
}