Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by KenTanaka:
http://wiki.apache.org/ws/XmlRpcExampleStringArray

The comment on the change is:
Added a directory layout and minor files content.xml, index.jsp

------------------------------------------------------------------------------
  ----
  = myXmlRpcServer Code =
  The code provided below is for a Maven 2 project.
+ 
+ == Directory Structure ==
+ This is the standard maven project directory layout, it's listed here in case 
you aren't familiar with it.
+ {{{
+ myXmlRpcServer
+  +- pom.xml
+  `- src
+      +- main
+      |   +- java
+      |   |   +- gov
+      |   |   |   `- noaa
+      |   |   |       `- eds
+      |   |   |           `- myXmlRpc
+      |   |   |               `- DirList.java
+      |   |   `- org
+      |   |       `- apache
+      |   |           `- xmlrpc
+      |   |               `- webserver
+      |   |                   `- XmlRpcServlet.properties
+      |   `- webapp
+      |       +- META-INF
+      |       |   `- content.xml
+      |       +- WEB-INF
+      |       |   `- web.xml
+      |       `- index.jsp
+      `- test                                      \
+          `- java                                   |
+            `- gov                                |
+                `- noaa                           > Optional
+                    `- eds                        |
+                        `- myXmlRpc               |
+                            `- DirListTest.java  /
+ }}}
  
  == pom.xml Project File (myXmlRpcServer) ==
  The '''{{{myXmlRpcServer/pom.xml}}}''' file defines how the project is built 
for maven 2:
@@ -166, +199 @@

  </web-app>
  }}}
  You can choose a `<servlet-name>` that you like, using the same value in the 
`<servlet>` and `<servlet-mapping>` sections. Leave the `<servlet-class>` 
element as-is though. The `<servlet-name>` and `<url-pattern>` will affect the 
URL you put into the client application (App.java below) so choose URL friendly 
names, with no spaces or unusual punctuation.
+ 
+ == index.jsp Listing ==
+ Contents of '''{{{src/main/webapp/index.jsp}}}'''. This is a minor part of 
the example.
+ {{{
+ <html>
+ <body>
+ <h2>XML-RPC Server is running</h2>
+ </body>
+ </html>
+ }}}
+ 
+ == content.xml Listing ==
+ Contents of '''{{{src/main/webapp/META-INF/content.xml}}}'''. This is a minor 
part of the example.
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <Context antiJARLocking="true" path="/myXmlRpcServer"/>
+ }}}
  
  == DirListTest.java Listing ==
  Contents of 
'''{{{src/test/java/gov/noaa/eds/myXmlRpcServer/DirListTest.java}}}'''. This is 
an __optional__ JUnit test file.

Reply via email to