5 Replies Latest reply on Mar 26, 2007 4:42 AM by biroj

    @WebServiceRef jbossws 1.2.0.GA

    seventy8

      I'm running jboss 4.0.5.GA with EJB3.0 Configuration and jbossws 1.2.0.GA installed with the installer.

      I'm using an stateless session bean as a webservice-client. I generated the artifacts with ws-import.

      If I use @WebServiceRef I run into the following Exception:

      Non matching type for inject of field: de.uniSiegen.crm.server.ejb3.session.webservice.generated.bpeluserinteractiondialog.CrmPLService de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient.service for type: org.jnp.interfaces.NamingContext of jndiName env/de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient/service
      intfs: , javax.naming.Context, java.io.Serializable


      If I don't use this annotation and instanciate the Service like this:

      CrmPLService service = new CrmPLService();


      everything works fine.

        • 1. Re: @WebServiceRef jbossws 1.2.0.GA
          thomas.diesler

          Have a look at

          cd jbossws-tests
          ant -Dtest=jaxws/samples/webserviceref test
          


          • 2. Re: @WebServiceRef jbossws 1.2.0.GA
            seventy8

            I ran the ant-script and got the following output:

            Buildfile: build.xml
            
            prepare:
             [echo]
             [echo] -----------------------------------------------
             [echo] jboss.home = C:\java\jboss-4.0.5.GA
             [echo] tomcat.home = /usr/java/tomcat
             [echo] java.home = C:\Programme\Java\jdk1.5.0_11\jre
             [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed
             [echo] excludesfile = tests-jboss40-excludes.txt
             [echo] -----------------------------------------------
            
            thirdparty-get:
            
            thirdparty-classpath:
            
            thirdparty:
            
            common-classpath:
            
            jboss-classpath:
            
            tomcat-classpath:
            
            init:
            
            test:
            
            prepare:
             [echo]
             [echo] -----------------------------------------------
             [echo] jboss.home = C:\java\jboss-4.0.5.GA
             [echo] tomcat.home = /usr/java/tomcat
             [echo] java.home = C:\Programme\Java\jdk1.5.0_11\jre
             [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed
             [echo] excludesfile = tests-jboss40-excludes.txt
             [echo] -----------------------------------------------
            
            thirdparty-get:
            
            thirdparty-classpath:
            
            thirdparty:
            
            common-classpath:
            
            jboss-classpath:
            
            tomcat-classpath:
            
            init:
            
            tests-main:
            
            BUILD SUCCESSFUL
            Total time: 2 seconds


            the generated output-folder includes the folders classes, log, and reports
            each of these folders is empty, except the log folder which includes an empty logfile.


            What is the right way to use an ejb3 stateless session bean as webservice-client?

            I found several examples, but none of them worked.
            Do I have to put the annotation to the class, to the field of the service or to the field of the port?

            Do I have to set a value for mappedName and wsdlLocation?




            • 3. Re: @WebServiceRef jbossws 1.2.0.GA
              thomas.diesler

              Yes, @WebServiceRef functionality is supported with the EJB3 implementation in jboss-4.2.x and jboss-5.0.x

              In jboss-4.0.5 you will have to use the API to create web service clients.

              http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Web_Service_Clients

              • 4. Re: @WebServiceRef jbossws 1.2.0.GA
                biroj


                Hi,

                Do you have an exact list what is NOT supported in JBoss 4.0.5 among features of JBossWS 1.2?
                We could avoid such a misunderstandings in the future... since it is very time consuming to continously browse what is supported and what is not.

                Thanks a lot for your help,
                Bye,
                Janos

                • 5. Re: @WebServiceRef jbossws 1.2.0.GA
                  biroj


                  Hi,

                  You proposed to use the JAX-WS API to create a service, but
                  do you know how to specify a relative path to e.g.

                  META-INF/wsdl/x.wsdl

                  ?

                  I tried the

                  "file:/./META-INF/wsdl/x.wsdl"
                  "file:/META-INF/wsdl/x.wsdl"
                  "file:./META-INF/wsdl/x.wsdl"
                  "file:META-INF/wsdl/x.wsdl"
                  "file://META-INF/wsdl/x.wsdl"
                  "file:///META-INF/wsdl/x.wsdl"

                  but no one is working...

                  Could I avoid to use absolute path?

                  Thanks a lot for your help,
                  Bye,
                  Janos