Example #1
0
  @Test
  @RunAsClient
  public void testDate() throws Exception {
    URL wsdlURL = new URL(baseURL + "/MyService?wsdl");
    QName qname = new QName("http://date.jaxws.ws.test.jboss.org/", "MyService");
    Service service = Service.create(wsdlURL, qname);
    Endpoint port = service.getPort(Endpoint.class);

    Date date = new Date();

    Date response = port.echoDate(date);
    assertEquals(date.toString(), response.toString());
  }