* it under the terms of the GNU General Public License as published by * 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:8080/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] != '') { if (!file_exists($argv[1])) { print "You need to specify a payload file that exists.\n"; die; } } else { print "You need to specify a payload file!\n"; die; } print "insertPayload(): \n"; $a = array("inputPayload" => file_get_contents($argv[1]), "renderPlugin" => "org.remitt.plugin.render.XsltPlugin", "renderOption" => "837p", "transportPlugin" => "org.remitt.plugin.transport.StoreFile", "transportOption" => ""); print_r($sc->insertPayload((object) $a)); print "\n";