JBoss Tools SVN: r9065 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-07-03 20:48:40 -0400 (Thu, 03 Jul 2008)
New Revision: 9065
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/EditorDomEventListener.java
Log:
TODO Split it up to several interfaces related to Mouse Events, DOM tree modification events, Selection events, etc.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/EditorDomEventListener.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/EditorDomEventListener.java 2008-07-04 00:40:37 UTC (rev 9064)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/EditorDomEventListener.java 2008-07-04 00:48:40 UTC (rev 9065)
@@ -20,6 +20,10 @@
import org.mozilla.interfaces.nsIDOMMutationEvent;
import org.mozilla.interfaces.nsISelection;
+/**
+ * TODO Split it up to several interfaces related to Mouse Events, DOM tree modification events,
+ * Selection events, etc.
+ */
public interface EditorDomEventListener extends nsIContextMenuListener {
16 years, 5 months
JBoss Tools SVN: r9064 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-07-03 20:40:37 -0400 (Thu, 03 Jul 2008)
New Revision: 9064
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java
Log:
Fix PMD Violations in code
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java 2008-07-04 00:24:56 UTC (rev 9063)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java 2008-07-04 00:40:37 UTC (rev 9064)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.editor.template;
+import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
@@ -100,7 +101,7 @@
return templateList;
}
- static IPath getFilePath(String name, IConfigurationElement confElement) throws Exception {
+ static IPath getFilePath(String name, IConfigurationElement confElement) throws IOException {
VpePlugin plugin = VpePlugin.getDefault();
Bundle bundle =
confElement==null?plugin.getBundle():Platform.getBundle(confElement.getContributor().getName());
@@ -110,7 +111,7 @@
return path;
}
- static String getAutoTemplateFileName() throws Exception {
+ static String getAutoTemplateFileName() throws IOException {
IPath path = getFilePath(VpeTemplateManager.AUTO_TEMPLATES_FILE_NAME, null);
return path.toOSString();
}
16 years, 5 months
JBoss Tools SVN: r9063 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-07-03 20:24:56 -0400 (Thu, 03 Jul 2008)
New Revision: 9063
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
Log:
Clean PMD Exceptions violations
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-07-04 00:22:17 UTC (rev 9062)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-07-04 00:24:56 UTC (rev 9063)
@@ -11,6 +11,7 @@
package org.jboss.tools.vpe.editor.template;
import java.io.File;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
@@ -360,15 +361,11 @@
}
private void loadTemplates(IPath vpeFilePath, IConfigurationElement confElement) {
- try {
Element root = XMLUtilities.getElement(vpeFilePath.toFile(), null);
loadTemplates(root,confElement);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
- }
}
- private void loadTemplates(Element root, IConfigurationElement confElement) throws Exception {
+ private void loadTemplates(Element root, IConfigurationElement confElement) {
if (root == null || !TAG_TEMPLATES.equals(root.getNodeName())) {
return;
}
@@ -437,7 +434,7 @@
addChildren(ifElement, set, confElement,caseSensitive);
}
- private void setDefTemplate(VpeTemplate defTemplate) {
+ public void setDefTemplate(VpeTemplate defTemplate) {
if (this.defTemplate == null) {
this.defTemplate = defTemplate;
}
@@ -508,7 +505,7 @@
try {
IPath path = VpeTemplateFileList.getFilePath(AUTO_TEMPLATES_FILE_NAME,null);
XMLUtilities.serialize(root, path.toOSString());
- } catch(Exception e) {
+ } catch(IOException e) {
VpePlugin.reportProblem(e);
}
@@ -685,7 +682,7 @@
IPath path = VpeTemplateFileList.getFilePath(AUTO_TEMPLATES_FILE_NAME, null);
// fixed bug [EFWPE-869] - uncomment this line
XMLUtilities.serialize(root, path.toOSString());
- } catch(Exception e) {
+ } catch(IOException e) {
VpePlugin.reportProblem(e);
}
}
@@ -738,7 +735,7 @@
if (root != null && TAG_TEMPLATES.equals(root.getNodeName())) {
return root;
}
- } catch (Exception e) {
+ } catch (IOException e) {
VpePlugin.reportProblem(e);
}
return null;
@@ -851,25 +848,59 @@
Class templateClass = bundle.loadClass(templateClassName);
template = (VpeTemplate)templateClass.newInstance();
- } catch (Exception e) {
- try {
- Class templateClass = Class.forName(templateClassName);
- template = (VpeTemplate)templateClass.newInstance();
- } catch (Exception e2) {
- String message = e.getMessage();
- if(message==null) {
- message = "Can't get VPE template class: " + templateClassName + ", from bundle:" + nameSpaceIdentifyer; //$NON-NLS-1$
- }
- VpePlugin.getPluginLog().logError(message, e);
- return null;
- }
+ } catch (ClassNotFoundException e) {
+ template = handleTemplateClassLoadException(template,
+ templateClassName, nameSpaceIdentifyer, e);
+ } catch(IllegalAccessException e) {
+ template = handleTemplateClassLoadException(template,
+ templateClassName, nameSpaceIdentifyer, e);
+ } catch(InstantiationException e) {
+ template = handleTemplateClassLoadException(template,
+ templateClassName, nameSpaceIdentifyer, e);
}
} else {
template = new VpeHtmlTemplate();
}
- template.init(templateElement, caseSensitive);
+ if(template!=null) {
+ template.init(templateElement, caseSensitive);
+ }
return template;
}
+
+ private VpeTemplate handleTemplateClassLoadException(VpeTemplate template,
+ String templateClassName, String nameSpaceIdentifyer,
+ Exception e) {
+
+ Class templateClass = null;
+ try {
+ templateClass = Class.forName(templateClassName);
+ } catch (ClassNotFoundException e1) {
+ handleTemplateLoadException(templateClassName,
+ nameSpaceIdentifyer, e1);
+ }
+ try {
+ if(templateClass!=null) {
+ template = (VpeTemplate)templateClass.newInstance();
+ }
+ } catch (InstantiationException e2) {
+ handleTemplateLoadException(templateClassName,
+ nameSpaceIdentifyer, e2);
+ } catch (IllegalAccessException e3) {
+ handleTemplateLoadException(templateClassName,
+ nameSpaceIdentifyer, e3);
+ }
+
+ return template;
+ }
+
+ private void handleTemplateLoadException(String templateClassName,
+ String nameSpaceIdentifyer, Exception e) {
+ String message = e.getMessage();
+ if(message==null) {
+ message = "Can't get VPE template class: " + templateClassName + ", from bundle:" + nameSpaceIdentifyer; //$NON-NLS-1$
+ }
+ VpePlugin.getPluginLog().logError(message, e);
+ }
private VpeTemplate createDefTemplate() {
VpeTemplate localDefTemplate = new VpeHtmlTemplate();
@@ -897,7 +928,7 @@
InputStream is = VpePlugin.getDefault().getBundle().getResource(DEFAUL_TEXT_FORMATTING_CONF_FILE_NAME).openStream();
Element root = XMLUtilities.getElement(new InputStreamReader(is), null);
defaultTextFormattingData = new TextFormatingData(root);
- } catch (Exception e) {
+ } catch (IOException e) {
VpePlugin.getPluginLog().logError(e);
}
}
16 years, 5 months
JBoss Tools SVN: r9062 - in trunk/vpe/tests/org.jboss.tools.vpe.test: src/org/jboss/tools/vpe and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-07-03 20:22:17 -0400 (Thu, 03 Jul 2008)
New Revision: 9062
Added:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/VpeEditorPreferencesPageTest.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
Log:
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2008-07-03 10:54:26 UTC (rev 9061)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2008-07-04 00:22:17 UTC (rev 9062)
@@ -9,7 +9,11 @@
org.eclipse.core.runtime,
org.junit,
org.jboss.tools.common,
- org.jboss.tools.vpe
+ org.jboss.tools.vpe,
+ org.jboss.tools.tests;bundle-version="2.0.0",
+ org.jboss.tools.common.model.ui;bundle-version="2.0.0"
Eclipse-LazyStart: true
-Export-Package: org.jboss.tools.vpe.test
+Export-Package: org.jboss.tools.vpe.editor.preferences,
+ org.jboss.tools.vpe.editor.template,
+ org.jboss.tools.vpe.test
Bundle-ClassPath: vpe-tests.jar
Added: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/VpeEditorPreferencesPageTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/VpeEditorPreferencesPageTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/VpeEditorPreferencesPageTest.java 2008-07-04 00:22:17 UTC (rev 9062)
@@ -0,0 +1,24 @@
+package org.jboss.tools.vpe.editor.preferences;
+
+import junit.framework.TestCase;
+
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.jboss.tools.test.util.WorkbenchUtils;
+
+public class VpeEditorPreferencesPageTest extends TestCase {
+ public void testVpeEditorPreferencesPageShow() {
+ PreferenceDialog prefDialog =
+ WorkbenchUtils.createPreferenceDialog(
+ VpeEditorPreferencesPage.class.getName());
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ Object selectedPage = prefDialog.getSelectedPage();
+ assertTrue("Selected page is not an instance of org.jboss.tools.vpe.editor.preferences.VpeEditorPreferencesPage", selectedPage instanceof VpeEditorPreferencesPage);
+ } finally {
+ prefDialog.close();
+ }
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/preferences/VpeEditorPreferencesPageTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java 2008-07-04 00:22:17 UTC (rev 9062)
@@ -0,0 +1,54 @@
+package org.jboss.tools.vpe.editor.template;
+
+import java.util.List;
+
+import org.jboss.tools.vpe.editor.util.TemplateManagingUtil;
+
+import junit.framework.TestCase;
+
+public class VpeTemplateManagerTest extends TestCase {
+
+ public void testSetAnyTemplates() {
+ VpeAnyData data = new VpeAnyData(
+ "tag-name1",
+ "tag-value",
+ "yes",
+ "red",
+ "green",
+ "blue",
+ "white",
+ true
+ );
+
+ VpeTemplateManager.getInstance().setAnyTemplate(data);
+
+ data = new VpeAnyData(
+ "tag-name2",
+ "tag-value",
+ "yes",
+ "red",
+ "green",
+ "blue",
+ "white",
+ true
+ );
+
+ VpeTemplateManager.getInstance().setAnyTemplate(data);
+ }
+
+ public void testGetAnyTemplates() {
+ List<VpeAnyData> templates = VpeTemplateManager.getInstance().getAnyTemplates();
+ assertEquals(2, templates.size());
+ }
+
+ public void testReload() {
+ VpeTemplateManager.getInstance().reload();
+ }
+
+ public void testGetDefTemplate() {
+ VpeTemplateManager.getInstance().setDefTemplate(null);
+ VpeTemplate template = VpeTemplateManager.getInstance().getDefTemplate();
+ assertNotNull("TemplateManager.getDefTemplate() cannot return null",template);
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-07-03 10:54:26 UTC (rev 9061)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-07-04 00:22:17 UTC (rev 9062)
@@ -10,6 +10,9 @@
******************************************************************************/
package org.jboss.tools.vpe.test;
+import org.jboss.tools.vpe.editor.preferences.VpeEditorPreferencesPageTest;
+import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
+
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
@@ -28,6 +31,8 @@
// $JUnit-BEGIN$
suite.addTestSuite(TemplateLoadingTest.class);
suite.addTestSuite(TemplatesExpressionParsingTest.class);
+ suite.addTestSuite(VpeEditorPreferencesPageTest.class);
+ suite.addTestSuite(VpeTemplateManagerTest.class);
// $JUnit-END$
return suite;
}
16 years, 5 months
JBoss Tools SVN: r9061 - in trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor: figures and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-07-03 06:54:26 -0400 (Thu, 03 Jul 2008)
New Revision: 9061
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesContextMenuProvider.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFeedbackFigure.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1189
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesContextMenuProvider.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesContextMenuProvider.java 2008-07-03 09:02:36 UTC (rev 9060)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesContextMenuProvider.java 2008-07-03 10:54:26 UTC (rev 9061)
@@ -29,6 +29,7 @@
import org.jboss.tools.seam.ui.pages.editor.edit.LinkEditPart;
import org.jboss.tools.seam.ui.pages.editor.edit.PagesDiagramEditPart;
import org.jboss.tools.seam.ui.pages.editor.edit.PagesEditPart;
+import org.jboss.tools.seam.ui.pages.editor.edit.ParamEditPart;
public class PagesContextMenuProvider extends org.eclipse.gef.ContextMenuProvider {
private ActionRegistry actionRegistry;
@@ -110,6 +111,13 @@
return (XModelObject)((Link)partModel).getData();
}
}
+ if(selected instanceof ParamEditPart) {
+ ParamEditPart part = (ParamEditPart)selected;
+ Object partModel = part.getExceptionModel().getPagesModel();
+ if(partModel instanceof PagesElement) {
+ return (XModelObject)((PagesElement)partModel).getData();
+ }
+ }
return null;
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java 2008-07-03 09:02:36 UTC (rev 9060)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java 2008-07-03 10:54:26 UTC (rev 9061)
@@ -121,6 +121,7 @@
import org.jboss.tools.seam.ui.pages.editor.edit.LinkEditPart;
import org.jboss.tools.seam.ui.pages.editor.edit.PagesDiagramEditPart;
import org.jboss.tools.seam.ui.pages.editor.edit.PagesEditPart;
+import org.jboss.tools.seam.ui.pages.editor.edit.ParamEditPart;
import org.jboss.tools.seam.ui.pages.editor.edit.xpl.PagesConnectionRouter;
import org.jboss.tools.seam.ui.pages.editor.figures.NodeFigure;
import org.jboss.tools.seam.ui.pages.editor.palette.PagesPaletteViewerPreferences;
@@ -656,7 +657,13 @@
return (XModelObject) ((Link)partModel).getData();
}
}
-
+ if(selected instanceof ParamEditPart) {
+ ParamEditPart part = (ParamEditPart)selected;
+ Object partModel = part.getExceptionModel().getPagesModel();
+ if(partModel instanceof PagesElement) {
+ return (XModelObject)((PagesElement)partModel).getData();
+ }
+ }
return null;
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFeedbackFigure.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFeedbackFigure.java 2008-07-03 09:02:36 UTC (rev 9060)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFeedbackFigure.java 2008-07-03 10:54:26 UTC (rev 9061)
@@ -29,11 +29,8 @@
Rectangle r = getBounds().getCopy();
g.translate(r.getLocation());
- int start=0;
- g.fillRectangle(start+1,1,22,19);
-
- //g.fillPolygon(fillPointlist);
+ g.fillRectangle(1,1,r.width-2,r.height-2);
}
}
16 years, 6 months
JBoss Tools SVN: r9060 - trunk/ws/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-07-03 05:02:36 -0400 (Thu, 03 Jul 2008)
New Revision: 9060
Removed:
trunk/ws/docs/reference/en/modules/bottomup.xml
Modified:
trunk/ws/docs/reference/en/modules/topdown.xml
Log:
JBIDE-2469: modify documents
Deleted: trunk/ws/docs/reference/en/modules/bottomup.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/bottomup.xml 2008-07-03 08:54:48 UTC (rev 9059)
+++ trunk/ws/docs/reference/en/modules/bottomup.xml 2008-07-03 09:02:36 UTC (rev 9060)
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<chapter id="bottomup" revisionflag="added">
- <title>Creating a Web service from a Java bean using JBoss WS</title>
- <para>The Web Service wizard assists you in creating a new Web service, configuring it for deployment, and deploying the Web service to a server.</para>
- <para>To create a Web service from a bean using JBoss WS:</para>
- <para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
- <para><link linkend="webproject">Creating a Dynamic Web project</link>.</para>
- <para><link linkend="facet">Add JBossWS Facet to Web project</link>.</para>
- <para>Create a Web Service from a java bean: </para>
- <itemizedlist>
- <listitem>
- <para>Switch to the Java EE perspective <emphasis><property>Window > Open Perspective > Java EE</property></emphasis>.</para>
- </listitem>
- <listitem>
- <para>In the Project Explorer view, select the bean that you created or imported into the source folder of your Web project.</para>
- <figure>
- <title>Create a new Bean Class</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Click <emphasis><property>File > New > Other</property></emphasis>.Select Web Services in order to display the various Web service wizards. Select the Web Service wizard. Click <property>Next</property> button.</para>
- <figure>
- <title>New Web Service</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>In the first Web Service wizard page: select <property>Bottom up Java bean Web service</property> as your Web service type, and select the Java bean from which the service will be created.</para>
- <figure>
- <title>Set Web Service Common values</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <itemizedlist>
- <listitem>
- <para>Select the stages of Web service development that you want to complete using the slider: </para>
- <itemizedlist>
- <listitem>
- <para>Develop: this will develop the WSDL definition and implementation of the Web service. This includes such tasks as creating the modules which will contain the generated code, WSDL files, deployment descriptors, and Java files when appropriate.</para>>
- </listitem>
- <listitem>
- <para>Assemble: this ensures the project that will host the Web service or client gets associated to an EAR when required by the target application server.</para>>
- </listitem>
- <listitem>
- <para>Deploy: this will create the deployment code for the service.</para>>
- </listitem>
- <listitem>
- <para>Install: this will install and configure the Web module and EARs on the target server.</para>>
- </listitem>
- <listitem>
- <para>Start: this will start the server once the service has been installed on it. The server-config.wsdd file will be generated.</para>>
- </listitem>
- <listitem>
- <para>Test: this will provide various options for testing the service, such as using the Web Service Explorer or sample JSPs</para>>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>Select your server: the default server is displayed. If you want to deploy your service to a different server click the link to specify a different server.</listitem>
- <listitem>Select your runtime: ensure the JBoss WS runtime is selected.</listitem>
- <listitem>Select the service project: the project selected in your workspace is displayed. To select a different project click on the project link. If you are deploying to JBoss Application Server you will also be asked to select the EAR associated with the project. Ensure that the project selected as the Client Web Project is different from the Service Web Project, or the service will be overwritten by the client's generated artifacts.</listitem>
- <listitem>If you want to create a client, select the type of proxy to be generated and repeat the above steps for the client. The better way is to create a web service client project seperately.</listitem>
- </itemizedlist>
- <para>Click <property>Next</property> button.</para>
- </listitem>
- <listitem>
- <para>In the JBoss Web Service Code Generation Configuration page, you set values:</para>
- <figure>
- <title>Set Web Service values about Code Generation</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <itemizedlist>
- <listitem>
- <para>Generate WSDL file: select it, you will get a generated WSDL file in your project. But this wsdl's services' address location values are not real address. </para>
- </listitem>
- <listitem>After the Web service has been created, the following may occur depending on the options you selected:
- <para>Update the default web.xml: select it, you may test the web service by Explorer.</para>
- </listitem>
- </itemizedlist>
- <para>Click <property>Next</property> button.</para>
- </listitem>
- <listitem>
- <para>In this page, the project is deployed to the server. you can start server and test the web service. If you want to publish the web service to a UDDI registry, you may click <property>Next</property> button to publish it. If not, you may click <property>Finish</property> button.</para>
- <figure>
- <title>Start a Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- <para>After the Web Service has been created, the following may occur depending on the options you selected:</para>
- <itemizedlist>
- <listitem>
- <para> the generated web services codes</para>
- </listitem>
- <listitem>
- <para>If have selected to generate WSDL file, you will get the file in your project's WebContent > wsdl folder.</para>
- <figure>
- <title>The generated WSDL file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>If have selected to update the default web.xml, you will test the web service in browser.Open the Explorer, input the url for the web service according to web.xml plus <property>?wsdl.</property>, you will get the WSDL file from Explorer. </para>
- <figure>
- <title>The Updated web.xml</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bottomup5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
-</chapter>
Modified: trunk/ws/docs/reference/en/modules/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 08:54:48 UTC (rev 9059)
+++ trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 09:02:36 UTC (rev 9060)
@@ -20,7 +20,7 @@
<title>Dynamic Web Project</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/webproject1.png"></imagedata>
+ <imagedata fileref="images/jbossws_webproject_1.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -37,7 +37,7 @@
<title>Dynamic Web Project Wizard</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/webproject2.png"></imagedata>
+ <imagedata fileref="images/jbossws_webproject_2.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -48,7 +48,7 @@
<title>Configures Web Module Settings</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/webproject3.png"></imagedata>
+ <imagedata fileref="images/jbossws_webproject_3.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -184,7 +184,7 @@
<title>Create a new Bean Class</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -195,7 +195,7 @@
<title>New Web Service</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup1.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_1.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -206,7 +206,7 @@
<title>Set Web Service Common values</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup2.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_2.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -247,7 +247,7 @@
<title>Set Web Service values about Code Generation</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup3.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_3.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -267,7 +267,7 @@
<title>Start a Server</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup4.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_4.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -284,7 +284,7 @@
<title>The generated WSDL file</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup6.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_6.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -295,7 +295,7 @@
<title>The Updated web.xml</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/bottomup5.png"></imagedata>
+ <imagedata fileref="images/jbossws_bottomup_5.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
16 years, 6 months
JBoss Tools SVN: r9059 - trunk/ws/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-07-03 04:54:48 -0400 (Thu, 03 Jul 2008)
New Revision: 9059
Modified:
trunk/ws/docs/reference/en/modules/client.xml
trunk/ws/docs/reference/en/modules/preference.xml
Log:
JBIDE-2469: modify documents
Modified: trunk/ws/docs/reference/en/modules/client.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/client.xml 2008-07-03 08:53:22 UTC (rev 9058)
+++ trunk/ws/docs/reference/en/modules/client.xml 2008-07-03 08:54:48 UTC (rev 9059)
@@ -3,8 +3,8 @@
<title>Creating a Web Service Client from a WSDL Document using JBoss WS</title>
<para>To create a Web Service Client from a WSDL Document using JBoss WS:</para>
<para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
- <para><link linkend="webproject">Creating a Dynamic Web project</link>.</para>
- <para><link linkend="facet">Add JBossWS Facet to Web project</link>.</para>
+ <para><link linkend="createproject">Creating a Dynamic Web project</link>.</para>
+ <para><link linkend="addfacet">Add JBossWS Facet to Web project</link>.</para>
<para>Create a Web Service Client from a WSDL document: </para>
<itemizedlist>
<listitem>
@@ -19,18 +19,18 @@
<title>New Web Service Client</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/client.png"></imagedata>
+ <imagedata fileref="images/jbossws_client.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
</listitem>
<listitem>
- <para>The first and second Web Service Client wizard page are same to <link linkend="topdown">Web Service from a WSDL document</link>.</para>
+ <para>The first and second Web Service Client wizard page are same to <link linkend="topdownwebservice">Web Service from a WSDL document</link>.</para>
<figure>
<title>Set Web Service Common values</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/client1.png"></imagedata>
+ <imagedata fileref="images/jbossws_client_1.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -38,7 +38,7 @@
<title>Set Web Service values about WSDL file</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/client2.png"></imagedata>
+ <imagedata fileref="images/jbossws_client_2.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
@@ -62,7 +62,7 @@
<title>Client Sample Class</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/client3.png"></imagedata>
+ <imagedata fileref="images/jbossws_client_3.png"></imagedata>
</imageobject>
</mediaobject>
</figure>
Modified: trunk/ws/docs/reference/en/modules/preference.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 08:53:22 UTC (rev 9058)
+++ trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 08:54:48 UTC (rev 9059)
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<chapter id="preference" revisionflag="added">
-
+<chapter id="preference" revisionflag="added">
+<title>JBoss WS and development environment</title>
+ <section id="jbosswspreference">
<title>JBossWS Preferences</title>
-<para>In this chapter you get to know how JBossWS preferences can be modified during the development process.</para>
+<para>In this section you get to know how JBossWS preferences can be modified during the development process.</para>
<para>JBossWS preferences can be set using the JBossWS preference page. Click on <emphasis><property>Window > Preferences > JBoss Tools > Web > JBossWS Preference</property>.</emphasis></para>
@@ -28,5 +29,21 @@
<imagedata fileref="images/Jbossws_preference_new.png"/>
</imageobject>
</mediaobject>
- </figure>
+ </figure>
+ </section>
+ <section id="serverruntime">
+ <title>Default Server and Runtime</title>
+ <para>Open
+ <emphasis><property>Window > Preferences > Web Services > Server and Runtime</property></emphasis>. In this page, you can set default server and runtime.</para>
+ <para>For ease of use, the better way is to set runtime = JBoss WS.</para>
+ <para>After set server and runtime, click <property>Aplly</property> button to save the value.</para>
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_server_runtime.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
</chapter>
16 years, 6 months
JBoss Tools SVN: r9058 - trunk/ws/docs/reference/en/images.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-07-03 04:53:22 -0400 (Thu, 03 Jul 2008)
New Revision: 9058
Added:
trunk/ws/docs/reference/en/images/jbossws_bottomup.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_1.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_2.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_3.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_4.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_5.png
trunk/ws/docs/reference/en/images/jbossws_bottomup_6.png
trunk/ws/docs/reference/en/images/jbossws_client.png
trunk/ws/docs/reference/en/images/jbossws_client_1.png
trunk/ws/docs/reference/en/images/jbossws_client_2.png
trunk/ws/docs/reference/en/images/jbossws_client_3.png
trunk/ws/docs/reference/en/images/jbossws_server_runtime.png
trunk/ws/docs/reference/en/images/jbossws_webproject_1.png
trunk/ws/docs/reference/en/images/jbossws_webproject_2.png
trunk/ws/docs/reference/en/images/jbossws_webproject_3.png
Removed:
trunk/ws/docs/reference/en/images/bottomup.png
trunk/ws/docs/reference/en/images/bottomup1.png
trunk/ws/docs/reference/en/images/bottomup2.png
trunk/ws/docs/reference/en/images/bottomup3.png
trunk/ws/docs/reference/en/images/bottomup4.png
trunk/ws/docs/reference/en/images/bottomup5.png
trunk/ws/docs/reference/en/images/bottomup6.png
trunk/ws/docs/reference/en/images/client.png
trunk/ws/docs/reference/en/images/client1.png
trunk/ws/docs/reference/en/images/client2.png
trunk/ws/docs/reference/en/images/client3.png
trunk/ws/docs/reference/en/images/serverandruntime.png
trunk/ws/docs/reference/en/images/webproject1.png
trunk/ws/docs/reference/en/images/webproject2.png
trunk/ws/docs/reference/en/images/webproject3.png
Log:
JBIDE-2469: modify documents
Deleted: trunk/ws/docs/reference/en/images/bottomup.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup1.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup2.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup3.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup4.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup5.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/bottomup6.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/client.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/client1.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/client2.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/client3.png
===================================================================
(Binary files differ)
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_bottomup_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_bottomup_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_client.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_client.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_client_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_client_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_client_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_client_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_client_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_client_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_server_runtime.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_server_runtime.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_webproject_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_webproject_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_webproject_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_webproject_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_webproject_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_webproject_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/ws/docs/reference/en/images/serverandruntime.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/webproject1.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/webproject2.png
===================================================================
(Binary files differ)
Deleted: trunk/ws/docs/reference/en/images/webproject3.png
===================================================================
(Binary files differ)
16 years, 6 months
JBoss Tools SVN: r9057 - in trunk/ws/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-07-03 04:06:12 -0400 (Thu, 03 Jul 2008)
New Revision: 9057
Added:
trunk/ws/docs/reference/en/images/jbossws_ws_Impl_code_view.png
trunk/ws/docs/reference/en/images/jbossws_ws_webxml.png
Removed:
trunk/ws/docs/reference/en/modules/facet.xml
Modified:
trunk/ws/docs/reference/en/modules/topdown.xml
Log:
modify documents
Added: trunk/ws/docs/reference/en/images/jbossws_ws_Impl_code_view.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_ws_Impl_code_view.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_ws_webxml.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_ws_webxml.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/ws/docs/reference/en/modules/facet.xml
===================================================================
Modified: trunk/ws/docs/reference/en/modules/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 07:37:12 UTC (rev 9056)
+++ trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 08:06:12 UTC (rev 9057)
@@ -145,7 +145,24 @@
If you want update the default Web.xml file with the Web Service servlets get configured, check <emphasis> <property>Update the default Web.xml</property> </emphasis>
check box. Click on <emphasis><property>Next</property> </emphasis> or <emphasis><property>Finish</property> </emphasis> button to generate code </para>
- <para>In previous step, the Web Service code is generated, then you can view the implementation class and add business logic to each method.</para>
+ <para>Once the Web Service code is generated, you can view the implementation class and add business logic to each method.</para>
+ <figure id="figure_impl_code">
+ <title>The generated implementation Java code</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_Impl_code_view.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>View Web.xml</para>
+ <figure id="figure_webxml">
+ <title>Web.xml</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_webxml.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
16 years, 6 months
JBoss Tools SVN: r9056 - in trunk/ws/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-07-03 03:37:12 -0400 (Thu, 03 Jul 2008)
New Revision: 9056
Added:
trunk/ws/docs/reference/en/modules/overview.xml
Modified:
trunk/ws/docs/reference/en/master.xml
trunk/ws/docs/reference/en/modules/topdown.xml
trunk/ws/docs/reference/en/modules/webproject.xml
Log:
modify documents
Modified: trunk/ws/docs/reference/en/master.xml
===================================================================
--- trunk/ws/docs/reference/en/master.xml 2008-07-03 07:03:03 UTC (rev 9055)
+++ trunk/ws/docs/reference/en/master.xml 2008-07-03 07:37:12 UTC (rev 9056)
@@ -2,12 +2,10 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
-[
+[<!ENTITY overview SYSTEM "modules/overview.xml">
<!ENTITY topdown SYSTEM "modules/topdown.xml">
<!ENTITY preference SYSTEM "modules/preference.xml">
-<!--ENTITY facet SYSTEM "modules/facet.xml"-->
-<!--ENTITY webproject SYSTEM "modules/webproject.xml"-->
-<!ENTITY bottomup SYSTEM "modules/bottomup.xml">
+<!ENTITY webproject SYSTEM "modules/webproject.xml">
<!ENTITY client SYSTEM "modules/client.xml">
]>
@@ -29,10 +27,8 @@
<toc/>
- &preference;
- &facet;
- &webproject;
- &bottomup;
+ &overview;
&topdown;
&client;
+ &preference;
</book>
Added: trunk/ws/docs/reference/en/modules/overview.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/overview.xml (rev 0)
+++ trunk/ws/docs/reference/en/modules/overview.xml 2008-07-03 07:37:12 UTC (rev 9056)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="overview" revisionflag="overview">
+ <title>JBossWS Runtime Overview</title>
+
+ <para>JBossWS is a web service framework developed as part of the JBoss Application Server. It implements the JAX-WS specification that defines a programming model and run-time architecture for implementing web services in Java, targeted at the Java Platform, Enterprise Edition 5 (Java EE 5)</para>
+
+</chapter>S
\ No newline at end of file
Modified: trunk/ws/docs/reference/en/modules/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 07:03:03 UTC (rev 9055)
+++ trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 07:37:12 UTC (rev 9056)
@@ -8,19 +8,22 @@
<keyword>JBossWS Web Service runtime</keyword>
</keywordset>
</chapterinfo>
- <section id="overview">
- <title>JBoss WS Overview</title>
-
- <para>JBossWS is a web service framework developed as part of the JBoss Application Server. It implements the JAX-WS specification that defines a programming model and run-time architecture for implementing web services in Java, targeted at the Java Platform, Enterprise Edition 5 (Java EE 5)</para>
-
- </section>
<title>Creating a Web Service using JBossWS runtime</title>
<para>In this chapter we provide you with the necessary steps to create a Web Service using JBossWS runtime.</para>
<section id="createproject">
- <title>Creating a Dynamic Web project</title>
- <para>Before create a web service, you must have a Dynamic Web Project</para>
+ <title>Creating a Dynamic Web project</title>
+
+ <para>Before create a web service, you must have a Dynamic Web Project</para>
+ <figure>
+ <title>Dynamic Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>Create the service Web project by selecting
<emphasis><property>New > Project... > Dynamic Web project</property></emphasis>. Enter the following information: </para>
<itemizedlist>
@@ -29,8 +32,27 @@
</listitem>
<listitem>
<para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may set <emphasis><property>Target Runtime</property></emphasis> to <emphasis><property>None</property></emphasis>,
- in this case, you must <link linkend="addfacet">add JBoss Web Service facet to the project</link> </para>
+ in this case, you must <link linkend="addfacet">add JBoss Web Service facet to the project</link> .</para>
+ <figure>
+ <title>Dynamic Web Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
+ <listitem>
+ <para>Set Web Module values</para>
+ <figure>
+ <title>Configures Web Module Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
</itemizedlist>
<para>Click <property>Finish</property> button.</para>
</section>
@@ -128,7 +150,140 @@
</section>
<section id="bottomupws">
- <title>Creating a Web service from a Java bean using JBossWS runtime </title>
+ <title>Creating a Web service from a Java bean using JBossWS runtime</title>
+ <para>The Web Service wizard assists you in creating a new Web service, configuring it for deployment, and deploying the Web service to a server.</para>
+ <para>To create a Web service from a bean using JBoss WS:</para>
+ <para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
+ <para><link linkend="webproject">Creating a Dynamic Web project</link>.</para>
+ <para><link linkend="facet">Add JBossWS Facet to Web project</link>.</para>
+ <para>Create a Web Service from a java bean: </para>
+ <itemizedlist>
+ <listitem>
+ <para>Switch to the Java EE perspective <emphasis><property>Window > Open Perspective > Java EE</property></emphasis>.</para>
+ </listitem>
+ <listitem>
+ <para>In the Project Explorer view, select the bean that you created or imported into the source folder of your Web project.</para>
+ <figure>
+ <title>Create a new Bean Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis><property>File > New > Other</property></emphasis>.Select Web Services in order to display the various Web service wizards. Select the Web Service wizard. Click <property>Next</property> button.</para>
+ <figure>
+ <title>New Web Service</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>In the first Web Service wizard page: select <property>Bottom up Java bean Web service</property> as your Web service type, and select the Java bean from which the service will be created.</para>
+ <figure>
+ <title>Set Web Service Common values</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>Select the stages of Web service development that you want to complete using the slider: </para>
+ <itemizedlist>
+ <listitem>
+ <para>Develop: this will develop the WSDL definition and implementation of the Web service. This includes such tasks as creating the modules which will contain the generated code, WSDL files, deployment descriptors, and Java files when appropriate.</para>>
+ </listitem>
+ <listitem>
+ <para>Assemble: this ensures the project that will host the Web service or client gets associated to an EAR when required by the target application server.</para>>
+ </listitem>
+ <listitem>
+ <para>Deploy: this will create the deployment code for the service.</para>>
+ </listitem>
+ <listitem>
+ <para>Install: this will install and configure the Web module and EARs on the target server.</para>>
+ </listitem>
+ <listitem>
+ <para>Start: this will start the server once the service has been installed on it. The server-config.wsdd file will be generated.</para>>
+ </listitem>
+ <listitem>
+ <para>Test: this will provide various options for testing the service, such as using the Web Service Explorer or sample JSPs</para>>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>Select your server: the default server is displayed. If you want to deploy your service to a different server click the link to specify a different server.</listitem>
+ <listitem>Select your runtime: ensure the JBoss WS runtime is selected.</listitem>
+ <listitem>Select the service project: the project selected in your workspace is displayed. To select a different project click on the project link. If you are deploying to JBoss Application Server you will also be asked to select the EAR associated with the project. Ensure that the project selected as the Client Web Project is different from the Service Web Project, or the service will be overwritten by the client's generated artifacts.</listitem>
+ <listitem>If you want to create a client, select the type of proxy to be generated and repeat the above steps for the client. The better way is to create a web service client project seperately.</listitem>
+ </itemizedlist>
+ <para>Click <property>Next</property> button.</para>
+ </listitem>
+ <listitem>
+ <para>In the JBoss Web Service Code Generation Configuration page, you set values:</para>
+ <figure>
+ <title>Set Web Service values about Code Generation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>Generate WSDL file: select it, you will get a generated WSDL file in your project. But this wsdl's services' address location values are not real address. </para>
+ </listitem>
+ <listitem>After the Web service has been created, the following may occur depending on the options you selected:
+ <para>Update the default web.xml: select it, you may test the web service by Explorer.</para>
+ </listitem>
+ </itemizedlist>
+ <para>Click <property>Next</property> button.</para>
+ </listitem>
+ <listitem>
+ <para>In this page, the project is deployed to the server. you can start server and test the web service. If you want to publish the web service to a UDDI registry, you may click <property>Next</property> button to publish it. If not, you may click <property>Finish</property> button.</para>
+ <figure>
+ <title>Start a Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ <para>After the Web Service has been created, the following may occur depending on the options you selected:</para>
+ <itemizedlist>
+ <listitem>
+ <para> the generated web services codes</para>
+ </listitem>
+ <listitem>
+ <para>If have selected to generate WSDL file, you will get the file in your project's WebContent > wsdl folder.</para>
+ <figure>
+ <title>The generated WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>If have selected to update the default web.xml, you will test the web service in browser.Open the Explorer, input the url for the web service according to web.xml plus <property>?wsdl.</property>, you will get the WSDL file from Explorer. </para>
+ <figure>
+ <title>The Updated web.xml</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
</section>
</chapter>
Modified: trunk/ws/docs/reference/en/modules/webproject.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/webproject.xml 2008-07-03 07:03:03 UTC (rev 9055)
+++ trunk/ws/docs/reference/en/modules/webproject.xml 2008-07-03 07:37:12 UTC (rev 9056)
@@ -18,7 +18,8 @@
<para>Project Name: enter a project name</para>
</listitem>
<listitem>
- <para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may choose none of server.In this case, you must choose a JBoss WS runtime when you add a JBoss WS facet to this project.</para>
+ <para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may set <emphasis><property>Target Runtime</property></emphasis> to <emphasis><property>None</property></emphasis>,
+ in this case, you must <link linkend="addfacet">add JBoss Web Service facet to the project</link> .</para>
<figure>
<title>Dynamic Web Project Wizard</title>
<mediaobject>
16 years, 6 months