From MeLibraries Wiki
Jump to: navigation, search

Whose contents should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "">
  <entry key="return-code">0</entry>
  <entry key="stdout">User created successfully.</entry>
  <entry key="stderr">report completed in 0.12ms.</entry>
  <entry key="message-format">symphony-api</entry>

As you can see above you can create your own response messages as if a real ILS was responding to requests. The DummyRequestBuilder will also provide a customer formatter of the correct type if it can. The down side is that you need to restart the Metro server when ever you change any property file. The return code is the integer that a Unix or Windows command would return on exit. The stdout is what you would like to return from the requested command if it had run on the ILS. The stderr is any error messages you would like to pass. If you do a exception is thrown that will display that is returned along with the result. The message-format tells the DummyRequestBuilder what type of results these are for interpretation and for potentially creating a customer formatter.