New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FUSETOOLS-2564 - WSDL 2 Camel Rest DSL Wizard #1138
Closed
Closed
Changes from 80 commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
6ef2349
Initial stab at wrapping wsdl2rest code
bfitzpat d9d95c7
Initial Wizard contribution
bfitzpat 04418a4
Next round of updates.
bfitzpat fdcb728
Can successfully run the wsdl2rest code from the wizard and tests now
bfitzpat 0d4aaf6
Added ability to provide more detail via the wizard page
bfitzpat a6148b6
A few more updates
bfitzpat 2e5788c
Refactoring one-page into two-page wizard with validation
bfitzpat 60e5d1f
Cleanup and externalization of strings
bfitzpat ba40549
Correcting i10n issues
bfitzpat 29ea262
Updates to make Eclipse paths work with java.io paths and utility
bfitzpat b785ad0
Adding auto-config of paths based on project selection
bfitzpat 68689a8
Code cleanup and documentation pass.
bfitzpat 88c9082
Adjustments based on suggestions from @apupier
bfitzpat dc74996
Pulling in the wsdl2rest code from maven instead of duplicating code
bfitzpat 9423721
More cleanup of names and versions
bfitzpat 8cca03c
Beginning of support for reading service address from wsdl
bfitzpat 1745642
Added code to grab the target address URL from the selected WSDL
bfitzpat d8a7c21
Adding wizard icon (using camel project one for now)
bfitzpat b8c79a4
Implementing suggestions from Aurelien
bfitzpat 0eae78e
Initial stab at wrapping wsdl2rest code
bfitzpat 9c9862c
Initial Wizard contribution
bfitzpat 7b3f7f6
Next round of updates.
bfitzpat cf53e1f
Can successfully run the wsdl2rest code from the wizard and tests now
bfitzpat 1bb0f5f
Added ability to provide more detail via the wizard page
bfitzpat 8c3f049
A few more updates
bfitzpat 3c762b4
Refactoring one-page into two-page wizard with validation
bfitzpat 4e8035f
Cleanup and externalization of strings
bfitzpat 6c8a3b6
Correcting i10n issues
bfitzpat 46cd6bd
Updates to make Eclipse paths work with java.io paths and utility
bfitzpat 3cd39eb
Adding auto-config of paths based on project selection
bfitzpat cda9e97
Code cleanup and documentation pass.
bfitzpat b358051
Adjustments based on suggestions from @apupier
bfitzpat d898359
Pulling in the wsdl2rest code from maven instead of duplicating code
bfitzpat 3f9a5f8
More cleanup of names and versions
bfitzpat eb58730
Beginning of support for reading service address from wsdl
bfitzpat ce887da
Added code to grab the target address URL from the selected WSDL
bfitzpat bd371da
Adding wizard icon (using camel project one for now)
bfitzpat 4e0e0d0
Implementing suggestions from Aurelien
bfitzpat c171469
Merge branch 'FUSETOOLS-2564' of https://github.com/bfitzpat/fuseide …
bfitzpat 50e8cc6
Updates for latest wsdl2rest changes upstream
bfitzpat 617c740
Adds required Rest library to dependencies and refreshes project
bfitzpat a42e7c9
Updates to readme, new externalized string, and copyright dates
bfitzpat abb29df
Creates the java path for source if it doesn't exist
bfitzpat 3e67df9
Updates for blueprint support and absolute paths
bfitzpat cb5ac64
Addition of gitignore
bfitzpat b0eaa3d
Merge remote-tracking branch 'refs/remotes/jbosstools/master' into FU…
bfitzpat 7bb3578
Addressing first wave of feedback from Aurelien
bfitzpat 9c30dc4
FUSETOOLS-2564 - adding integration test and adding a couple of fixes
bfitzpat 4be9f79
FUSETOOLS-2564 - updating wsdl2rest version and dealing with ripples
bfitzpat 06d5a14
Merge branch 'master' of https://github.com/jbosstools/jbosstools-fus…
bfitzpat 94d1b39
FUSETOOLS-2564 - update versions and remove sysouts
bfitzpat 410a00a
FUSETOOLS-2564 - Integration test must suffixed by IT
apupier 9040f25
FUSETOOLS-2564 - fix name of Maven module
apupier fe77aaa
FUSETOOLS-2564 - fix integration wsdl 2 rest test plugin build and
apupier 3dda50f
FUSETOOLS-2564 - add all promoted staging repo
apupier 0d19756
FUSETOOLS-2564 - fixing errant variable that wasn't used
bfitzpat a4ed3a6
FUSETOOLS-2564 - code cleaning during investigation
apupier c4ebc7e
FUSETOOLS-2564 - export the commonsvalidator package used in wsdl ui
apupier 1f8b9c6
FUSETOOLS-2564 - remove unused import
apupier 002b7a3
FUSETOOLS-2564 - fix class not found exception when clicking finish
apupier cf4fcc0
FUSETOOLS-2564 - Remove unused properties from pom.xml
apupier a0ba97d
FUSETOOLS-2564 - remove wrongly committed .project
apupier c4771cf
FUSETOOLS-2564 - Fix when updating the destination project
apupier 88287b6
FUSETOOLS-2564 - Improve reporting of error
apupier d4ebbdd
FUSETOOLS-2564 - remove empty src folder
apupier ac0d714
FUSETOOLS-2564 - remove no more embedded in this plugin the
apupier a04050c
FUSETOOLS-2564 - use @SuppressWarning(unchecked) for EMF Databinding
apupier 8a6f177
Merge branch 'master' of https://github.com/jbosstools/jbosstools-fus…
bfitzpat f831a6d
FUSETOOLS-2564 - suggested updates
bfitzpat f2d6313
FUSETOOLS-2564 - excluding wsdl2rest plug-in wrapper from src
bfitzpat 09312e1
FUSETOOLS-2564 - fixing sonar issues
bfitzpat 7f982eb
FUSETOOLS-2564 - use FileDialog to allow selection of wsdl through whole
apupier bd1c0e5
FUSETOOLS-2564 - avoid specific method for testing
apupier fdb14a6
FUSETOOLS-2564 - modify name of wsdl 2 rest wizard
apupier d96fe0d
FUSETOOLS-2564 - remove no more used code relative to Java wsdl class
apupier 10486e5
FUSETOOLS-2564 - avoid vertical space on Text control
apupier 6fc6c3f
FUSETOOLS-2564 - fixing path validation and creating camel path
bfitzpat 22e32b4
FUSETOOLS-2564 - fixing camel path problem and refactoring test
bfitzpat 5fdc183
FUSETOOLS-2564 - a few improvements and new tests
bfitzpat 82bcf72
Merge branch 'master' of https://github.com/jbosstools/jbosstools-fus…
bfitzpat b1f7ea3
FUSETOOLS-2950 - better warnings for users when possibly overwriting
bfitzpat d7caeff
FUSETOOLS-2564 - fixed FuseProject
bfitzpat 857dd2c
Merge branch 'master' of https://github.com/jbosstools/jbosstools-fus…
bfitzpat File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.fusesource.ide.wsdl2rest.ui</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
2 changes: 2 additions & 0 deletions
2
editor/plugins/org.fusesource.ide.wsdl2rest.ui/.settings/org.eclipse.core.resources.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
8 changes: 8 additions & 0 deletions
8
editor/plugins/org.fusesource.ide.wsdl2rest.ui/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
org.eclipse.jdt.core.compiler.compliance=1.8 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.source=1.8 |
33 changes: 33 additions & 0 deletions
33
editor/plugins/org.fusesource.ide.wsdl2rest.ui/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Fuse wsdl2rest UI Plugin | ||
Bundle-SymbolicName: org.fusesource.ide.wsdl2rest.ui;singleton:=true | ||
Bundle-Version: 11.0.0.qualifier | ||
Bundle-Activator: org.fusesource.ide.wsdl2rest.ui.internal.Wsdl2RestUIActivator | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.core.resources, | ||
org.eclipse.ui.workbench, | ||
org.eclipse.m2e.maven.runtime, | ||
org.eclipse.ui.ide, | ||
org.eclipse.core.databinding, | ||
org.jboss.tools.foundation.core, | ||
org.jboss.tools.foundation.ui, | ||
org.fusesource.ide.foundation.core;visibility:=reexport, | ||
org.eclipse.core.databinding.observable, | ||
org.eclipse.jface.databinding, | ||
org.eclipse.core.databinding.property, | ||
org.eclipse.core.databinding.beans, | ||
org.eclipse.core.filesystem, | ||
org.apache.commons.httpclient, | ||
org.fusesource.ide.camel.model.service.core, | ||
org.fusesource.ide.camel.editor, | ||
org.eclipse.m2e.core, | ||
org.fusesource.ide.wsdl2rest | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Bundle-ActivationPolicy: lazy | ||
Bundle-ClassPath: . | ||
Export-Package: | ||
org.fusesource.ide.wsdl2rest.ui.internal, | ||
org.fusesource.ide.wsdl2rest.ui.wizard, | ||
org.fusesource.ide.wsdl2rest.ui.wizard.pages |
4 changes: 4 additions & 0 deletions
4
editor/plugins/org.fusesource.ide.wsdl2rest.ui/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source.. = src/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
plugin.xml |
52 changes: 52 additions & 0 deletions
52
editor/plugins/org.fusesource.ide.wsdl2rest.ui/example/HelloService.wsdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions name = "HelloService" | ||
targetNamespace = "http://www.examples.com/wsdl/HelloService.wsdl" | ||
xmlns = "http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:tns = "http://www.examples.com/wsdl/HelloService.wsdl" | ||
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"> | ||
|
||
<message name = "SayHelloRequest"> | ||
<part name = "firstName" type = "xsd:string"/> | ||
</message> | ||
|
||
<message name = "SayHelloResponse"> | ||
<part name = "greeting" type = "xsd:string"/> | ||
</message> | ||
|
||
<portType name = "Hello_PortType"> | ||
<operation name = "sayHello"> | ||
<input message = "tns:SayHelloRequest"/> | ||
<output message = "tns:SayHelloResponse"/> | ||
</operation> | ||
</portType> | ||
|
||
<binding name = "Hello_Binding" type = "tns:Hello_PortType"> | ||
<soap:binding style = "document" | ||
transport = "http://schemas.xmlsoap.org/soap/http"/> | ||
<operation name = "sayHello"> | ||
<soap:operation soapAction = "sayHello"/> | ||
<input> | ||
<soap:body | ||
encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" | ||
namespace = "urn:examples:helloservice" | ||
use = "encoded"/> | ||
</input> | ||
|
||
<output> | ||
<soap:body | ||
encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" | ||
namespace = "urn:examples:helloservice" | ||
use = "encoded"/> | ||
</output> | ||
</operation> | ||
</binding> | ||
|
||
<service name = "Hello_Service"> | ||
<documentation>WSDL File for HelloService</documentation> | ||
<port binding = "tns:Hello_Binding" name = "Hello_Port"> | ||
<soap:address | ||
location = "http://www.examples.com/SayHello/" /> | ||
</port> | ||
</service> | ||
</definitions> |
Binary file added
BIN
+467 Bytes
editor/plugins/org.fusesource.ide.wsdl2rest.ui/icons/camel_project_16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.4"?> | ||
<plugin> | ||
<extension | ||
point="org.eclipse.ui.newWizards"> | ||
<wizard | ||
category="org.fusesource.ide.newwizards" | ||
class="org.fusesource.ide.wsdl2rest.ui.wizard.Wsdl2RestWizard" | ||
icon="icons/camel_project_16x16.png" | ||
hasPages="true" | ||
id="org.fusesource.ide.wsdl2rest.wizard" | ||
name="Camel Rest DSL from WSDL"> | ||
</wizard> | ||
</extension> | ||
|
||
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.fusesource.ide.editor</groupId> | ||
<artifactId>plugins</artifactId> | ||
<version>11.0.0-SNAPSHOT</version> | ||
<relativePath>..</relativePath> | ||
</parent> | ||
|
||
<artifactId>org.fusesource.ide.wsdl2rest.ui</artifactId> | ||
<packaging>eclipse-plugin</packaging> | ||
<name>Red Hat Fuse Tooling :: Camel Editor :: Plugins :: Wsdl2Rest UI</name> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Wsdl2Rest Wizard Code | ||
This plug-in provides a wizard wrapper for the Wsdl2Rest code found here: [https://github.com/jboss-fuse/wsdl2rest](https://github.com/jboss-fuse/wsdl2rest) | ||
|
||
## Running the wizard | ||
In the project you will find an "example" directory that includes several files - a couple of classes and a wsdl file. | ||
|
||
1. Create a new Fuse Integration project. Leave it as a Blank project (Spring or Blueprint DSL). | ||
2. Create a new src/main/resources/wsdl directory. | ||
3. Copy the HelloService.wsdl file into the src/main/resources/wsdl directory. | ||
4. Select the project, click New->Other, and select the Red Hat Fuse->Camel Rest DSL from WSDL. | ||
5. On the "Select Incoming WSDL and Project for Generated Output" page, click the "..." button beside the WSDL File field and select HelloService.wsdl. | ||
6. Click Next. | ||
8. Click Finish. The Camel file and associated Java classes will be generated and the project will refresh. | ||
|
||
Once the wizard finishes, you should see a new Camel Context file in the appropriate src/main/resources directory, as well as the generated code, which will appear in the /src/main/java folder. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to always avoid to "reexport", if another plugin needs the dependencies, it should declare the dependencies in its MANIFEST too