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:38:09 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:
Added XmlRpcServlet.properties listing

------------------------------------------------------------------------------
  }
  
  }}}
- Rather than get a real directory listing and have to deal with filesystem specifics, this
example creates a list of randomly generated file names, all starting out with "sample_".
The list is only created once, so the same list will be returned until the web service is
restarted. The second time the client retrieves the list will be without the time needed to
generate the random file names, allowing you to judge the performance of just the data transfer
over XML-RPC.
+ Rather than get a real directory listing and have to deal with filesystem specifics, this
example creates a list of randomly generated file names, all starting out with "sample_".
The list is only created once, so the same list will be returned until the web service is
restarted. The second time the client retrieves the list will be without the time needed to
generate the random file names, allowing you to judge the performance of just the data transfer
over XML-RPC. The `listLength` variable controls how many file names to generate.
+ 
+ == XmlRpcServlet.properties Listing ==
+ Contents of '''{{{src/main/java/org/apache/xmlrpc/webserver/XmlRpcServlet.properties}}}'''.
A resources entry in the pom.xml file (above) includes this into the warfile.
+ {{{
+ ## As derived from the example on http://ws.apache.org/xmlrpc/server.html
+ #Calculator=org.apache.xmlrpc.demo.Calculator
+ 
+ ## This connects my class to the "DirList" name used by the client.execute method
+ DirList=gov.noaa.eds.myXmlRpc.DirList
+ }}}
  
  ----
  

Mime
View raw message