users@jersey.java.net

Re: [Jersey] Custom WADL generators

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 26 Jan 2010 14:03:33 -0500

On Jan 26, 2010, at 1:19 PM, Niranjan Nanda wrote:
>
> I have a situation in my project for which I am not able to decide how to put a custom WADL generator. I have already gone through the Jersey WIKI which explains the custom WADL generators. Please go through my situation which is summarized below and help me.
>
> • We have a SOAP service in place and we want to build RESTful service endpoints around it.
> • The application has 12 SOAP endpoints because there are 12 different business actors. Each has its own WSDL and uniquely identified as a unique URL in the system. (simply, we have configured 12 <endpoint> elements in WEB-INF/sun-jaxws.xml file)
> • I could develop RESTful endpoints for all these 12 segregation by assigning unique @Path to endpoint class. But when I am opening the WADL (http://host:port/context/restful/application.wadl), it opens all the 12 unique Paths. I am using SOAP-UI for testing my services.
> • My intention is to block this default WADL generation because this way all 12 actors are able to invoke all services.
> • My next intention is to generate WADL for each of these segregation which we can distribute as our RESTful service contract (as we distribute WSDL as SOAP service contract).
>
> Please let me know if there is a way I can do. Let me know if further information is needed. I cannot share the actual endpoint details because of non-disclosure restrictions.
>
Not sure if this is any help, but you can get the WADL for just one particular path with a HTTP OPTIONS request to that path.

Marc.