3 Replies Latest reply on Jan 31, 2008 7:43 AM by ropalka

    JBOSSWS EJB Problems

    landoo

      Hi,

      I've created an EJB 3.0 Web Service and deployed in Jboss 4.2.2. My ejb jar file is packaged inside an ear file. There are two problems now

      1- i've tried to use the @SoapBinding annotation to make my webserice use RPC/Encoded style like this:

      @SOAPBinding(style = SOAPBinding.Style.RPC, use= SOAPBinding.Use.ENCODED)

      but it doesn't work, it still creates wsdl file with Document/literal.

      2- Secondly how can i change the soap address of my webservice? Currently the soap address, jboss creates is http://localhost:8080/my-ear-file/ejb-jar-file/SessionBeanName?wsdl. I want it to be change something like http://localhost:8080/myWebSerivce/myName?wsdl. Is it possible?

      Thanks

        • 1. Re: JBOSSWS EJB Problems
          landoo

          I am able to configure the context using @WebContext annotation, but still the @SoapBinding thing is not working.

          I am using jboss 4.2.2 and jdk 5.0 with EJB 3

          Any idea?

          • 2. Re: JBOSSWS EJB Problems
            ropalka

             

            "landoo" wrote:
            I am able to configure the context using @WebContext annotation, but still the @SoapBinding thing is not working.

            I am using jboss 4.2.2 and jdk 5.0 with EJB 3

            Any idea?

            Soap binding in RPC/ENC format isn't supported. See WS-I basic profile for explanation.

            • 3. Re: JBOSSWS EJB Problems
              ropalka

              From JAX-WS specification, section GOALS:

              WS-I Basic Profile 1.1 JAX-RPC 1.1 added support for WS-I Basic Profile 1.0. WS-I Basic Profile 1.1 is expected to supersede 1.0 during the lifetime of this JSR and JAX-WS 2.0 will add support for the additional clarifications it provides.