Is it possible to set a webservice connection timeout on Service.create method?

Solution Unverified - Updated -

Issue

  • When executing client code to access a web service, is it possible to control the connection timeout for the follwing code:
        final Service service = Service.create(wsdlURL, serviceName);
        return service.getPort(SendAlertFromATM.class);
  • Is it possible to configure a timeout for this line:
        final Service service = Service.create(wsdlURL, serviceName);
  • Is it possible to configure timeout for this line:
       return service.getPort(SendAlertFromATM.class);

Environment

  • Red Hat JBoss Enterprise Application platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.