-
Jérôme Euzenat authoredJérôme Euzenat authored
AlignmentClient.java 14.27 KiB
/*
* $Id: AlignmentClient.java 522 2007-07-18 09:08:08Z euzenat $
*
* Copyright (C) INRIA Rhne-Alpes, 2007.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
* Example of connection to the Alignment Server through HTTP/SOAP
* Inspired from SOAPClient4XG by Bob DuCharme
* $Id: Client.java 521 2007-07-18 09:02:04Z euzenat $
*
*/
import fr.inrialpes.exmo.align.impl.BasicParameters;
import fr.inrialpes.exmo.align.util.NullStream;
import org.semanticweb.owl.align.Parameters;
import java.util.Hashtable;
import java.util.Enumeration;
import java.io.PrintStream;
import java.io.File;
import java.io.*;
import java.net.*;
import gnu.getopt.LongOpt;
import gnu.getopt.Getopt;
public class AlignmentClient {
public static final String //Port Strings
HTML = "8089",
WSDL = "7777";
public static final String //IP Strings
// HOST = "localhost";
HOST = "aserv.inrialpes.fr";
private int debug = 0;
private String filename = null;
private String outfile = null;
private String paramfile = null;
private Hashtable services = null;
private URL SOAPUrl = null;
private String SOAPAction = null;
public static void main(String[] args) {
try { new AlignmentClient().run( args ); }
catch ( Exception ex ) { ex.printStackTrace(); };
}
public void run(String[] args) throws Exception {