-
1. Re: Expose WS from default context
asoldano Apr 2, 2012 12:14 PM (in response to paul.robinson)Can you please paste the web.xml contents, if any, and the endpoint annotations?
-
2. Re: Expose WS from default context
paul.robinson Apr 3, 2012 4:23 AM (in response to asoldano)Alessio,
I'm not using a web.xml. These are the annotations on my Service Impl:
@WebService(serviceName = "RestaurantServiceATService", portName = "RestaurantServiceAT", name = "RestaurantServiceAT", targetNamespace = "http://www.jboss.com/jbossas/quickstarts/wsat/simple/Restaurant") @HandlerChain(file = "/context-handlers.xml", name = "Context Handlers") @SOAPBinding(style = SOAPBinding.Style.RPC) @WebServlet("/RestaurantServiceAT")
Is this enough information?
My understanding is that I can set the context root in the web.xml, but I don't think I should need to if I use the special case of naming the war 'ROOT.war'.
Thanks,
Paul.
-
3. Re: Expose WS from default context
ropalka Apr 4, 2012 2:58 AM (in response to paul.robinson)@WebService & @WebServlet are mutual exclusive annotations.
-
4. Re: Expose WS from default context
paul.robinson Apr 4, 2012 3:21 AM (in response to ropalka)Thanks Richard.
I thought I needed to register a Servlet for JBossWS to find the WS impl; and that it needed to be done in either the web.xml or with a @WebServlet annotation.
I'll take a look at the JBossWS quickstarts and see what is done there.
Thanks,
Paul.
-
5. Re: Expose WS from default context
ropalka Apr 4, 2012 4:06 AM (in response to paul.robinson)1 of 1 people found this helpfulAfter discussion with Alessio we came with the following feature request that might be worth in usecases like yours:
-
6. Re: Expose WS from default context
ropalka Apr 4, 2012 4:10 AM (in response to paul.robinson)Paul Robinson wrote:
I'll take a look at the JBossWS quickstarts and see what is done there.
As workaround untill JBWS-3479 feature is available in AS7
you have to provide either jboss-web.xml or jboss-webservices.xml
and provide <context-root> element there.
-
7. Re: Expose WS from default context
paul.robinson Apr 4, 2012 6:18 AM (in response to ropalka)Thanks Richard,
I'll do what you suggest and I'll watch the Jira issue.
Paul.