Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1780

Application relative EJB WebService addresses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Component/s: webservices
    • Labels:
      None

      Description

      Would be great if something like this could work:

      @BeforeClass
      public static void setUp() throws Exception

      { Properties properties = new Properties(); properties.setProperty(EJBContainer.APP_NAME, "simple-webservice"); properties.setProperty("openejb.embedded.remotable", "true"); properties.setProperty("httpejbd.print", "true"); properties.setProperty("httpejbd.indent.xml", "true"); EJBContainer.createEJBContainer(properties); }

      @Test
      public void test() throws Exception

      { Service calculatorService = Service.create( new URL("http://127.0.0.1:4204/simple-webservice/Calculator?wsdl"), new QName("http://superbiz.org/wsdl", "CalculatorService")); assertNotNull(calculatorService); CalculatorWs calculator = calculatorService.getPort(CalculatorWs.class); assertEquals(10, calculator.sum(4, 6)); assertEquals(12, calculator.multiply(3, 4)); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: