コード例 #1
0
  public void test16Soap12TestRpcPortEchoString() throws Exception {
    test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding;
    try {
      binding =
          (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub)
              new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort();
    } catch (javax.xml.rpc.ServiceException jre) {
      if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace();
      throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
    }
    assertNotNull("binding is null", binding);

    // Time out after a minute
    binding.setTimeout(60000);

    // Test operation
    java.lang.String value = null;
    value = binding.echoString(new java.lang.String("EchoString"));

    // TBD - validate results
    assertEquals("EchoString", value);
  }