[jboss-user] [JBossWS] - Re: lower timeout in accessing a web service

jemodurn do-not-reply at jboss.com
Thu Mar 8 20:22:57 EST 2007


JBWS-1410 is working for JAX-RPC but it is not working for JAX-WS. Is there a jira for this?


Here is a test case:

modify the JSR181WebServiceJSETestCase in the jbossws-1.2.0 samples can reproduce the problem.

public void testWebService() throws Exception
  |    {
  |       URL wsdlURL = new File("resources/jaxws/samples/jsr181pojo/META-INF/wsdl/TestService.wsdl").toURL();
  |       QName qname = new QName("http://org.jboss.ws/samples/jsr181pojo", "TestService");
  |       Service service = Service.create(wsdlURL, qname);
  |       port = (EndpointInterface)service.getPort(EndpointInterface.class);
  | 
  |         ((Stub) port)._setProperty(StubExt.PROPERTY_CLIENT_TIMEOUT, String
  |             .valueOf(500));
  | 
  |         Object retObj = port.echo(new String[]{});
  |         assertNotNull(retObj);
  |         assertEquals(0, ((String[])retObj).length);
  |    }


Testcase: testWebService took 1.672 sec
  | 	Caused an ERROR
  | $Proxy17
  | java.lang.ClassCastException: $Proxy17
  | 	at org.jboss.test.ws.jaxws.samples.jsr181pojo.JSR181WebServiceJSETestCase.testWebService(JSR181WebServiceJSETestCase.java:72)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:27)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026494#4026494

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026494



More information about the jboss-user mailing list