JBoss Community

Re: Cannot create EJB-based web service with JBossWS runtime

created by spyhunter99 in JBoss Web Services Development - View the full discussion

This won't directly answer your question, but I'll share how I develop things. I use netbeans so you'll have to modify as necessary.

 

create a new java library (jar file) projects

open a command prompt

 

use wsconsume from the jbossws bundle and point it at your wsdl files with the -k option (keep source code)

copy the files from the output folder to your projects src folder

 

flip back to the ide. Find the class that defines the interface representing your wsdl

Make a new class, implementing that interface

I'd suggest copying all of the annotations from the interface definition into your implementation.

Add a jar reference to the class jboss ejb api, jboss-ejb-api_3.1_spec.jar

Add @javax.ejb.Stateless to your impl class

write your code

build

copy jar file into the deploy folder

 

 

that's it

Reply to this message by going to Community

Start a new discussion in JBoss Web Services Development at Community