Added:
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml?rev=1100277&view=auto
==============================================================================
---
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
(added)
+++
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
Fri May 6 16:44:53 2011
@@ -0,0 +1,376 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<toolspec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xhtml="http://www.w3.org/TR/xhtml1/strict"
+ xsi:schemaLocation="http://cxf.apache.org/Xutil/ToolSpecification
http://cxf.apache.org/schema/xutil/tool-specification.xsd"
+ xmlns="http://cxf.apache.org/Xutil/ToolSpecification"
+ xmlns:ts="http://cxf.apache.org/Xutil/ToolSpecification">
+
+ <annotation>
+Examples:
+
+ wsdl2java HelloWorld.wsdl
+ wsdl2java -p com.iona.greeting Greeting.wsdl
+ wsdl2java -client HelloWorld.wsdl
+ </annotation>
+
+ <usage>
+ <optionGroup id="options">
+ <option id="frontend" maxOccurs="1">
+ <annotation>
+ Specifies the front end. (defaults to JAXWS)
+ </annotation>
+ <switch>fe</switch>
+ <switch>frontend</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>front-end-name</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="databinding" maxOccurs="1">
+ <annotation>
+ Specifies the data binding. (defaults to JAXB)
+ </annotation>
+ <switch>db</switch>
+ <switch>databinding</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>data-binding-name</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="wsdlversion" maxOccurs="1">
+ <annotation>
+ Specifies the WSDL version. (default is WSDL1.1)
+ </annotation>
+ <switch>wv</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>wsdl-version</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="packagename" maxOccurs="unbounded">
+ <annotation>
+ Specifies the java package name to use for the generated
code.
+ Optionally specify a WSDL namespace to Java package name
+ mapping.
+ </annotation>
+ <switch>p</switch>
+ <associatedArgument placement="afterSpace">
+ <valuetype>NamingSpacePackageString</valuetype>
+ <annotation>[wsdl-namespace =]package-name</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="servicename">
+ <annotation>
+ Specify he WSDL service name to use for the generated code.
+ Also, optionally specify the WSDL namespace.
+ </annotation>
+ <switch>sn</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>service-name</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="binding" maxOccurs="unbounded">
+ <annotation>
+ Specify an external jaxws or jaxb binding files. Use one
+ -b flag for each binding file.
+ </annotation>
+ <switch>b</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>binding-file-name</annotation>
+ </associatedArgument>
+ </option>
+ <option id="reserveClass" maxOccurs="unbounded">
+ <annotation>
+ Reserve a class name to keep the code generator from
generating
+ a class of the given name. In name cases, a binding file
or
+ use of -autoNameResolution flag may be necessary for the
+ code generator to completely generate usable code.
+ </annotation>
+ <switch>reserveClass</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>class-name</annotation>
+ </associatedArgument>
+ </option>
+ <option id="catalog" maxOccurs="1">
+ <annotation>
+ Specify catalog file to map the imported wsdl/schema.
+ </annotation>
+ <switch>catalog</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>catalog-file-name</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="outputdir" maxOccurs="1">
+ <annotation>
+ Specify the directory into which the code is placed.
+ </annotation>
+ <switch>d</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>output-directory</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="compile" maxOccurs="1">
+ <annotation>
+ Specifies that the generated code is compiled by the
tool.</annotation>
+ <switch>compile</switch>
+ </option>
+
+ <option id="classdir" maxOccurs="1">
+ <annotation>
+ Specifies the directory into which compiled class files
are placed.</annotation>
+ <switch>classdir</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>compile-classes-directory</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="impl" maxOccurs="1">
+ <annotation>
+ Specifies that a dummy service implementation is generated.
+ </annotation>
+ <switch>impl</switch>
+ </option>
+
+ <option id="server" maxOccurs="1">
+ <annotation>
+ Specifies that server code is generated.
+ </annotation>
+ <switch>server</switch>
+ </option>
+
+ <option id="client" maxOccurs="1">
+ <annotation>
+ Specifies that client code is generated.
+ </annotation>
+ <switch>client</switch>
+ </option>
+
+ <option id="all" maxOccurs="1">
+ <annotation>
+ Specifies that interfaces, types , service, server , dummy
impl, client
+ and ant script are generated.
+ </annotation>
+ <switch>all</switch>
+ </option>
+
+ <option id="autoNameResolution" maxOccurs="1">
+ <annotation>
+ Specifies that the tool will attempt to resolve class
naming conflicts
+ without requiring the use of binding customizations.
+ </annotation>
+ <switch>autoNameResolution</switch>
+ </option>
+
+ <option id="allowElementReferences" maxOccurs="1">
+ <annotaion>
+ </annotaion>
+ <associatedArgument placement="immediate">
+ <annotation>=true</annotation>
+ <valueenum>true|false</valueenum>
+ </associatedArgument>
+ <switch>allowElementReferences</switch>
+ <switch>aer</switch>
+ </option>
+
+ <option id="defaultValues" maxOccurs="1">
+ <annotation>
+ Specifies that default values are generated for the dummy
implementation and client.
+ You can specify the name of the class to provide the
default values. The default is
+ RandomValueProvider.
+ </annotation>
+ <switch>defaultValues</switch>
+ <associatedArgument placement="immediate">
+
<annotation>=class-name-for-DefaultValueProvider</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="ant" maxOccurs="1">
+ <annotation>
+ Specifies that an ant build script is generated for the
project.
+ </annotation>
+ <switch>ant</switch>
+ </option>
+
+ <option id="nexclude" maxOccurs="unbounded">
+ <annotation>
+ Specifies a WSDL namespace to exclude when generating
code. This
+ option can be specified multiple times. Optionally
+ specify the Java package name to use for the WSDL
namespace.
+ </annotation>
+ <switch>nexclude</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>schema-namespace [=
java-package-name]</annotation>
+ </associatedArgument>
+ </option>
+
+ <option id="exsoapheader" maxOccurs="1">
+ <annotation>
+ Enables the processing of extended SOAP header message
binding.
+ </annotation>
+ <switch>exsh</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>(true, false)</annotation>
+ <valueenum>true|false</valueenum>
+ </associatedArgument>
+ </option>
+
+ <option id="notypes" maxOccurs="1">
+ <annotation>Turns off generating types</annotation>
+ <switch>noTypes</switch>
+ </option>
+
+ <option id="defaultns" maxOccurs="1">
+ <annotation>
+ Enables loading the default namespace package name
mapping. The default is true.
+ </annotation>
+ <switch>dns</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>Default value is true</annotation>
+ <valueenum>true|false</valueenum>
+ </associatedArgument>
+ </option>
+
+ <option id="defaultex" maxOccurs="1">
+ <annotation>
+ Enable loading the default excludes namespace mapping. The
default is true.</annotation>
+ <switch>dex</switch>
+ <associatedArgument placement="afterSpace">
+ <annotation>(true, false)</annotation>
+ <valueenum>true|false</valueenum>
+ </associatedArgument>
+ </option>
+
+ <option id="validate" maxOccurs="1">
+ <annotation>
+ Specifies that the WSDL is validated before generating the
code. Using
+ this option is highly recommended.
+ </annotation>
+ <switch>validate</switch>
+ </option>
+
+ <option id="newonly" maxOccurs="1">
+ <annotation>
+ Specifies that existing code will not be over written.
NOTE: You will have to solve any resulting compilation problems by yourself
+ </annotation>
+ <switch>keep</switch>
+ </option>
+
+ <option id="wsdlLocation" maxOccurs="1">
+ <annotation>
+ Specifies the value of the @WebServiceClient annotation's
wsdlLocation property.
+ </annotation>
+ <associatedArgument placement="afterSpace">
+ <annotation>wsdlLocation</annotation>
+ </associatedArgument>
+ <switch>wsdlLocation</switch>
+ </option>
+
+ <option id="xjc" maxOccurs="unbounded">
+ <annotation>
+ Specifies a comma separated list of arguments that are
passed directly to XJC when the
+ JAXB data binding is used. This option causes XJC to load
additional plugins that
+ augment code generation. For example to load the
toString(ts) plugin that will add a toString()
+ method to all generated types the following <xjc
arguments> would
+ be used:
+ -xjc-Xts
+ A list of available XJC plugins can be obtained by using
-xjc-X.
+ </annotation>
+ <associatedArgument placement="immediate">
+ <annotation>xjc-arguments</annotation>
+ </associatedArgument>
+ <switch>xjc</switch>
+ </option>
+
+ <option id="noAddressBinding" maxOccurs="1">
+ <annotation>
+ Specifies that the generator should not use the address
jaxb binding file to map wsa:EndpointReferenceType
+ or wsa:EndpointReference to
javax.xml.ws.wsaddressing.W3CEndpointReference.
+ </annotation>
+ <switch>noAddressBinding</switch>
+ </option>
+
+ <option id="useFQCNForFaultSerialVersionUID" maxOccurs="1">
+ <annotation>
+ Enable generation of Serial Version UID in fault
Exception(s) based on hashcode
+ of the fully qualified class name of the Exception.
+ </annotation>
+ <switch>useFQCNForFaultSerialVersionUID</switch>
+ </option>
+
+ <option id="mark-generated" maxOccurs="1">
+ <annotation>
+ Adds @Generated annotation in all java files that are
generated.
+ </annotation>
+ <switch>mark-generated</switch>
+ </option>
+
+ </optionGroup>
+ <optionGroup id="common_options">
+ <option id="help" maxOccurs="1">
+ <annotation>
+ Display detailed information for options.
+ </annotation>
+ <switch>h</switch>
+ <switch>?</switch>
+ <switch>help</switch>
+ </option>
+
+ <option id="version">
+ <annotation>
+ Display the version of the tool.</annotation>
+ <switch>v</switch>
+ </option>
+
+ <option id="verbose">
+ <annotation>
+ Specifies that the generator runs in verbose
mode.</annotation>
+ <switch>verbose</switch>
+ <switch>V</switch>
+ </option>
+
+ <option id="quiet">
+ <annotation>
+ Specifies that the generator runs in quiet
mode.</annotation>
+ <switch>quiet</switch>
+ <switch>q</switch>
+ </option>
+
+ <option id="wsdlList" maxOccurs="1">
+ <annotation>
+ Indicates the wsdlurl is a plain text list of wsdlurls
that are new line delimited.
+ As an example the wsdlurl might point to
+
http://127.0.0.1:8080/context_path/ws?formatted=false&wsdlList=true on a
cxf
+ server.
+ </annotation>
+ <switch>wsdlList</switch>
+ </option>
+
+ </optionGroup>
+ <argument id="wsdlurl" minOccurs="1" maxOccurs="1">
+ <annotation>
+ wsdl-url</annotation>
+ </argument>
+ </usage>
+</toolspec>
\ No newline at end of file
Propchange:
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/jaxrs-toolspec.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java?rev=1100277&view=auto
==============================================================================
---
cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java
(added)
+++
cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java
Fri May 6 16:44:53 2011
@@ -0,0 +1,83 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.tools.wadlto.jaxrs;
+
+import java.io.File;
+import java.net.URISyntaxException;
+import java.util.List;
+
+import org.apache.cxf.helpers.FileUtils;
+import org.apache.cxf.tools.common.ProcessorTestBase;
+import org.apache.cxf.tools.common.ToolConstants;
+import org.apache.cxf.tools.common.ToolContext;
+
+import org.junit.Test;
+
+public class JAXRSContainerTest extends ProcessorTestBase {
+
+ @Test
+ public void testCodeGen() {
+ try {
+ JAXRSContainer container = new JAXRSContainer(null);
+ ToolContext context = new ToolContext();
+
+ context.put(ToolConstants.CFG_OUTPUTDIR,
output.getCanonicalPath());
+
+ context.put(ToolConstants.CFG_WSDLURL,
getLocation("/wadl/bookstore.xml"));
+
+
+ container.setContext(context);
+ container.execute();
+
+ assertNotNull(output.list());
+
+ verifyFiles("java");
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ private void verifyFiles(String ext) {
+ List<File> files = FileUtils.getFilesRecurse(output, ".+\\." + ext +
"$");
+ assertEquals(7, files.size());
+ assertTrue(checkContains(files, "superbooks.Book." + ext));
+ assertTrue(checkContains(files, "superbooks.Book2." + ext));
+ assertTrue(checkContains(files, "superbooks.Chapter." + ext));
+ assertTrue(checkContains(files, "superbooks.ObjectFactory." + ext));
+ assertTrue(checkContains(files, "superbooks.package-info." + ext));
+ assertTrue(checkContains(files,
"org.apache.cxf.jaxrs.model.wadl.FormInterface." + ext));
+ assertTrue(checkContains(files,
"org.apache.cxf.jaxrs.model.wadl.BookStore." + ext));
+ }
+
+ private boolean checkContains(List<File> clsFiles, String name) {
+ for (File f : clsFiles) {
+ if (f.getAbsolutePath().replace(File.separatorChar,
'.').endsWith(name)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ protected String getLocation(String wsdlFile) throws URISyntaxException {
+ return getClass().getResource(wsdlFile).toString();
+ }
+}
Propchange:
cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
cxf/trunk/tools/wadlto/jaxrs/src/test/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainerTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml?rev=1100277&view=auto
==============================================================================
--- cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml (added)
+++ cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml Fri May
6 16:44:53 2011
@@ -0,0 +1,225 @@
+<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:prefix1="http://superbooks">
+
+ <grammars>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://superbooks" attributeFormDefault="unqualified"
elementFormDefault="unqualified"
+ targetNamespace="http://superbooks">
+ <xs:element name="thebook" type="tns:book"/>
+ <xs:element name="thebook2" type="tns:book2"/>
+ <xs:element name="thechapter" type="tns:chapter"/>
+ <xs:complexType name="book">
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="tns:thechapter"/>
+ <xs:element name="id" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="chapter">
+ <xs:sequence>
+ <xs:element name="id" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="book2">
+ <xs:sequence>
+ <xs:element name="id" type="xs:int"/>
+ <xs:element minOccurs="0" name="name" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </grammars>
+ <resources base="http://localhost:8080/baz">
+ <resource path="/bookstore/{id}"
id="{org.apache.cxf.jaxrs.model.wadl}BookStore">
+ <doc xml:lang="en-us" title="book store resource">super resource</doc>
+ <param name="id" style="template" type="xs:long"/>
+
+ <method name="GET" id="getName">
+ <request>
+ <param name="a" style="query" type="xs:int"/>
+ <param name="c.a" style="query" type="xs:int"/>
+ <param name="c.b" style="query" type="xs:int"/>
+ <param name="c.d.a" style="query" type="xs:int"/>
+ </request>
+ <response>
+ <representation mediaType="text/plain">
+ <param name="result" style="plain" type="xs:string"/>
+ </representation>
+ </response>
+ </method>
+
+ <method name="PUT" id="setName">
+ <request>
+ <representation mediaType="text/plain">
+ <param name="request" style="plain" type="xs:string"/>
+ </representation>
+ </request>
+ <response status="204"></response>
+ </method>
+
+ <resource path="/book2">
+ <method name="GET" id="getBook2">
+ <response>
+ <representation mediaType="application/xml" element="prefix1:thebook2"/>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+
+ <resource path="/books/{bookid}">
+ <doc>Resource books/{bookid}</doc>
+ <param name="id" style="template" type="xs:int">
+ <doc>book id</doc>
+ </param>
+ <param name="bookid" style="template" type="xs:int"/>
+ <param name="mid" style="matrix" type="xs:int"/>
+
+ <method name="POST" id="addBook">
+ <doc>Update the books collection</doc>
+ <request>
+ <doc>Request</doc>
+ <param name="hid" style="header" type="xs:int">
+ <doc>header param</doc>
+ </param>
+ <param name="provider.bar" style="query" type="xs:int"/>
+ <param name="a" style="query" repeating="true" type="xs:string"/>
+
+ <representation mediaType="application/xml" element="prefix1:thebook2">
+ <doc>InputBook</doc>
+ </representation>
+ <representation mediaType="application/json">
+ <doc>InputBook</doc>
+ </representation>
+ </request>
+ <response>
+ <doc>Response</doc>
+ <representation mediaType="application/xml" element="prefix1:thebook">
+ <doc>Requested Book</doc>
+ </representation>
+ <representation mediaType="application/json">
+ <doc>Requested Book</doc>
+ </representation>
+ </response>
+ </method>
+
+ <method name="PUT" id="addBook">
+ <doc>Update the book</doc>
+ <request>
+ <representation mediaType="application/xml" element="prefix1:thebook"/>
+ <representation mediaType="application/json"/>
+ </request>
+ <response status="204"></response>
+ </method>
+ </resource>
+
+ <resource path="/chapter">
+ <method name="GET" id="getChapter">
+ <response>
+ <representation mediaType="application/xml"
element="prefix1:thechapter"/>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+
+ <resource path="/chapter2">
+ <method name="GET" id="getChapter2">
+ <response>
+ <representation mediaType="application/xml" element="prefix1:thechapter"/>
+ <representation mediaType="application/json"/></response></method>
+ </resource>
+
+ <!-- Dynamic subresource -->
+ <resource path="/books/{bookid}" id="{java.lang}Object">
+ <param name="id" style="template" type="xs:int"/>
+ <param name="bookid" style="template" type="xs:int"/>
+ <param name="mid" style="matrix" type="xs:int"/>
+ </resource>
+
+ <resource path="/booksubresource" id="{http://superbooks}thebook">
+ <doc>Book subresource</doc>
+ <param name="id" style="template" type="xs:int"/>
+ <param name="mid" style="matrix" type="xs:int"/>
+
+ <resource path="/book">
+ <method name="GET" id="getIt">
+ <doc>Get the book</doc>
+ <response>
+ <representation mediaType="application/xml"
element="prefix1:thebook"></representation>
+ <representation mediaType="application/json"></representation>
+ </response>
+ </method>
+ </resource>
+
+ <resource path="/form1">
+ <method name="POST" id="form1">
+ <request>
+ <representation mediaType="application/x-www-form-urlencoded"/>
+ </request>
+ <response status="204"></response>
+ </method>
+ </resource>
+
+ <resource path="/form2">
+ <method name="POST" id="form2">
+ <request>
+ <representation mediaType="application/x-www-form-urlencoded">
+ <param name="field1" style="query" type="xs:string"/>
+ <param name="field2" style="query" type="xs:string"/>
+ </representation>
+ </request>
+ <response>
+ <representation mediaType="text/plain">
+ <param name="result" style="plain" type="xs:string"/>
+ </representation>
+ </response>
+ </method>
+ </resource>
+
+ <resource path="/chapter/{cid}" id="{http://superbooks}thechapter">
+ <doc>Chapter subresource</doc>
+ <param name="cid" style="template" type="xs:int"/>
+
+ <resource path="/id">
+ <method name="GET" id="getIt">
+ <doc>Get the chapter</doc>
+ <response>
+ <representation mediaType="application/xml"
element="prefix1:thechapter"></representation>
+ <representation mediaType="application/json"></representation>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ </resource>
+
+ <resource path="/form" id="{org.apache.cxf.jaxrs.model.wadl}FormInterface">
+
+ <resource path="/form1">
+ <method name="POST" id="form1">
+ <request>
+ <representation mediaType="application/x-www-form-urlencoded"/>
+ </request>
+ <response status="204"></response>
+ </method>
+ </resource>
+
+ <resource path="/form2">
+ <method name="POST" id="form2">
+ <request>
+ <representation mediaType="application/x-www-form-urlencoded">
+ <param name="field1" style="query" type="xs:string"/>
+ <param name="field2" style="query" type="xs:string"/>
+ </representation>
+ </request>
+ <response>
+ <representation mediaType="text/plain">
+ <param name="result" style="plain" type="xs:string"/>
+ </representation>
+ </response></method>
+ </resource>
+ </resource>
+
+ <!-- Recursive subresource -->
+ <resource path="/itself" id="{org.apache.cxf.jaxrs.model.wadl}BookStore">
+ </resource>
+
+ </resource>
+</resources>
+
+</application>
Propchange: cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/trunk/tools/wadlto/pom.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/pom.xml?rev=1100277&view=auto
==============================================================================
--- cxf/trunk/tools/wadlto/pom.xml (added)
+++ cxf/trunk/tools/wadlto/pom.xml Fri May 6 16:44:53 2011
@@ -0,0 +1,38 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-wadlto</artifactId>
+ <packaging>pom</packaging>
+ <version>2.4.1-SNAPSHOT</version>
+ <name>Apache CXF Command Line Tools WADLTo</name>
+ <url>http://cxf.apache.org</url>
+
+ <parent>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools</artifactId>
+ <version>2.4.1-SNAPSHOT</version>
+ </parent>
+
+ <modules>
+ <module>jaxrs</module>
+ </modules>
+
+</project>
Propchange: cxf/trunk/tools/wadlto/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/tools/wadlto/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/tools/wadlto/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml