Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

basic jboss webservice naming

 
Stefan Müller
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm a beginner in webservices and I'm using JBoss 4.3.0 and created a stateless bean. This bean has annotations to be a webservice. I wanted to give it an explicit name, not matching the classname.
The service is deployed and basically works. When I open it with soapUI, I see it's named TestBeanBinding. But I need it to be named "TestService". Where do I define that mapping in the annotations?
The method operationname is correct ("shoutHello"). Below the code of the service bean and the wsdl file.





WSDL File
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Try using the name element of the @WebService annotation:
@WebService(name="TestService")
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic