Thanks the endpoints how now appeared with
<servlet>
<servlet-name>RESTEasy WADL</servlet-name>
<servlet-class>org.jboss.resteasy.wadl.ResteasyWadlServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RESTEasy WADL</servlet-name>
<url-pattern>/application.xml</url-pattern>
</servlet-mapping>
In the web.xml
Cheers,
Simon
On 27 March 2018 at 12:38, Wei Nan Li <weli(a)redhat.com> wrote:
On Tue, Mar 27, 2018 at 4:44 PM, Simon Poet <spoet(a)wav2.com> wrote:
> Hi I haven't added the ResteasyWadlServlet explicitly in the web.xml
> file indeed I currently have no web.xml.
>
> My application is responding to
>
> /application.xml
>
> With the following response
>
> <application
xmlns="http://wadl.dev.java.net/2009/02"/>
>
> So this makes me think that the wadl servlet is activated. So possibly I
> don't need to add the servlet to web.xml?
>
It's needed. The ResteasyWadlServlet needs to be used for this
environment.
>
> However this response does not include the details of the RESTful
> endpoints I have set up.
>
> Thanks for any help,
>
> Simon
>
>
>
>
>
>
>
>
> On 27 March 2018 at 05:08, Wei Nan Li <weli(a)redhat.com> wrote:
>
>> To use RESTEasy WADL into Wildfly, you may need to use
>> ResteasyWadlServlet:
>>
>>
https://docs.jboss.org/resteasy/docs/3.1.2.Final/userguide/h
>> tml/WADL.html#d4e2622
>>
>>
>>
>> On Tue, Mar 27, 2018 at 12:18 AM, Simon Poet <spoet(a)wav2.com> wrote:
>>
>>> Hi,
>>> I have started putting together some JAX-RS endpoints for my app. I
>>> would like to have a WADL for the whole app.
>>> So following the User Guide I have added the following dependencies to
>>> my pom
>>>
>>> <dependency>
>>> <groupId>org.jboss.resteasy</groupId>
>>> <artifactId>resteasy-jaxrs</artifactId>
>>> <version>3.0.24.Final</version>
>>> <scope>provided</scope>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.jboss.resteasy</groupId>
>>> <artifactId>resteasy-wadl</artifactId>
>>> <version>3.0.24.Final</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.jboss.resteasy</groupId>
>>>
<artifactId>resteasy-wadl-undertow-connector</artifactId>
>>> <version>3.0.24.Final</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.jboss.resteasy</groupId>
>>> <artifactId>resteasy-undertow</artifactId>
>>> <version>3.0.24.Final</version>
>>> </dependency>
>>>
>>> I have put in place a simple class to enable the JAX-RS endpoints
>>>
>>> @ApplicationPath("/")
>>> public class RestApp extends Application {
>>> }
>>>
>>> The JAX-RS end points are working as expected. When I try the wadl
>>> endpoint /application.xml. I get the following :
>>>
>>> <application
xmlns="http://wadl.dev.java.net/2009/02"/>
>>>
>>> So it looks like I am missing the endpoints from the WADL
>>>
>>> I have overridden the json serialization/deserialization so that it
>>> uses Gson
>>>
>>> I see a code example in the user guide
>>>
>>> UndertowJaxrsServer server = new UndertowJaxrsServer().start();
>>> WadlUndertowConnector connector = new WadlUndertowConnector();
>>> connector.deployToServer(server, MyApp.class);
>>>
>>> Do I need to add this code somewhere?
>>>
>>> Thanks in advance
>>>
>>> Cheers, Simon
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Simon Poet
>>> Software Developer
>>> Miles33
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> resteasy mailing list
>>> resteasy(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/resteasy
>>>
>>>
>>
>>
>> --
>> Cheers,
>> Weinan | JBoss
>>
>
>
>
> --
> Simon Poet
> Software Developer
> Miles33
>
>
>
>
--
Cheers,
Weinan | JBoss