[Ws Wiki] Update of "XmlRpcExampleStringArray" by KenTanaka
Apache Wiki <[email protected]>
| Newsgroups | gmane.comp.apache.webservices.general |
|---|---|
| Message-ID | <[email protected]> |
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 web.xml listing
------------------------------------------------------------------------------
DirList=gov.noaa.eds.myXmlRpc.DirList
}}}
+ == web.xml Listing ==
+ Contents of '''{{{src/main/webapp/WEB-INF/web.xml}}}'''.
+ {{{
+ <!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+ <web-app>
+ <display-name>Archetype Created Web Application</display-name>
+ <servlet>
+ <servlet-name>myXmlRpcServer</servlet-name>
+ <servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
+ <init-param>
+ <param-name>enabledForExtensions</param-name>
+ <param-value>true</param-value>
+ <description>
+ Sets, whether the servlet supports vendor extensions for XML-RPC.
+ </description>
+ </init-param>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>myXmlRpcServer</servlet-name>
+ <url-pattern>/xmlrpc</url-pattern>
+ </servlet-mapping>
+ </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).
+
----
= myXmlRpcClient Code =