You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (Created) (JIRA)" <ji...@apache.org> on 2012/02/19 03:43:59 UTC

[jira] [Created] (OPENEJB-1780) Application relative EJB WebService addresses

Application relative EJB WebService addresses
---------------------------------------------

                 Key: OPENEJB-1780
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1780
             Project: OpenEJB
          Issue Type: Improvement
          Components: webservices
            Reporter: David Blevins


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));
    }


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OPENEJB-1780) Application relative EJB WebService addresses

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO updated OPENEJB-1780:
-----------------------------------------

    Fix Version/s: 4.5.0
    
> Application relative EJB WebService addresses
> ---------------------------------------------
>
>                 Key: OPENEJB-1780
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1780
>             Project: OpenEJB
>          Issue Type: Improvement
>          Components: webservices
>            Reporter: David Blevins
>             Fix For: 4.5.0
>
>
> 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));
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (OPENEJB-1780) Application relative EJB WebService addresses

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO closed OPENEJB-1780.
----------------------------------------

    Resolution: Fixed
    
> Application relative EJB WebService addresses
> ---------------------------------------------
>
>                 Key: OPENEJB-1780
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1780
>             Project: OpenEJB
>          Issue Type: Improvement
>          Components: webservices
>            Reporter: David Blevins
>             Fix For: 4.5.0
>
>
> 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));
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1780) Application relative EJB WebService addresses

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264854#comment-13264854 ] 

David Blevins commented on OPENEJB-1780:
----------------------------------------

2012-02-19 - http://svn.apache.org/viewvc?view=revision&revision=1291041 - rmannibucau

                
> Application relative EJB WebService addresses
> ---------------------------------------------
>
>                 Key: OPENEJB-1780
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1780
>             Project: OpenEJB
>          Issue Type: Improvement
>          Components: webservices
>            Reporter: David Blevins
>
> 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));
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira