package test.wsdl.interop3.import1; import test.wsdl.interop3.import1.definitions.SoapInteropImport1PortType; import java.net.URL; /* */ public class Import1TestCase extends junit.framework.TestCase { public static URL url = null; public Import1TestCase(String name) { super(name); } public void testStep3() { 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); } } /* doesn't work yet public void testStep8() { test.wsdl.interop3.import1.step6.definitions.SoapInteropImport1PortType binding; try { binding = new SoapInteropImport1PortTypeServiceLocator().getSoapInteropImport1Port(new java.net.URL("http://mssoapinterop.org/stkV3/wsdl/import2.wsdl")); } catch (Throwable t) { throw new junit.framework.AssertionFailedError("Throwable caught: " + t); } assertTrue("binding is null", binding != null); try { java.lang.String value = null; value = binding.echoString(new java.lang.String()); } catch (java.rmi.RemoteException re) { re.printStackTrace(); throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); } } */ public static void main(String[] args) { if (args.length == 1) { try { url = new URL(args[0]); } catch (Exception e) { } } junit.textui.TestRunner.run(new junit.framework.TestSuite(Import1TestCase.class)); } // main }