ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "XmlRpcExampleStringArray" by KenTanaka
Date Thu, 09 Jul 2009 22:09:57 GMT
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:
+ Server pom.xml

------------------------------------------------------------------------------
  
  If you have the Net''''''Beans IDE with web development plugins installed, then you can
run with the client with the integrated Tomcat server. Otherwise, you can start up the tomcat
servlet container and then deploy the server program (myXmlRpcServer.war) to the `webapps`
directory.
   
+ ----
+ = myXmlRpcServer Code =
+ The code provided below is for a Maven 2 project.
  
+ == pom.xml Project File ==
+ The '''{{{pom.xml}}}''' file defines how the project is built for maven 2:
+ 
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+     <modelVersion>4.0.0</modelVersion>
+     <groupId>gov.noaa.eds</groupId>
+     <artifactId>myXmlRpcServer</artifactId>
+     <packaging>war</packaging>
+     <version>1.0-SNAPSHOT</version>
+     <name>myXmlRpcServer Maven Webapp</name>
+     <url>http://maven.apache.org</url>
+     <dependencies>
+         <dependency>
+             <groupId>junit</groupId>
+             <artifactId>junit</artifactId>
+             <version>3.8.1</version>
+             <scope>test</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.xmlrpc</groupId>
+             <artifactId>xmlrpc-server</artifactId>
+             <version>3.1.2</version>
+         </dependency>
+     </dependencies>
+     <build>
+         <finalName>myXmlRpcServer</finalName>
+         <plugins>
+             <plugin>
+                 <artifactId>maven-compiler-plugin</artifactId>
+                 <version>2.0.2</version>
+                 <configuration>
+                     <source>1.5</source>
+                     <target>1.5</target>
+                 </configuration>
+             </plugin>
+         </plugins>
+         <resources>
+             <resource>
+                 <directory>src/main/java</directory>
+                 <includes>
+                     <include>org/apache/xmlrpc/webserver/*.properties</include>
+                 </includes>
+             </resource>
+         </resources>
+     </build>
+     <properties>
+         <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
+     </properties>
+ </project>
+ }}}
+ The line with `<include>org/apache/xmlrpc/webserver/*.properties</include>`
in the resources section tells maven to include the XmlRpcServlet.properties file into the
warfile WEB-INF/classes directory with the directory hierarchy that the xmlrpc library is
expecting.
+ ----
+ = myXmlRpcClient Code =
+ The code provided below is for a Maven 2 project.
+ 
+ == pom.xml Project File ==
+ The '''{{{pom.xml}}}''' file defines how the project is built for maven 2:
+ 
+ {{{
+ }}}
+ 

Mime
View raw message