icon.png

Welcome


Overview of XML-Mimic

XML Mimic is a simulator software that can simulate web XML responses and runs as independent HTTP server stub.  
Client apps that require real server for fetching xml/html responses can use this software during development and testing. Suitble for testing client application that requires any REST based web service, AJAX etc as replacement for web service server.
Can also be used for any client that require HTTP based application response.

Use cases

Example1:  For AJAX development

Let say UI developer wants to develop rich UI using AJAX, this might require backend server to cater various XML responses for differnt api calls.  
It will be difficult to develop UI without have the backend ready, but using xml mimic simulator, the backend server can be mimiced and UI can be developled without having the backend ready in advance.

Example2: For REST Webservice integration

During development or testing, if the software requires interaction with external REST based Webservice, real server can be replaced with simulated  xml-mimic server, without having to depend on actual server.
 

Example3: For HTML Server stub.

Any software component that requies interaction with HTTP server whose response happens to be HTML can also be simulated.
 
URL: http://sourceforge.net/xml-mimic

Take a look at rules_sample.xml for examples.

Features

  1. Runs as independ HTTP stub server.
     
  2. IP and port configurable.
     
  3. Static XML Response based on rules such as url pattern, request parameters and headers.
     
  4. Supports Basic authentication.
     
  5. Rule selection criteria include wild chars.

 

Installation


Pre-requisite

It requires latest JRE or JDK of version 1.6 or above.
JRE can be downloadble at http://java.com

Installing and starting (Linux or Windows)

  1. Download xml-mimic  from http://sourceforge.net/xml-mimic
     
  2. Extract to any folder.
     
  3. Make sure java path is set to environment variable JAVA_HOME in case of Linux.
     
  4. Start the server by calling start.sh or start.exe dependng on the OS.
     
  5. To stop, press CTR + C
     

Configuration

  1. When server is started, it loads rules from conf/rule.xml
     
  2. A sample file rules_sample.xml is provided with all possible examples for reference.
     
  3. Static response files are by default present at webroot folder.
     

Support and Contact

In case of any queries on usage, support, technical, etc please contact me at nanda.kumar.blr@gmail.com or post your questions at https://sourceforge.net/xmlmimic
 
If you liked the software, vote your thanks and rate at http://sourceforge.net/xmlmimic that will encourage me to add more features.

Developer

Nandakumar
Email: nanda.kumar.blr@gmail.com

Disclaimer and license

  xml-mimic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

xml-mimic software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License version 3 for more details.
 
You should have received a copy of the GNU General Public License
along with xml-mimic.  If not, see <http://www.gnu.org/licenses/>.

Third party libraries used

  1. log4j-1.2.17.jar           (http://www.apache.org/licenses/)
     
  2. commons-digester3-3.2.jar  (http://www.apache.org/licenses/)
     
  3. commons-logging-1.1.1.jar  (http://www.apache.org/licenses/)