Fixate webservice URL in examples
---------------------------------
Key: JBSEAM-3269
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3269
Project: Seam
Issue Type: Sub-task
Components: Examples
Affects Versions: 2.0.2.SP1
Environment: JBoss 4.2.0.GA
JDK 1.5.0_01
Reporter: Jan Hoeve
Assignee: Marek Novotny
Priority: Minor
Fix For: 2.2.1.CR2
The session beans in the examples which are exposed as WebServices are difficult to
call.
What I mean: The url for the webservices is changing very often (JBossWS?) , and thus it
is very difficult to walk through the examples.
Easy fix: add an annotation @WebContext just below the @WebService in the beans.
Example:
@Stateless
@WebService(name = "AuctionService", serviceName = "AuctionService")
@WebContext(contextRoot ="auction-ws")
public class AuctionService implements AuctionServiceRemote
The webservice is now available under
http://127.0.0.1:8080/auction-ws/AuctionService
This is easier than to find/google that it is available under AuctionServiceService.
Maybe it is also possible to mention this in the documentation / FAQ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: