[165664] Axis2: Integrate Apache Axis 2 into WTP.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.classpath b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.classpath
new file mode 100644
index 0000000..304e861
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.project b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.project
new file mode 100644
index 0000000..673d2ac
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jst.ws.axis2.consumption.core</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>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/dir-wcprops
new file mode 100644
index 0000000..a5cdf05
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/.settings
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/entries
new file mode 100644
index 0000000..1b1987f
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/entries
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/.settings"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ committed-rev="1684"
+ name="org.eclipse.jdt.core.prefs"
+ text-time="2007-04-01T05:00:03.000000Z"
+ committed-date="2007-04-01T06:45:09.658734Z"
+ checksum="746328094495a6d1b7ee521a9e6eda8a"
+ last-author="sandakith"
+ kind="file"
+ prop-time="2007-02-22T05:44:09.000000Z"/>
+<entry
+ committed-rev="998"
+ name="org.eclipse.jdt.ui.prefs"
+ text-time="2007-03-07T06:04:11.000000Z"
+ committed-date="2007-02-22T05:46:25.419617Z"
+ checksum="17bec779b30b2e06307268ded3c959d4"
+ last-author="sandakith"
+ kind="file"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/prop-base/org.eclipse.jdt.core.prefs.svn-base b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/prop-base/org.eclipse.jdt.core.prefs.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/prop-base/org.eclipse.jdt.core.prefs.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/props/org.eclipse.jdt.core.prefs.svn-work b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/props/org.eclipse.jdt.core.prefs.svn-work
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/props/org.eclipse.jdt.core.prefs.svn-work
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.core.prefs.svn-base b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.core.prefs.svn-base
new file mode 100644
index 0000000..e58d8d3
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.core.prefs.svn-base
@@ -0,0 +1,62 @@
+#Thu Feb 22 12:22:03 LKT 2007
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=ignore
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.ui.prefs.svn-base b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.ui.prefs.svn-base
new file mode 100644
index 0000000..bec04eb
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/text-base/org.eclipse.jdt.ui.prefs.svn-base
@@ -0,0 +1,3 @@
+#Wed Feb 21 10:45:10 LKT 2007
+eclipse.preferences.version=1
+internal.default.compliance=default
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.core.prefs.svn-work b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.core.prefs.svn-work
new file mode 100644
index 0000000..777dfe6
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.core.prefs.svn-work
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 139
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.core.prefs
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.ui.prefs.svn-work b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.ui.prefs.svn-work
new file mode 100644
index 0000000..1f8369c
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/.svn/wcprops/org.eclipse.jdt.ui.prefs.svn-work
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 136
+/repos/wso2/!svn/ver/998/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.ui.prefs
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..e58d8d3
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,62 @@
+#Thu Feb 22 12:22:03 LKT 2007
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=ignore
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..bec04eb
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,3 @@
+#Wed Feb 21 10:45:10 LKT 2007
+eclipse.preferences.version=1
+internal.default.compliance=default
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/dir-wcprops
new file mode 100644
index 0000000..bf4c24b
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/repos/wso2/!svn/ver/1517/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/META-INF
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/entries
new file mode 100644
index 0000000..1bbceac
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/entries
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1517"
+ name=""
+ committed-date="2007-03-28T04:56:30.365958Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/META-INF"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ committed-rev="1517"
+ name="MANIFEST.MF"
+ text-time="2007-03-28T04:58:04.000000Z"
+ committed-date="2007-03-28T04:56:30.365958Z"
+ checksum="2fcdc35c76f8dd2b41c2ff36691165ea"
+ last-author="sandakith"
+ kind="file"
+ prop-time="2007-03-28T04:58:04.000000Z"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/prop-base/MANIFEST.MF.svn-base b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/prop-base/MANIFEST.MF.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/prop-base/MANIFEST.MF.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/props/MANIFEST.MF.svn-work b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/props/MANIFEST.MF.svn-work
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/props/MANIFEST.MF.svn-work
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/text-base/MANIFEST.MF.svn-base b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/text-base/MANIFEST.MF.svn-base
new file mode 100644
index 0000000..83f465d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/text-base/MANIFEST.MF.svn-base
@@ -0,0 +1,35 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Core Plug-in
+Bundle-SymbolicName: org.eclipse.jst.ws.axis2.consumption.core
+Bundle-Version: 1.0.0
+Bundle-Activator: org.eclipse.jst.ws.axis2.consumption.core.plugin.WebServiceAxis2ConsumptionCorePlugin
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.ui.ide,
+ org.eclipse.core.resources,
+ org.eclipse.jdt.core,
+ org.eclipse.wst.ws.parser,
+ org.eclipse.jst.ws,
+ org.eclipse.jst.ws.ui,
+ org.eclipse.jst.ws.consumption,
+ org.eclipse.jst.ws.consumption.ui,
+ org.eclipse.wst.ws,
+ org.eclipse.wst.command.env,
+ org.eclipse.wst.command.env.core,
+ org.eclipse.wst.command.env.ui,
+ org.eclipse.wst.server.core,
+ org.eclipse.wst.wsdl,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.wst.common.environment,
+ org.eclipse.jst.ws.axis2.ui,
+ org.eclipse.jst.ws.axis2.core
+Eclipse-LazyStart: true
+Export-Package: org.eclipse.jst.ws.axis2.consumption.core.command,
+ org.eclipse.jst.ws.axis2.consumption.core.data,
+ org.eclipse.jst.ws.axis2.consumption.core.messages,
+ org.eclipse.jst.ws.axis2.consumption.core.plugin,
+ org.eclipse.jst.ws.axis2.consumption.core.utils,
+ org.eclipse.jst.ws.axis2.creation.core.data
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/wcprops/MANIFEST.MF.svn-work b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/wcprops/MANIFEST.MF.svn-work
new file mode 100644
index 0000000..e7b3b82
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/.svn/wcprops/MANIFEST.MF.svn-work
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/repos/wso2/!svn/ver/1517/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/META-INF/MANIFEST.MF
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..83f465d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/META-INF/MANIFEST.MF
@@ -0,0 +1,35 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Core Plug-in
+Bundle-SymbolicName: org.eclipse.jst.ws.axis2.consumption.core
+Bundle-Version: 1.0.0
+Bundle-Activator: org.eclipse.jst.ws.axis2.consumption.core.plugin.WebServiceAxis2ConsumptionCorePlugin
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.ui.ide,
+ org.eclipse.core.resources,
+ org.eclipse.jdt.core,
+ org.eclipse.wst.ws.parser,
+ org.eclipse.jst.ws,
+ org.eclipse.jst.ws.ui,
+ org.eclipse.jst.ws.consumption,
+ org.eclipse.jst.ws.consumption.ui,
+ org.eclipse.wst.ws,
+ org.eclipse.wst.command.env,
+ org.eclipse.wst.command.env.core,
+ org.eclipse.wst.command.env.ui,
+ org.eclipse.wst.server.core,
+ org.eclipse.wst.wsdl,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.wst.common.environment,
+ org.eclipse.jst.ws.axis2.ui,
+ org.eclipse.jst.ws.axis2.core
+Eclipse-LazyStart: true
+Export-Package: org.eclipse.jst.ws.axis2.consumption.core.command,
+ org.eclipse.jst.ws.axis2.consumption.core.data,
+ org.eclipse.jst.ws.axis2.consumption.core.messages,
+ org.eclipse.jst.ws.axis2.consumption.core.plugin,
+ org.eclipse.jst.ws.axis2.consumption.core.utils,
+ org.eclipse.jst.ws.axis2.creation.core.data
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/build.properties b/bundles/org.eclipse.jst.ws.axis2.consumption.core/build.properties
new file mode 100644
index 0000000..30b2fc4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ plugin.xml
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.properties b/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.properties
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.properties
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.xml b/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.xml
new file mode 100644
index 0000000..7bf65fb
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/plugin.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+
+
+</plugin>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/dir-wcprops
new file mode 100644
index 0000000..6787b48
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/entries
new file mode 100644
index 0000000..1142ff1
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="eclipse"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/dir-wcprops
new file mode 100644
index 0000000..3f72130
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/entries
new file mode 100644
index 0000000..9d3ebd8
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="jst"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/dir-wcprops
new file mode 100644
index 0000000..0dbe8b6
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/entries
new file mode 100644
index 0000000..8dfec33
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="ws"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/dir-wcprops
new file mode 100644
index 0000000..002382d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 125
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/entries
new file mode 100644
index 0000000..da116ea
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="axis2"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/dir-wcprops
new file mode 100644
index 0000000..fd95751
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 131
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/entries
new file mode 100644
index 0000000..f90e203
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/entries
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="creation"
+ kind="dir"/>
+<entry
+ name="consumption"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/dir-wcprops
new file mode 100644
index 0000000..5e5d49f
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 143
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/entries
new file mode 100644
index 0000000..c4b9977
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="core"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/dir-wcprops
new file mode 100644
index 0000000..db12d8d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 148
+/repos/wso2/!svn/ver/1684/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/entries
new file mode 100644
index 0000000..661f6dd
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/entries
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1684"
+ name=""
+ committed-date="2007-04-01T06:45:09.658734Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="utils"
+ kind="dir"/>
+<entry
+ name="messages"
+ kind="dir"/>
+<entry
+ name="data"
+ kind="dir"/>
+<entry
+ name="command"
+ kind="dir"/>
+<entry
+ name="plugin"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java
new file mode 100644
index 0000000..f712c69
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java
@@ -0,0 +1,188 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070205 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ * 20070206 172186 sandakith@wso2.com - Fix for 172186, Added a check to overcome the issue.
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.command;
+
+import java.io.File;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.Method;
+import java.util.Map;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.ws.axis2.consumption.core.data.DataModel;
+import org.eclipse.jst.ws.axis2.consumption.core.messages.Axis2ConsumptionUIMessages;
+import org.eclipse.jst.ws.axis2.consumption.core.utils.ContentCopyUtils;
+import org.eclipse.jst.ws.axis2.consumption.core.utils.WSDL2JavaGenerator;
+import org.eclipse.jst.ws.axis2.core.utils.ClassLoadingUtil;
+import org.eclipse.jst.ws.axis2.core.utils.FileUtils;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.wst.command.internal.env.core.common.StatusUtils;
+import org.eclipse.wst.common.environment.IEnvironment;
+import org.eclipse.wst.common.environment.IStatusHandler;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+
+public class Axis2ClientCodegenCommand extends AbstractDataModelOperation {
+
+ private DataModel model;
+
+ public Axis2ClientCodegenCommand( DataModel model ){
+ this.model = model;
+ }
+
+ public IStatus execute(IProgressMonitor monitor, IAdaptable info)
+ throws ExecutionException {
+
+ IStatus status = Status.OK_STATUS;
+ IEnvironment environment = getEnvironment();
+ IStatusHandler statusHandler = environment.getStatusHandler();
+
+ String workspaceDirectory = ResourcesPlugin.getWorkspace().getRoot().
+ getLocation().toOSString();
+ String currentDynamicWebProjectDir = FileUtils.addAnotherNodeToPath(
+ workspaceDirectory,
+ model.getWebProjectName());
+ String matadataDir = FileUtils.addAnotherNodeToPath(
+ workspaceDirectory,
+ Axis2ConsumptionUIMessages.DIR_DOT_METADATA);
+ String matadataPluginsDir = FileUtils.addAnotherNodeToPath(
+ matadataDir,
+ Axis2ConsumptionUIMessages.DIR_DOT_PLUGINS);
+ String matadataAxis2Dir = FileUtils.addAnotherNodeToPath(
+ matadataPluginsDir,
+ Axis2ConsumptionUIMessages.AXIS2_PROJECT);
+ String tempCodegenOutputLocation = FileUtils.addAnotherNodeToPath(
+ matadataAxis2Dir,
+ Axis2ConsumptionUIMessages.CODEGEN_RESULTS);
+ File tempCodegenOutputLocationFile = new File(tempCodegenOutputLocation);
+ if (tempCodegenOutputLocationFile.exists()){
+ FileUtils.deleteDirectories(tempCodegenOutputLocation);
+ }
+ FileUtils.createDirectorys(tempCodegenOutputLocation);
+ WSDL2JavaGenerator generator = new WSDL2JavaGenerator();
+
+ //AxisService service;
+ Object axisServiceInstance;
+ try {
+ //service = generator.getAxisService(model.getWsdlURI());
+ ClassLoadingUtil.init(model.getWebProjectName());
+ axisServiceInstance = generator.getAxisService(model.getWsdlURI());
+ Map optionsMap = generator.fillOptionMap(
+ model.isASync(), //async
+ model.isSync(), //sync
+ false, //servirside false always
+ false, //services.xml false always
+ false, //model.isTestCaseCheck(),
+ model.isGenerateAllCheck(),
+ (model.getServiceName()!=null)?model.getServiceName():null,
+ (model.getPortName()!=null)?model.getPortName():null,
+ (model.getDatabindingType().toLowerCase()!=null)?model.getDatabindingType().toLowerCase():null,
+ (model.getWsdlURI()!=null)?model.getWsdlURI():null,
+ (model.getPackageText()!=null)?model.getPackageText():null,
+ "java",
+ tempCodegenOutputLocation,
+ model.getNamespaseToPackageMapping(),
+ false //Serverside interface always false
+ );
+
+ //CodeGenConfiguration codegenConfig = new CodeGenConfiguration(service, optionsMap);
+ Class CodeGenConfigurationClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.wsdl.codegen.CodeGenConfiguration");
+
+ Class[] parameterTypes = new Class[2];
+ parameterTypes[0] = axisServiceInstance.getClass();
+ parameterTypes[1] = Map.class;
+ Constructor CodeGenConfigurationConstructor = CodeGenConfigurationClass.getConstructor(parameterTypes);
+
+ Object initargs[] = new Object[2];
+ initargs[0] = axisServiceInstance;
+ initargs[1] = optionsMap;
+ Object CodeGenConfigurationInstance = CodeGenConfigurationConstructor.newInstance(initargs);
+
+ //set the baseURI
+ //codegenConfig.setBaseURI(generator.getBaseUri(model.getWsdlURI()));
+
+ Class[] parameterTypes1 = new Class[1];
+ parameterTypes1[0] = String.class;
+ Method setBaseURIMethod = CodeGenConfigurationClass.getMethod("setBaseURI", parameterTypes1);
+
+ Object args[] = new Object[1];
+ args[0] = generator.getBaseUri(model.getWsdlURI());
+ setBaseURIMethod.invoke(CodeGenConfigurationInstance, args);
+
+ //Get the namespace from the AxisService and set it in the configuration
+ Class AxisServiceClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.description.AxisService");
+
+ Method getTargetNamespaceMethod = AxisServiceClass.getMethod("getTargetNamespace", null);
+ Object targetNamespace = getTargetNamespaceMethod.invoke(axisServiceInstance, null);
+
+ Class URLProcessorClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.util.URLProcessor");
+ Class parameterTypes4[] = new Class[1];
+ parameterTypes4[0] = String.class;
+ Method makePackageNameMethod = URLProcessorClass.getMethod("makePackageName", parameterTypes4);
+
+ Object args4[] = new Object[1];
+ args4[0] = targetNamespace;
+ Object stringReturn = makePackageNameMethod.invoke(null, args4);
+
+ model.setPackageText(stringReturn.toString());
+
+ Class[] parameterTypes3 = new Class[1];
+ parameterTypes3[0] = String.class;
+ Method setPackageNameMethod = CodeGenConfigurationClass.getMethod("setPackageName", parameterTypes3);
+
+ Object args2[] = new Object[1];
+ args2[0] = stringReturn;
+ setPackageNameMethod.invoke(CodeGenConfigurationInstance, args2);
+
+ //new CodeGenerationEngine(codegenConfig).generate();
+
+ Class CodeGenerationEngineClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.wsdl.codegen.CodeGenerationEngine");
+
+ Class[] parameterTypes2 = new Class[1];
+ parameterTypes2[0] = CodeGenConfigurationInstance.getClass();
+ Constructor CodeGenerationEngineConstructor = CodeGenerationEngineClass.getConstructor(parameterTypes2);
+
+ Object initargs1[] = new Object[1];
+ initargs1[0] = CodeGenConfigurationInstance;
+ Object CodeGenerationEngineInstance = CodeGenerationEngineConstructor.newInstance(initargs1);
+
+ //Invoke Codegen Method
+ Method generateMethod = CodeGenerationEngineClass.getMethod("generate", null);
+ generateMethod.invoke(CodeGenerationEngineInstance, null);
+
+ //Copy the existing codegen results to the current project
+ ContentCopyUtils contentCopyUtils = new ContentCopyUtils();
+ status = contentCopyUtils.copyDirectoryRecursivelyIntoWorkspace(
+ tempCodegenOutputLocation,
+ currentDynamicWebProjectDir,
+ monitor,
+ statusHandler);
+
+ } catch (Exception e) {
+ status = StatusUtils.errorStatus(NLS.bind(
+ Axis2ConsumptionUIMessages.ERROR_CODEGEN_EXCEPTION,
+ new String[]{e.getLocalizedMessage()}),
+ e);
+ environment.getStatusHandler().reportError(status);
+ }
+
+ return status;
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientDefaultingCommand.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientDefaultingCommand.java
new file mode 100644
index 0000000..b9c895f
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientDefaultingCommand.java
@@ -0,0 +1,66 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070205 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.command;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.ws.axis2.consumption.core.data.DataModel;
+import org.eclipse.jst.ws.axis2.consumption.core.messages.Axis2ConsumptionUIMessages;
+import org.eclipse.jst.ws.axis2.consumption.core.utils.DefaultCodegenUtil;
+import org.eclipse.jst.ws.axis2.core.context.BUServiceContext;
+import org.eclipse.jst.ws.axis2.core.utils.FacetContainerUtils;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+import org.eclipse.wst.ws.internal.wsrt.IWebServiceClient;
+
+public class Axis2ClientDefaultingCommand extends AbstractDataModelOperation {
+
+ DataModel model;
+ private IWebServiceClient ws;
+ IStatus status;
+
+ public Axis2ClientDefaultingCommand(DataModel model, IWebServiceClient ws){
+ this.model=model;
+ this.ws=ws;
+ }
+
+ public IStatus execute(IProgressMonitor monitor, IAdaptable info)
+ throws ExecutionException {
+ //Default Settings for the Codegeneration
+ model.setWsdlURI((ws.getWebServiceClientInfo().getWsdlURL()!=null)?
+ ws.getWebServiceClientInfo().getWsdlURL():
+ FacetContainerUtils.getDeployedWSDLURL(
+ model.getWebProjectName().split("Client")[0],
+ BUServiceContext.getInstance().getServiceName())
+ );
+
+ model.setDatabindingType(Axis2ConsumptionUIMessages.DATA_BINDING_ADB);
+ model.setASync(true);
+ model.setSync(true);
+
+ DefaultCodegenUtil defaultCodegenUtil = new DefaultCodegenUtil(model);
+ defaultCodegenUtil.populateModelParamsFromWSDL();
+
+ status = Status.OK_STATUS;
+ return status;
+ }
+
+ public DataModel getWebServiceDataModel(){
+ return model;
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2WebservicesServerCommand.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2WebservicesServerCommand.java
new file mode 100644
index 0000000..e673038
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2WebservicesServerCommand.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070110 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.command;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.ws.axis2.consumption.core.data.DataModel;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+
+public class Axis2WebservicesServerCommand extends
+AbstractDataModelOperation {
+
+ String project;
+ DataModel model;
+ public Axis2WebservicesServerCommand(DataModel model, String project){
+ this.model=model;
+ this.project = project;
+ }
+
+ public IStatus execute(IProgressMonitor monitor, IAdaptable info)
+ throws ExecutionException {
+ //Copy the axis2 libs in to this client project
+ //TODO No Need to copy the axis2 libs after the introduction of the facet
+ // Check wether the facet is present and if not pop up a warning
+ IStatus status = Status.OK_STATUS;
+ model.setWebProjectName(project);
+ return status;
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/DataModel.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/DataModel.java
new file mode 100644
index 0000000..39e608d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/DataModel.java
@@ -0,0 +1,107 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070110 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.data;
+
+public class DataModel extends Model{
+
+ //Consumption DataModel Parameters
+
+ private String serviceClass;
+ private String databindingType;
+ private String namespaseToPackageMapping;
+ private boolean Sync;
+ private boolean ASync;
+ private boolean generateAllCheck;
+ private boolean testCaseCheck;
+
+
+ public String getDatabindingType() {
+ return databindingType;
+ }
+ public void setDatabindingType(String databindingType) {
+ this.databindingType = databindingType;
+ }
+ public boolean isGenerateAllCheck() {
+ return generateAllCheck;
+ }
+ public void setGenerateAllCheck(boolean generateAllCheck) {
+ this.generateAllCheck = generateAllCheck;
+ }
+ public String getNamespaseToPackageMapping() {
+ return namespaseToPackageMapping;
+ }
+ public void setNamespaseToPackageMapping(String namespaseToPackageMapping) {
+ this.namespaseToPackageMapping = namespaseToPackageMapping;
+ }
+
+ public String getPackageText() {
+ return super.getPackageText();
+ }
+
+ public void setPackageText(String packageText) {
+ super.setPackageText(packageText);
+ }
+
+ public String getPortName() {
+ return super.getPortName();
+ }
+
+ public void setPortName(String portName) {
+ super.setPortName(portName);
+ }
+
+ public String getServiceClass() {
+ return serviceClass;
+ }
+ public void setServiceClass(String serviceClass) {
+ this.serviceClass = serviceClass;
+ }
+
+ public String getServiceName() {
+ return super.getServiceName();
+ }
+
+ public void setServiceName(String serviceName) {
+ super.setServiceName(serviceName);
+ }
+
+ public String getWsdlURI() {
+ return super.getWsdlURI();
+ }
+
+ public void setWsdlURI(String wsdlURI) {
+ super.setWsdlURI(wsdlURI);
+ }
+
+ public boolean isASync() {
+ return ASync;
+ }
+ public void setASync(boolean sync) {
+ ASync = sync;
+ }
+ public boolean isSync() {
+ return Sync;
+ }
+ public void setSync(boolean sync) {
+ Sync = sync;
+ }
+ public boolean isTestCaseCheck() {
+ return testCaseCheck;
+ }
+ public void setTestCaseCheck(boolean testCaseCheck) {
+ this.testCaseCheck = testCaseCheck;
+ }
+
+}
\ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/Model.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/Model.java
new file mode 100644
index 0000000..221b777
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/data/Model.java
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070213 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.data;
+
+public class Model {
+
+ private String webProjectName;
+
+ private boolean serverStatus;
+ private String wsdlURI;
+ private String portName;
+ private String serviceName;
+ private String packageText;
+
+ public String getPackageText() {
+ return packageText;
+ }
+ public void setPackageText(String packageText) {
+ this.packageText = packageText;
+ }
+ public String getPortName() {
+ return portName;
+ }
+ public void setPortName(String portName) {
+ this.portName = portName;
+ }
+ public String getServiceName() {
+ return serviceName;
+ }
+ public void setServiceName(String serviceName) {
+ this.serviceName = serviceName;
+ }
+ public String getWsdlURI() {
+ return wsdlURI;
+ }
+ public void setWsdlURI(String wsdlURI) {
+ this.wsdlURI = wsdlURI;
+ }
+ public boolean getServerStatus() {
+ return serverStatus;
+ }
+ public void setServerStatus(boolean b) {
+ this.serverStatus = b;
+ }
+
+ public String getWebProjectName() {
+ return webProjectName;
+ }
+ public void setWebProjectName(String webProjectName) {
+ this.webProjectName = webProjectName;
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUI.properties b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUI.properties
new file mode 100644
index 0000000..ed7677e
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUI.properties
@@ -0,0 +1,75 @@
+###############################################################################
+# Copyright (c) 2007 WSO2 Inc. and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# WSO2 Inc. - initial API and implementation
+# yyyymmdd bug Email and other contact information
+# -------- -------- -----------------------------------------------------------
+# 20070110 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+# runtime to the framework for 168762
+###############################################################################
+
+
+LABEL_SERVICE_NAME_CAPTION=Service Name
+LABEL_GENERATE_TESTCASE_CAPTION=Generate test case to test the service
+LABEL_DATABINDING_CAPTION=Databinding Name
+LABEL_PORTNAME=Port Name
+LABEL_GENERATE_ALL=Generate All Types for all elements refered by shemas
+LABEL_PACKEGE_NAME=Custom package name
+LABEL_NAMESPACE=Namespace
+LABEL_PACKAGE=Package
+LABEL_NAMESPACE_TO_PACKAGE=Namespace to package mappings
+LABEL_CLIENT_SIDE=Client mode
+LABEL_SYNC_AND_ASYNC=Generate both sync and async
+LABEL_SYNC=Generate sync style only
+LABEL_ASYNC=Generate async style only
+LABEL_DATA_MODEL=WebServiceDataModel
+
+ERROR_WSDL_NOT_FOUND=Specified WSDL is not found!, Please Check whether you have entered the correct path to a *.wsdl on previous page.
+ERROR_WSDL_INVALID=Specified WSDL is invalid!, Please select a validated *.wsdl/*.xml file on previous page.
+ERROR_NO_PORTS_IN_SERVICE=No ports found in the specified service
+ERROR_CODEGEN_EXCEPTION=Exception occured while code generation the wsdl
+
+MSG_ERROR_DEFAULT=error occured during the operation
+TOOLTIP_PPAE_PAGE=test tooltip
+BUTTON_ALL_WANTED=test button
+
+PAGE_TITLE_WS_AXIS2_PROXY=Axis2 Client Web Service Configuration
+PAGE_DESC_WS_AXIS2_PROXY=Please select the appropriate Codegen settings
+
+DATA_BINDING_ADB=ADB
+DATA_BINDING_NONE=NONE
+
+DIR_META_INF=META-INF
+DIR_BUILD=build
+DIR_SRC=src
+DIR_LIB=lib
+DIR_CLASSES=classes
+DIR_RESOURCES=resources
+DIR_AAR=aar
+DIR_WEB_INF=WEB-INF
+DIR_SERVICES=services
+DIR_WEBSERVICES=webservices
+DIR_WEBCONTENT=WebContent
+DIR_WORKSPACE=workspace
+DIR_AXIS2=axis2
+DIR_PLUGINS=plugins
+DIR_DOT_METADATA=.metadata
+DIR_DOT_PLUGINS=.plugins
+
+ERROR_INVALID_FILE_READ_WRITEL=Exception occured while file read wrote
+ERROR_INVALID_WSDL_FILE_READ_WRITEL=Exception occured while wsdl file read wrote
+
+#AXIS2_RUNTIME=org.apache.axis2_1.0.0
+AXIS2_RUNTIME=org.apache.axis2
+AXIS2_PROJECT=org.eclipse.jst.ws.axis2
+#PATH_TO_AXIS2_LIBS=/workspace/org.apache.axis2/axis2/WEB-INF/lib
+PATH_TO_AXIS2_LIBS=/plugins/org.apache.axis2_1.0.0/axis2/WEB-INF/lib
+USER_WORK_DIRECTORY=user.dir
+SPLIT_WORKSPACE=/workspace
+WEB_INF_LIB=/WEB-INF/lib
+CODEGEN_RESULTS=codegen
\ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUIMessages.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUIMessages.java
new file mode 100644
index 0000000..ff37e4d
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/messages/Axis2ConsumptionUIMessages.java
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070110 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2 runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public final class Axis2ConsumptionUIMessages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.eclipse.jst.ws.axis2.consumption.core.messages.Axis2ConsumptionUI";//$NON-NLS-1$
+
+ private Axis2ConsumptionUIMessages() {
+ // Do not instantiate
+ }
+
+ public static String LABEL_SERVICE_NAME_CAPTION;
+ public static String LABEL_GENERATE_TESTCASE_CAPTION;
+ public static String LABEL_DATABINDING_CAPTION;
+ public static String LABEL_PORTNAME;
+ public static String LABEL_GENERATE_ALL;
+ public static String LABEL_PACKEGE_NAME;
+ public static String LABEL_NAMESPACE;
+ public static String LABEL_PACKAGE;
+ public static String LABEL_NAMESPACE_TO_PACKAGE;
+ public static String LABEL_CLIENT_SIDE;
+ public static String LABEL_SYNC_AND_ASYNC;
+ public static String LABEL_SYNC;
+ public static String LABEL_ASYNC;
+ public static String LABEL_DATA_MODEL;
+
+ public static String MSG_ERROR_DEFAULT;
+
+ public static String PAGE_TITLE_WS_AXIS2_PROXY;
+ public static String PAGE_DESC_WS_AXIS2_PROXY;
+
+
+
+ public static String TOOLTIP_PPAE_PAGE;
+ public static String BUTTON_ALL_WANTED;
+
+ public static String DIR_DYNAMIC_PROJECT_WEBSERVICES;
+ public static String DIR_BUILD;
+ public static String DIR_SRC;
+ public static String DIR_CLASSES;
+ public static String DIR_RESOURCES;
+ public static String DIR_AAR;
+ public static String DIR_META_INF;
+ public static String DIR_WEB_INF;
+ public static String DIR_SERVICES;
+ public static String DIR_WEBSERVICES;
+ public static String DIR_WEBCONTENT;
+ public static String DIR_WORKSPACE;
+ public static String DIR_AXIS2;
+ public static String DIR_PLUGINS;
+ public static String DIR_DOT_METADATA;
+ public static String DIR_DOT_PLUGINS;
+
+ public static String ERROR_INVALID_FILE_READ_WRITEL;
+ public static String ERROR_INVALID_WSDL_FILE_READ_WRITEL;
+ public static String ERROR_CODEGEN_EXCEPTION;
+
+ public static String AXIS2_RUNTIME;
+ public static String AXIS2_PROJECT;
+ public static String PATH_TO_AXIS2_LIBS;
+ public static String USER_WORK_DIRECTORY;
+ public static String SPLIT_WORKSPACE;
+ public static String WEB_INF_LIB;
+ public static String CODEGEN_RESULTS;
+
+ public static String DATA_BINDING_ADB;
+ public static String DATA_BINDING_NONE;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, Axis2ConsumptionUIMessages.class);
+ }
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/plugin/WebServiceAxis2ConsumptionCorePlugin.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/plugin/WebServiceAxis2ConsumptionCorePlugin.java
new file mode 100644
index 0000000..51673ba
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/plugin/WebServiceAxis2ConsumptionCorePlugin.java
@@ -0,0 +1,50 @@
+package org.eclipse.jst.ws.axis2.consumption.core.plugin;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class WebServiceAxis2ConsumptionCorePlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.jst.ws.axis2.consumption.core.plugin";
+
+ // The shared instance
+ private static WebServiceAxis2ConsumptionCorePlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public WebServiceAxis2ConsumptionCorePlugin() {
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static WebServiceAxis2ConsumptionCorePlugin getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/ContentCopyUtils.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/ContentCopyUtils.java
new file mode 100644
index 0000000..daed5ca
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/ContentCopyUtils.java
@@ -0,0 +1,126 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070118 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2 runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.utils;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.ws.axis2.consumption.core.messages.Axis2ConsumptionUIMessages;
+import org.eclipse.jst.ws.internal.plugin.WebServicePlugin;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.wst.command.internal.env.core.common.StatusUtils;
+import org.eclipse.wst.command.internal.env.core.context.ResourceContext;
+import org.eclipse.wst.common.environment.IStatusHandler;
+
+public class ContentCopyUtils {
+
+ private List fileAndDirectoriesList = new ArrayList();
+ FileInputStream finStream = null;
+
+ /**
+ * This method will copy the source directory into the eclipse workspace according to the Eclipse Framework API
+ * @param sourceDir
+ * @param destinationDir
+ * @param monitor
+ * @param statusHandler
+ * @return
+ */
+ public IStatus copyDirectoryRecursivelyIntoWorkspace(String sourceDir, String destinationDir,IProgressMonitor monitor,IStatusHandler statusHandler) {
+ IStatus status = Status.OK_STATUS;
+ fileAndDirectoriesList.clear();
+ File axis2WebappFolder = new File(sourceDir);
+ visitAllDirsAndFiles(axis2WebappFolder);
+ List deployFiles = new ArrayList();
+ deployFiles= fileAndDirectoriesList;
+
+ try {
+
+ //Import the axis2 dependency plugin according to the Resources API of eclipse
+ ResourceContext context = WebServicePlugin.getInstance().getResourceContext();
+
+ IPath outputPath = new Path (destinationDir);
+
+ String fileName;
+ IPath targetPath=null;
+ boolean isDirectory = false;
+
+ String deployFile;
+ Iterator iterator;
+
+ String tempOutputDir = axis2WebappFolder.toString();
+ iterator = deployFiles.iterator();
+ while (iterator.hasNext()) {
+ deployFile = (String) iterator.next();
+ File source = new File(deployFile);
+ if (source.isDirectory()) {
+ isDirectory =true;
+ }else{
+ isDirectory=false;
+ finStream = new FileInputStream(source);
+ }
+
+ if (deployFile.startsWith(tempOutputDir)) {
+ fileName = deployFile.substring(tempOutputDir.length());
+ targetPath = outputPath.append(fileName).makeAbsolute();
+ if (isDirectory){
+ org.eclipse.wst.command.internal.env.common.FileResourceUtils.makeFolderPathAtLocation(context,
+ targetPath,
+ monitor,
+ statusHandler);
+ }else{
+ if (finStream != null) {
+ org.eclipse.wst.command.internal.env.common.FileResourceUtils.createFileAtLocation(context,
+ targetPath,
+ finStream,
+ monitor,
+ statusHandler);
+ }
+ finStream.close();
+ }
+ }
+ }
+ } catch (IOException e) {
+ status = StatusUtils.errorStatus(NLS.bind(Axis2ConsumptionUIMessages.ERROR_INVALID_FILE_READ_WRITEL,new String[]{e.getLocalizedMessage()}), e);
+ } catch (CoreException e) {
+ status = StatusUtils.errorStatus(NLS.bind(Axis2ConsumptionUIMessages.ERROR_INVALID_FILE_READ_WRITEL,new String[]{e.getLocalizedMessage()}), e);
+ }
+
+ return status;
+
+ }
+
+ // Process all files and directories under dir
+ private void visitAllDirsAndFiles(File dir) {
+
+ fileAndDirectoriesList.add(dir.getAbsolutePath());
+
+ if (dir.isDirectory()) {
+ String[] children = dir.list();
+ for (int i=0; i<children.length; i++) {
+ visitAllDirsAndFiles(new File(dir, children[i]));
+ }
+ }
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/DefaultCodegenUtil.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/DefaultCodegenUtil.java
new file mode 100644
index 0000000..1f68b2b
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/DefaultCodegenUtil.java
@@ -0,0 +1,88 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070206 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.utils;
+
+import java.lang.reflect.Method;
+import java.util.List;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.ws.axis2.consumption.core.data.Model;
+import org.eclipse.jst.ws.axis2.consumption.core.messages.Axis2ConsumptionUIMessages;
+import org.eclipse.jst.ws.axis2.core.utils.ClassLoadingUtil;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.wst.command.internal.env.core.common.StatusUtils;
+
+public class DefaultCodegenUtil {
+
+ private WSDLPropertyReader reader;
+ private Model model;
+ private List serviceQNameList = null;
+ IStatus status;
+
+ public DefaultCodegenUtil(org.eclipse.jst.ws.axis2.consumption.core.data.DataModel model){
+ this.model=model;
+ }
+
+ public DefaultCodegenUtil(org.eclipse.jst.ws.axis2.creation.core.data.DataModel model){
+ this.model=model;
+ }
+
+ /**
+ * populate the model for the default scenario from the wsdl url
+ */
+ public void populateModelParamsFromWSDL() {
+ status = Status.OK_STATUS;
+ if (reader == null)
+ reader = new WSDLPropertyReader();
+ try {
+ String lname = model.getWsdlURI();
+ if (!"".equals(lname.trim())) {
+
+ reader.readWSDL(model.getWebProjectName(), lname);
+
+ this.serviceQNameList = reader.getServiceList();
+ if (!serviceQNameList.isEmpty()) {
+ // add the local part of the
+ Object serviceQnameInstance = serviceQNameList.get(0);
+ Class QNameClass = ClassLoadingUtil.loadClassFromAntClassLoader("javax.xml.namespace.QName");
+ Method GetLocalPartMethod = QNameClass.getMethod("getLocalPart", null);
+ Object resultLocalPart = GetLocalPartMethod.invoke(serviceQnameInstance, null);
+ model.setServiceName(resultLocalPart.toString());
+ // load the ports
+ loadPortNames();
+ }
+ populatePackageName();
+ //populate the namespacess
+ //loadNamespaces(reader.getDefinitionNamespaceMap());
+ }
+ } catch (Exception e) {
+ status = StatusUtils.errorStatus(NLS.bind(
+ Axis2ConsumptionUIMessages.ERROR_INVALID_WSDL_FILE_READ_WRITEL,
+ new String[]{e.getLocalizedMessage()}), e);
+ }
+ }
+
+ private void loadPortNames() {
+ java.util.List ports = reader.getPortNameList(serviceQNameList.get(0));
+ // add the local part of the
+ model.setPortName(ports.get(0).toString());
+ }
+
+ private void populatePackageName() {
+ model.setPackageText(reader.packageFromTargetNamespace());
+ }
+
+}
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDL2JavaGenerator.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDL2JavaGenerator.java
new file mode 100644
index 0000000..93c94d7
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDL2JavaGenerator.java
@@ -0,0 +1,396 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070118 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.consumption.core.utils;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+import org.eclipse.jst.ws.axis2.core.utils.ClassLoadingUtil;
+
+public class WSDL2JavaGenerator {
+
+ /**
+ * Maps a string containing the name of a language to a constant defined in
+ * CommandLineOptionConstants.LanguageNames
+ * @param UILangValue a string containg a language, e.g. "java", "cs", "cpp" or "vb"
+ * @return a normalized string constant
+ */
+ private String mapLanguagesWithCombo(String UILangValue) {
+ return UILangValue;
+ }
+ /**
+ * Creates a list of parameters for the code generator based on the decisions made by
+ * the user on the OptionsPage(page2). For each setting, there is a Command-Line option for
+ * the Axis2 code generator.
+ * @return a Map with keys from CommandLineOptionConstants with the values entered
+ * by the user on the Options Page.
+ */
+ public Map fillOptionMap(boolean isAyncOnly,
+ boolean isSyncOnly,
+ boolean isServerSide,
+ boolean isServerXML,
+ boolean isTestCase,
+ boolean isGenerateAll,
+ String serviceName,
+ String portName,
+ String databindingName,
+ String WSDLURI,
+ String packageName,
+ String selectedLanguage,
+ String outputLocation,
+ String namespace2packageList,
+ boolean isServerSideInterface
+ ){
+ Map optionMap = new HashMap();
+
+ try{
+ //Reflection invocatin resources
+ Class CommandLineOptionConstantsClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.util.CommandLineOptionConstants$WSDL2JavaConstants");
+ Object stringDummyObj = String.class;
+ Class CommandLineOptionClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.util.CommandLineOption");
+ Class[] parameterTypes = new Class[2];
+ parameterTypes[0] = String.class;
+ parameterTypes[1] = String[].class;
+ Constructor CommandLineOptionConstructor = CommandLineOptionClass.getConstructor(parameterTypes);
+ Object[] initargs;
+ //WSDL file name
+
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.WSDL_LOCATION_URI_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.WSDL_LOCATION_URI_OPTION,
+ // getStringArray(WSDLURI)));
+
+ //Reflection Invocation
+ Field WSDL_LOCATION_URI_OPTION_FIELD = CommandLineOptionConstantsClass.getField("WSDL_LOCATION_URI_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)WSDL_LOCATION_URI_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(WSDLURI);
+
+ optionMap.put((String)WSDL_LOCATION_URI_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+
+ //Async only
+ if (isAyncOnly)
+ {
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.CODEGEN_ASYNC_ONLY_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.CODEGEN_ASYNC_ONLY_OPTION,
+ // new String[0]));
+
+ //Reflection Invocation
+ Field CODEGEN_ASYNC_ONLY_OPTION_FIELD = CommandLineOptionConstantsClass.getField("CODEGEN_ASYNC_ONLY_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)CODEGEN_ASYNC_ONLY_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)CODEGEN_ASYNC_ONLY_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+
+ //sync only
+ if (isSyncOnly)
+ {
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION,
+ // new String[0]));
+ Field CODEGEN_SYNC_ONLY_OPTION_FIELD = CommandLineOptionConstantsClass.getField("CODEGEN_SYNC_ONLY_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)CODEGEN_SYNC_ONLY_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)CODEGEN_SYNC_ONLY_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ //serverside
+ if (isServerSide)
+ {
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_CODE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_CODE_OPTION,
+ // new String[0]));
+ Field SERVER_SIDE_CODE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("SERVER_SIDE_CODE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)SERVER_SIDE_CODE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)SERVER_SIDE_CODE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ //server xml
+ if (isServerXML)
+ {
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_SERVICE_DESCRIPTION_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_SERVICE_DESCRIPTION_OPTION,
+ // new String[0]));
+ Field GENERATE_SERVICE_DESCRIPTION_OPTION_FIELD = CommandLineOptionConstantsClass.getField("GENERATE_SERVICE_DESCRIPTION_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)GENERATE_SERVICE_DESCRIPTION_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)GENERATE_SERVICE_DESCRIPTION_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ if (isGenerateAll){
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_ALL_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_ALL_OPTION,
+ // new String[0]));
+ Field GENERATE_ALL_OPTION_FIELD = CommandLineOptionConstantsClass.getField("GENERATE_ALL_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)GENERATE_ALL_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)GENERATE_ALL_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ }
+ //test case
+ if (isTestCase)
+ {
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_TEST_CASE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.GENERATE_TEST_CASE_OPTION,
+ // new String[0]));
+ Field GENERATE_TEST_CASE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("GENERATE_TEST_CASE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)GENERATE_TEST_CASE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+
+ optionMap.put((String)GENERATE_TEST_CASE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ //package name
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.PACKAGE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.PACKAGE_OPTION,
+ // getStringArray(packageName)));
+ Field PACKAGE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("PACKAGE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)PACKAGE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(packageName);
+ optionMap.put((String)PACKAGE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+
+ //selected language
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.STUB_LANGUAGE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.STUB_LANGUAGE_OPTION,
+ // getStringArray(mapLanguagesWithCombo(selectedLanguage))));
+ Field STUB_LANGUAGE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("STUB_LANGUAGE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)STUB_LANGUAGE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(mapLanguagesWithCombo(selectedLanguage));
+ optionMap.put((String)STUB_LANGUAGE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+
+ //output location
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.OUTPUT_LOCATION_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.OUTPUT_LOCATION_OPTION,
+ // getStringArray(outputLocation)));
+ Field OUTPUT_LOCATION_OPTION_FIELD = CommandLineOptionConstantsClass.getField("OUTPUT_LOCATION_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)OUTPUT_LOCATION_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(outputLocation);
+ optionMap.put((String)OUTPUT_LOCATION_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+
+ //databinding
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION,
+ // getStringArray(databindingName)));
+ Field DATA_BINDING_TYPE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("DATA_BINDING_TYPE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)DATA_BINDING_TYPE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(databindingName);
+ optionMap.put((String)DATA_BINDING_TYPE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+
+ //port name
+ if (portName!=null){
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.PORT_NAME_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.PORT_NAME_OPTION,
+ // getStringArray(portName)));
+ Field PORT_NAME_OPTION_FIELD = CommandLineOptionConstantsClass.getField("PORT_NAME_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)PORT_NAME_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(portName);
+ optionMap.put((String)PORT_NAME_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ //service name
+ if (serviceName!= null){
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.SERVICE_NAME_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.SERVICE_NAME_OPTION,
+ // getStringArray(serviceName)));
+ Field SERVICE_NAME_OPTION_FIELD = CommandLineOptionConstantsClass.getField("SERVICE_NAME_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)SERVICE_NAME_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(serviceName);
+ optionMap.put((String)SERVICE_NAME_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+ //ns2pkg mapping
+ if (namespace2packageList!= null){
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.NAME_SPACE_TO_PACKAGE_OPTION
+ // , getStringArray(namespace2packageList)));
+ Field NAME_SPACE_TO_PACKAGE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("NAME_SPACE_TO_PACKAGE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)NAME_SPACE_TO_PACKAGE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = getStringArray(namespace2packageList);
+ optionMap.put((String)NAME_SPACE_TO_PACKAGE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+
+ //server side interface mapping
+ if (isServerSideInterface){
+ // optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_INTERFACE_OPTION,
+ // new CommandLineOption(
+ // CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_INTERFACE_OPTION,
+ // new String[0]));
+ Field SERVER_SIDE_INTERFACE_OPTION_FIELD = CommandLineOptionConstantsClass.getField("SERVER_SIDE_INTERFACE_OPTION");
+ initargs = new Object[2];
+ initargs[0] = (String)SERVER_SIDE_INTERFACE_OPTION_FIELD.get(stringDummyObj);
+ initargs[1] = new String[0];
+ optionMap.put((String)SERVER_SIDE_INTERFACE_OPTION_FIELD.get(stringDummyObj),
+ CommandLineOptionConstructor.newInstance(initargs));
+ }
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ return optionMap;
+
+ }
+
+ public String getBaseUri(String wsdlURI){
+
+ try {
+ URL url;
+ if (wsdlURI.indexOf("://")==-1){
+ url = new URL("file","",wsdlURI);
+ }else{
+ url = new URL(wsdlURI);
+ }
+
+
+ String baseUri;
+ if ("file".equals(url.getProtocol())){
+ baseUri = new File(url.getFile()).getParentFile().toURL().toExternalForm();
+ }else{
+ baseUri = url.toExternalForm().substring(0,
+ url.toExternalForm().lastIndexOf("/")
+ );
+ }
+
+
+ return baseUri;
+ } catch (MalformedURLException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ /**
+ * Reads the WSDL Object Model from the given location.
+ *
+ * @param wsdlURI the filesystem location (full path) of the WSDL file to read in.
+ * @return the WSDLDescription object containing the WSDL Object Model of the given WSDL file
+ * @throws WSDLException when WSDL File is invalid
+ * @throws IOException on errors reading the WSDL file
+ */
+ public Object getAxisService(String wsdlURI) throws Exception{
+
+ URL url;
+ if (wsdlURI.indexOf("://")==-1){
+ url = new URL("file","",wsdlURI);
+ }if (wsdlURI.indexOf(":/")==-1){
+ url = new URL("file","",wsdlURI);
+ }
+ else{
+ url = new URL(wsdlURI);
+ }
+
+ //FIXME @author soi -
+ // This quick fix assume that the wsdlURI points to a wsdl 1.1 version.
+ // A better fix should be to determine which builder to use based on the wsdl version.
+ // The current implementation of the wsdl builder classes did not allow for this.
+ // I will suggestthat the determination of which builder to use should be done in
+ // the builder classes, preferably in the parent builder class. Accessable through a
+ // static reference to a method like getBuilderInstance(String wsdlURI) in the parent
+ //builder class or through a builder Abstract Factor or Abstract factory methods.
+
+
+ // WSDL11ToAxisServiceBuilder builder = new WSDL11ToAxisServiceBuilder(url.openConnection()
+ // .getInputStream());
+ // builder.setBaseUri(getBaseUri(wsdlURI));
+ // return builder.populateService();
+
+ //Reflection invocation
+ //Class WSDL11ToAxisServiceBuilderClass = ClassLoadingUtil.loadClassFromAxis2LibPath(projectName,"org.apache.axis2.description.WSDL11ToAxisServiceBuilder");
+ Class WSDL11ToAxisServiceBuilderClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.description.WSDL11ToAxisServiceBuilder");
+
+ Class[] parameterTypes = new Class[1];
+ //parameterTypes[0] = url.openConnection().getInputStream().getClass();
+ parameterTypes[0] =InputStream.class;
+ //Constructor WSDL11ToAxisServiceBuilderConstructor = WSDL11ToAxisServiceBuilderClass.getConstructor(parameterTypes);
+ Object[] initargs = new Object[1];
+ initargs[0] = url.openConnection().getInputStream();
+ //Object WSDL11ToAxisServiceBuilderInstance = WSDL11ToAxisServiceBuilderConstructor.newInstance(initargs);
+ //Object WSDL11ToAxisServiceBuilderInstance = ClassLoadingUtil.getInstanceFromAxis2LibPath("t/TestThis","org.apache.axis2.description.WSDL11ToAxisServiceBuilder",parameterTypes,initargs);
+
+ Constructor constructor = WSDL11ToAxisServiceBuilderClass.getConstructor(parameterTypes);
+ Object WSDL11ToAxisServiceBuilderInstance = constructor.newInstance(initargs);
+
+ Class[] parameterTypes1 = new Class[1];
+ parameterTypes1[0] = String.class;
+ Method setBaseUriMethod = WSDL11ToAxisServiceBuilderClass.getMethod("setBaseUri", parameterTypes1);
+
+ Object[] args = new Object[1];
+ args[0]= wsdlURI;
+ setBaseUriMethod.invoke(WSDL11ToAxisServiceBuilderInstance, args);
+
+ Method populateServiceMethod = WSDL11ToAxisServiceBuilderClass.getMethod("populateService", null);
+ return populateServiceMethod.invoke(WSDL11ToAxisServiceBuilderInstance, null);
+
+ //return this import org.apache.axis2.description.AxisService;
+ }
+
+ /**
+ * Converts a single String into a String Array
+ *
+ * @param value a single string
+ * @return an array containing only one element
+ */
+ private String[] getStringArray(String value)
+ {
+ String[] values = new String[1];
+ values[0] = value;
+ return values;
+ }
+}
+
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDLPropertyReader.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDLPropertyReader.java
new file mode 100644
index 0000000..60b12da
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/utils/WSDLPropertyReader.java
@@ -0,0 +1,222 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070118 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+
+package org.eclipse.jst.ws.axis2.consumption.core.utils;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.jst.ws.axis2.core.utils.ClassLoadingUtil;
+
+
+/**
+ * This class presents a convenient way of reading the
+ * WSDL file(url) and producing a useful set of information
+ * It does NOT use any of the standard WSDL classes from
+ * Axis2, rather it uses wsdl4j to read the wsdl and extract
+ * the properties (This is meant as a convenience for the UI
+ * only. We may not need the whole conversion the WSDLpump
+ * goes through)
+ * One would need to change this to suit a proper WSDL
+ */
+public class WSDLPropertyReader {
+
+
+ //private Definition wsdlDefinition = null;
+ private Object DefinitionInstance = null;
+ private Class DefinitionClass = null;
+ private Class ServiceClass = null;
+
+ public void readWSDL(String projectName, String filepath) throws Exception {
+
+ ClassLoadingUtil.init(projectName);
+
+ // WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
+ // wsdlDefinition = reader.readWSDL(filepath);
+
+ Class WSDLFactoryClass = ClassLoadingUtil.loadClassFromAntClassLoader("javax.wsdl.factory.WSDLFactory");
+ Method newInstanceMethod = WSDLFactoryClass.getMethod("newInstance", null);
+ Object WSDLFactoryObject = newInstanceMethod.invoke(null, null);
+ Class WSDLFactoryImplClass = ClassLoadingUtil.loadClassFromAntClassLoader(WSDLFactoryObject.getClass().getName());
+ Method newWSDLReaderMethod = WSDLFactoryImplClass.getMethod("newWSDLReader", null);
+ Object WSDLReaderObject = newWSDLReaderMethod.invoke(WSDLFactoryObject, null);
+ Class WSDLReaderClass = ClassLoadingUtil.loadClassFromAntClassLoader(WSDLReaderObject.getClass().getName());
+ Class[] parameterTypes1 = new Class[1];
+ parameterTypes1[0] = String.class;
+ Method readWSDLMethod = WSDLReaderClass.getMethod("readWSDL", parameterTypes1);
+ Object[] args = new Object[1];
+ args[0]= filepath;
+ DefinitionInstance = readWSDLMethod.invoke(WSDLReaderObject, args);
+
+ }
+
+ /**
+ * Returns the namespace map from definition
+ * @return
+ */
+ public Map getDefinitionNamespaceMap(){
+ //return wsdlDefinition.getNamespaces();
+ Map map = null;
+ try {
+ Method getNamespacesMethod = DefinitionClass.getMethod("getNamespaces", null);
+ map = (Map)getNamespacesMethod.invoke(DefinitionInstance, null);
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ return map;
+ }
+
+ /**
+ * get the default package derived by the targetNamespace
+ */
+ public String packageFromTargetNamespace(){
+ //return URLProcessor.makePackageName(wsdlDefinition.getTargetNamespace());
+ String returnString = null;
+ try{
+ Method getTargetNamespaceMethod = DefinitionClass.getMethod("getTargetNamespace", null);
+ String packageName = (String)getTargetNamespaceMethod.invoke(DefinitionInstance, null);
+ Class URLProcessorClass = ClassLoadingUtil.loadClassFromAntClassLoader("org.apache.axis2.util.URLProcessor");
+ Class[] parameterTypes1 = new Class[1];
+ parameterTypes1[0] = String.class;
+ Method makePackageNameMethod = URLProcessorClass.getMethod("makePackageName", parameterTypes1);
+ Object[] args = new Object[1];
+ args[0]= packageName;
+ returnString = (String)makePackageNameMethod.invoke(null, args);
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+
+ return returnString;
+ }
+
+ /**
+ * Returns a list of service names
+ * the names are QNames
+ * @return
+ */
+ public List getServiceList(){
+ //Service service = null;
+ //Map serviceMap = wsdlDefinition.getServices();
+ //service = (Service)serviceIterator.next();
+ //returnList.add(service.getQName());
+ List returnList = new ArrayList();
+ try{
+ Object serviceInstance;
+ DefinitionClass = ClassLoadingUtil.loadClassFromAntClassLoader("javax.wsdl.Definition");
+ Method getServicesMethod = DefinitionClass.getMethod("getServices", null);
+ Map serviceMap = (Map)getServicesMethod.invoke(DefinitionInstance, null);
+
+ if(serviceMap!=null && !serviceMap.isEmpty()){
+ Iterator serviceIterator = serviceMap.values().iterator();
+ while(serviceIterator.hasNext()){
+ ServiceClass = ClassLoadingUtil.loadClassFromAntClassLoader("javax.wsdl.Service");
+ Method getQNameMethod = ServiceClass.getMethod("getQName", null);
+ serviceInstance = (Object)serviceIterator.next();
+ returnList.add(getQNameMethod.invoke(serviceInstance, null));
+ }
+ }
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ return returnList;
+ }
+
+ /**
+ * Returns a list of ports for a particular service
+ * the names are QNames
+ * @return
+ */
+ public List getPortNameList(Object serviceName){
+ //List returnList = new ArrayList();
+ //Service service = wsdlDefinition.getService(serviceName);
+ //Port port = null;
+ //if(service!=null){
+ // Map portMap = service.getPorts();
+ // if (portMap!=null && !portMap.isEmpty()){
+ // Iterator portIterator = portMap.values().iterator();
+ // while(portIterator.hasNext()){
+ // port = (Port)portIterator.next();
+ // returnList.add(port.getName());
+ // }
+ // }
+ //}
+ //return returnList;
+
+ List returnList = new ArrayList();
+ try{
+ Class[] parameterTypes = new Class[1];
+ parameterTypes[0] = serviceName.getClass();
+ Method getServiceMethod = DefinitionClass.getMethod("getService", parameterTypes);
+ Object[] args = new Object[1];
+ args[0]= serviceName;
+ Object serviceInstance = getServiceMethod.invoke(DefinitionInstance, args);
+ Object portInstance = null;
+ if(serviceInstance!=null){
+ Method getPortsMethod = ServiceClass.getMethod("getPorts", null);
+ Map portMap = (Map)getPortsMethod.invoke(serviceInstance, null);
+ if (portMap!=null && !portMap.isEmpty()){
+ Iterator portIterator = portMap.values().iterator();
+ while(portIterator.hasNext()){
+ portInstance = (Object)portIterator.next();
+ Class PortClass = ClassLoadingUtil.loadClassFromAntClassLoader("javax.wsdl.Port");
+ Method getNameMethod = PortClass.getMethod("getName", null);
+ returnList.add(getNameMethod.invoke(portInstance,null));
+ }
+ }
+
+ }
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ return returnList;
+ }
+}
+
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/dir-wcprops
new file mode 100644
index 0000000..80c1a22
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 140
+/repos/wso2/!svn/ver/1220/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/entries
new file mode 100644
index 0000000..f2e6a64
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1220"
+ name=""
+ committed-date="2007-03-12T17:13:59.443202Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="core"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/README.txt b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/README.txt
new file mode 100644
index 0000000..271a8ce
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/README.txt
@@ -0,0 +1,2 @@
+This is a Subversion working copy administrative directory.
+Visit http://subversion.tigris.org/ for more information.
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/dir-wcprops b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/dir-wcprops
new file mode 100644
index 0000000..9560dd0
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/dir-wcprops
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 145
+/repos/wso2/!svn/ver/1220/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core
+END
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/empty-file b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/empty-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/empty-file
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/entries b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/entries
new file mode 100644
index 0000000..695b4d5
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/entries
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+ xmlns="svn:">
+<entry
+ committed-rev="1220"
+ name=""
+ committed-date="2007-03-12T17:13:59.443202Z"
+ url="https://wso2.org/repos/wso2/people/sandakith/axis2_wtp_plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core"
+ last-author="sandakith"
+ kind="dir"
+ uuid="a5903396-d722-0410-b921-86c7d4935375"
+ repos="https://wso2.org/repos/wso2"
+ revision="1738"/>
+<entry
+ name="data"
+ kind="dir"/>
+</wc-entries>
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/format b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/format
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/.svn/format
@@ -0,0 +1 @@
+4
diff --git a/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/data/DataModel.java b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/data/DataModel.java
new file mode 100644
index 0000000..78ad0b3
--- /dev/null
+++ b/bundles/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/creation/core/data/DataModel.java
@@ -0,0 +1,166 @@
+/*******************************************************************************
+ * Copyright (c) 2007 WSO2 Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * WSO2 Inc. - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20070110 168762 sandakith@wso2.com - Lahiru Sandakith, Initial code to introduse the Axis2
+ * runtime to the framework for 168762
+ *******************************************************************************/
+package org.eclipse.jst.ws.axis2.creation.core.data;
+
+import org.eclipse.jst.ws.axis2.consumption.core.data.Model;
+
+public class DataModel extends Model{
+
+ //Client Side
+ private String serviceClass;
+ private boolean generateServicesXML;
+ private boolean servicesXML;
+ private boolean generateAAR;
+ private String pathToServicesXML;
+ private String pathToWebServicesTempDir;
+
+ //Server Side
+ private boolean generateServerSideInterface;
+ private boolean serverXMLCheck;
+ private boolean generateAllCheck;
+ private boolean testCaseCheck;
+ private String databindingType;
+ private String namespaseToPackageMapping;
+
+
+ public boolean isGenerateServicesXML(){
+ return generateServicesXML;
+ }
+
+ public void setGenerateServicesXML(boolean generateServicesXML){
+ this.generateServicesXML = generateServicesXML;
+ }
+
+ public String getPathToServicesXML(){
+ return pathToServicesXML;
+ }
+
+ public void setPathToServicesXML(String pathToServicesXML){
+ this.pathToServicesXML = pathToServicesXML;
+ }
+
+ public boolean isGenerateAAR() {
+ return generateAAR;
+ }
+
+ public void setGenerateAAR(boolean generateAAR) {
+ this.generateAAR = generateAAR;
+ }
+
+ public boolean isServicesXML() {
+ return servicesXML;
+ }
+
+ public void setServicesXML(boolean servicesXML) {
+ this.servicesXML = servicesXML;
+ }
+
+ public String getPathToWebServicesTempDir() {
+ return pathToWebServicesTempDir;
+ }
+
+ public void setPathToWebServicesTempDir(String pathToWebServicesTempDir) {
+ this.pathToWebServicesTempDir = pathToWebServicesTempDir;
+ }
+
+ public String getWsdlURI() {
+ return super.getWsdlURI();
+ }
+
+ public void setWsdlURI(String wsdlURI) {
+ super.setWsdlURI(wsdlURI);
+ }
+
+ public String getDatabindingType() {
+ return databindingType;
+ }
+
+ public void setDatabindingType(String databindingType) {
+ this.databindingType = databindingType;
+ }
+
+ public boolean isGenerateAllCheck() {
+ return generateAllCheck;
+ }
+
+ public void setGenerateAllCheck(boolean generateAllCheck) {
+ this.generateAllCheck = generateAllCheck;
+ }
+
+ public boolean isGenerateServerSideInterface() {
+ return generateServerSideInterface;
+ }
+
+ public void setGenerateServerSideInterface(boolean generateServerSideInterface) {
+ this.generateServerSideInterface = generateServerSideInterface;
+ }
+
+ public String getPortName() {
+ return super.getPortName();
+ }
+
+ public void setPortName(String portName) {
+ super.setPortName(portName);
+ }
+
+ public boolean isServerXMLCheck() {
+ return serverXMLCheck;
+ }
+
+ public void setServerXMLCheck(boolean serverXMLCheck) {
+ this.serverXMLCheck = serverXMLCheck;
+ }
+
+ public String getServiceName() {
+ return super.getServiceName();
+ }
+
+ public void setServiceName(String serviceName) {
+ super.setServiceName(serviceName);
+ }
+
+ public boolean isTestCaseCheck() {
+ return testCaseCheck;
+ }
+
+ public void setTestCaseCheck(boolean testCaseCheck) {
+ this.testCaseCheck = testCaseCheck;
+ }
+
+ public String getPackageText() {
+ return super.getPackageText();
+ }
+
+ public void setPackageText(String packageText) {
+ super.setPackageText(packageText);
+ }
+
+ public String getServiceClass() {
+ return serviceClass;
+ }
+
+ public void setServiceClass(String serviceClass) {
+ this.serviceClass = serviceClass;
+ }
+
+ public String getNamespaseToPackageMapping() {
+ return namespaseToPackageMapping;
+ }
+
+ public void setNamespaseToPackageMapping(String namespaseToPackageMapping) {
+ this.namespaseToPackageMapping = namespaseToPackageMapping;
+ }
+
+}