|
Mail sent on the 08/28 and
apparently lost. --- Hello Bora, you ask a good question. There is a misunderstanding here and a lack of documentation. A WADL file used as a mean of configuration is only able, at this time, to configure resources inside an application. The WadlComponent is able to configure applications using WADL files... I think there is a confusion with the constructors of the parent class (i.e. Component) that allows to configure a Component (not only an application) from a specific XML-based format (described here http://www.restlet.org/schemas/1.1/Component). This XML file allows you to specify server hosts, ports, etc. This confusion must be solved at least in the javadocs. Having said that, your case is not lost since you can include references to WADL files into the "component" XML file. You can find an example of such integration in the javadocs of the "Component" class: http://www.restlet.org/documentation/1.1/api/org/restlet/Component.html. Here is a base XML file that may help you: <?xml version="1.0"?> <component xmlns="http://www.restlet.org/schemas/1.1/Component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.restlet.org/schemas/1.1/Component"> <client protocol="FILE"/> <server protocols="HTTP" port="8185" /> <defaultHost> <attach targetDescriptor="file:///C:/Eclipse/workspace/Quiks/src/main/resources/Quiks.wadl.xml" /> </defaultHost> </component> You can also have a look at this following test case: org.restlet.test.ComponentXmlTestCase.java I hope this will help you. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com
|
- Question Sanjay Acharya
- Wadl Server Configuration Bora
- Re: Wadl Server Configuration Thierry Boileau
- Re: Question Thierry Boileau

