[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ws-general
Subject:    Re: WADL files
From:       Martin Gainty <mgainty () hotmail ! com>
Date:       2017-06-03 19:19:14
Message-ID: BLUPR14MB0259072A589B3A7BFF388DC5AEF40 () BLUPR14MB0259 ! namprd14 ! prod ! outlook ! com
[Download RAW message or body]

Rachna


i couldnt find any wadl  parser in woden  BUT


cxf has a wadl2java that will parse wadl and output java classes here is \
wadl2java.bat


@echo off
rem
rem
rem    Licensed to the Apache Software Foundation (ASF) under one
rem    or more contributor license agreements. See the NOTICE file
rem    distributed with this work for additional information
rem    regarding copyright ownership. The ASF licenses this file
rem    to you under the Apache License, Version 2.0 (the
rem    "License"); you may not use this file except in compliance
rem    with the License. You may obtain a copy of the License at
rem
rem    http://www.apache.org/licenses/LICENSE-2.0
rem
rem    Unless required by applicable law or agreed to in writing,
rem    software distributed under the License is distributed on an
rem    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
rem    KIND, either express or implied. See the License for the
rem    specific language governing permissions and limitations
rem    under the License.
rem
rem

rem
rem  invoke the Apache CXF wadl2java tool
rem
@setlocal

if not defined CXF_HOME goto set_cxf_home

> cont
if not defined JAVA_HOME goto no_java_home

set TOOLS_JAR=%JAVA_HOME%\lib\tools.jar;

if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar

set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar


"%JAVA_HOME%\bin\java" -Xmx128M -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp \
"%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" \
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" \
org.apache.cxf.tools.wadlto.WADLToJava %*

@endlocal

goto end

> no_cxf_jar
echo ERROR: Unable to find cxf-manifest.jar in %cxf_home/lib
goto end

> no_java_home
echo ERROR: Set JAVA_HOME to the path where the JDK (6.0 or higher) is installed
goto end

> set_cxf_home
set CXF_HOME=%~dp0..
goto cont

> end

https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days
[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded]<https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days>


java - How to wadl2java these days? - Stack \
Overflow<https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days> \
stackoverflow.com I have real difficulty finding commandline tool to convert WADL to \
java. No matter how much I try to google, follow blogs or java.net doc, there is no \
real download link.

i havent tested if wadl2java actually works so can you run wadl2java against your \
wadl?


Martin
______________________________________________



________________________________
From: Rachna Jotwani <rjotwani@dag.com>
Sent: Wednesday, May 31, 2017 6:32 PM
To: dev@ws.apache.org; woden-dev@ws.apache.org
Subject: WADL files


Hi,



Can the Woden apis be used to parse/read WADL files?

Is there any other project to read WADL files?



Thanks

Rachna


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;font-family:Arial,Helvetica,sans-serif;" \
dir="ltr"> <p>Rachna</p>
<p><br>
</p>
<p>i couldnt find any wadl &nbsp;parser in woden &nbsp;BUT</p>
<p><br>
</p>
<p>cxf has a wadl2java that will parse wadl and output java classes here is \
wadl2java.bat</p> <p><br>
</p>
<p></p>
<div>@echo off</div>
<div>rem</div>
<div>rem</div>
<div>rem &nbsp; &nbsp;Licensed to the Apache Software Foundation (ASF) under \
one</div> <div>rem &nbsp; &nbsp;or more contributor license agreements. See the \
NOTICE file</div> <div>rem &nbsp; &nbsp;distributed with this work for additional \
information</div> <div>rem &nbsp; &nbsp;regarding copyright ownership. The ASF \
licenses this file</div> <div>rem &nbsp; &nbsp;to you under the Apache License, \
Version 2.0 (the</div> <div>rem &nbsp; &nbsp;&quot;License&quot;); you may not use \
this file except in compliance</div> <div>rem &nbsp; &nbsp;with the License. You may \
obtain a copy of the License at</div> <div>rem</div>
<div>rem &nbsp; &nbsp;http://www.apache.org/licenses/LICENSE-2.0</div>
<div>rem</div>
<div>rem &nbsp; &nbsp;Unless required by applicable law or agreed to in \
writing,</div> <div>rem &nbsp; &nbsp;software distributed under the License is \
distributed on an</div> <div>rem &nbsp; &nbsp;&quot;AS IS&quot; BASIS, WITHOUT \
WARRANTIES OR CONDITIONS OF ANY</div> <div>rem &nbsp; &nbsp;KIND, either express or \
implied. See the License for the</div> <div>rem &nbsp; &nbsp;specific language \
governing permissions and limitations</div> <div>rem &nbsp; &nbsp;under the \
License.</div> <div>rem</div>
<div>rem</div>
<div><br>
</div>
<div>rem&nbsp;</div>
<div>rem &nbsp;invoke the Apache CXF wadl2java tool</div>
<div>rem&nbsp;</div>
<div>@setlocal</div>
<div><br>
</div>
<div>if not defined CXF_HOME goto set_cxf_home</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div>:cont</div>
<div>if not defined JAVA_HOME goto no_java_home</div>
<div><br>
</div>
<div>set TOOLS_JAR=%JAVA_HOME%\lib\tools.jar;</div>
<div><br>
</div>
<div>if not exist &quot;%CXF_HOME%\lib\cxf-manifest.jar&quot; goto no_cxf_jar</div>
<div><br>
</div>
<div>set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar</div>
<div><br>
</div>
<div><br>
</div>
<div>&quot;%JAVA_HOME%\bin\java&quot; -Xmx128M \
-Djava.endorsed.dirs=&quot;%CXF_HOME%\lib\endorsed&quot; -cp \
&quot;%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%&quot; \
-Djava.util.logging.config.file=&quot;%CXF_HOME%\etc\logging.properties&quot; \
org.apache.cxf.tools.wadlto.WADLToJava %*</div> <div><br>
</div>
<div>@endlocal</div>
<div><br>
</div>
<div>goto end</div>
<div><br>
</div>
<div>:no_cxf_jar</div>
<div>echo ERROR: Unable to find cxf-manifest.jar in %cxf_home/lib</div>
<div>goto end</div>
<div><br>
</div>
<div>:no_java_home</div>
<div>echo ERROR: Set JAVA_HOME to the path where the JDK (6.0 or higher) is \
installed</div> <div>goto end&nbsp;</div>
<div><br>
</div>
<div>:set_cxf_home</div>
<div>set CXF_HOME=%~dp0..</div>
<div>goto cont</div>
<div><br>
</div>
<div>:end</div>
<div><br>
</div>
<a href="https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days" \
class="OWAAutoLink" id="LPlnk52469" \
previewremoved="true">https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days</a>
 <div id="LPBorder_GT_14965173553510.2367720132157225" style="margin-bottom: 20px; \
overflow: auto; width: 100%; text-indent: 0px;"> <table \
id="LPContainer_14965173553260.5907432089713769" role="presentation" cellspacing="0" \
style="width: 90%; background-color: rgb(255, 255, 255); position: relative; \
overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; \
border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, \
200);"> <tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_14965173553300.7572181492670904" colspan="1" style="width: 250px; \
position: relative; display: table-cell; padding-right: 20px;"> <div \
id="LPImageContainer_14965173553300.43668499533532357" style="background-color: \
rgb(255, 255, 255); height: 250px; position: relative; margin: auto; display: table; \
width: 250px;"> <a id="LPImageAnchor_14965173553310.9813980148077353" \
href="https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days" \
target="_blank" style="display: table-cell; text-align: center;"><img \
id="LPThumbnailImageID_14965173553320.7286184079831213" width="250" height="250" \
style="display: inline-block; max-width: 250px; max-height: 250px; height: 250px; \
width: 250px; border-width: 0px; vertical-align: bottom;" \
src="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded"></a></div>
 </td>
<td id="TextCell_14965173553330.2869495802556512" colspan="2" style="vertical-align: \
top; position: relative; padding: 0px; display: table-cell;"> <div \
id="LPRemovePreviewContainer_14965173553330.7908435871713422"></div> <div \
id="LPExpandDescriptionContainer_14965173553340.5069011442814733"></div> <div \
id="LPTitle_14965173553340.6736042557824682" style="top: 0px; color: rgb(0, 120, \
215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, \
&quot;Segoe UI Light&quot;, &quot;Segoe WP Light&quot;, &quot;Segoe UI&quot;, \
&quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; line-height: 21px;"> <a \
id="LPUrlAnchor_14965173553350.847848942160226" \
href="https://stackoverflow.com/questions/6782099/how-to-wadl2java-these-days" \
target="_blank" style="text-decoration: none;">java - How to wadl2java these days? - \
Stack Overflow</a></div> <div id="LPMetadata_14965173553350.12366843782321624" \
style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; \
font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, \
Arial, sans-serif; font-size: 14px; line-height: 14px;"> stackoverflow.com</div>
<div id="LPDescription_14965173553370.835053887304074" altdesc="I have real \
difficulty finding commandline tool to convert WADL to java. No matter how much I try \
to google, follow blogs or java.net doc, there is no real download link. (links are \
broken or obsolete)." style="display: block; color: rgb(102, 102, 102); font-weight: \
normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, \
Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; \
overflow: hidden;"> I have real difficulty finding commandline tool to convert WADL \
to java. No matter how much I try to google, follow blogs or java.net doc, there is \
no real download link.</div> </td>
</tr>
</tbody>
</table>
</div>
i havent tested if wadl2java actually works so can you run wadl2java&nbsp;against \
your wadl? <p></p>
<p><br>
</p>
<div id="Signature">Martin&nbsp;<br>
______________________________________________ <br>
<pre style=""><br></pre>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" \
style="font-size:11pt"><b>From:</b> Rachna Jotwani &lt;rjotwani@dag.com&gt;<br> \
<b>Sent:</b> Wednesday, May 31, 2017 6:32 PM<br> <b>To:</b> dev@ws.apache.org; \
woden-dev@ws.apache.org<br> <b>Subject:</b> WADL files</font>
<div>&nbsp;</div>
</div>
<div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New \
Roman&quot;, serif;"> <span style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">Hi,</span></p> <p style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> <span \
style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p> <p style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> \
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">Can the \
Woden apis be used to parse/read WADL files?</span></p> <p style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> <span \
style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">Is there any \
other project to read WADL files?</span></p> <p style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> <span \
style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p> <p style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> \
<span style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">Thanks</span></p> <p style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> \
<span style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">Rachna</span></p> <p style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> \
<span style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p> <p style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"> \
<span style="font-size:11.0pt; \
font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p> </div>
</div>
</div>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic