Example #1
0
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
$username = '******';
$password = '******';
$url = "http://localhost:8180/remitt/services/interface";
$wsdl = $url . "?wsdl";
$sc = new SoapClient($wsdl, array('login' => $username, 'password' => $password, 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP, 'location' => $url));
if ($argv[1] != '') {
    $criteria = $argv[1];
} else {
    $criteria = 'year';
}
if ($argv[2] != '') {
    $value = $argv[2];
} else {
    $value = '2010';
}
print "getFileList('output', {$criteria}, {$value}): \n";
$a = array("category" => 'output', "criteria" => $criteria, "value" => $value);
print_r($sc->getFileList((object) $a));
print "\n";