SimpleClient.java

Date HTML Created

21 Dec 2007

// import java.io.File; // import java.io.IOException; // import java.io.InputStream; // import java.io.FileInputStream; // import java.io.FileOutputStream; // import java.io.OutputStream; // import java.io.ByteArrayInputStream; // import java.io.ByteArrayOutputStream; // import java.net.MalformedURLException; // import java.rmi.RemoteException; // import java.util.StringTokenizer; // import java.util.HashMap; // import javax.xml.rpc.ServiceException; // import javax.xml.parsers.DocumentBuilder; // import javax.xml.parsers.DocumentBuilderFactory; // import org.w3c.dom.Document; // import org.apache.xml.serialize.OutputFormat; // import org.apache.xml.serialize.XMLSerializer; // import fedora.client.FedoraClient; // import fedora.server.management.FedoraAPIM; // import fedora.server.access.FedoraAPIA; // import fedora.server.types.gen.DatastreamDef; // import fedora.server.types.gen.MethodParmDef; // import fedora.server.types.gen.MIMETypedStream; // import fedora.server.types.gen.ObjectMethodsDef; // import fedora.server.types.gen.ObjectProfile; import fedora.server.types.gen.RepositoryInfo; // import fedora.server.types.gen.Property; public class SimpleClient { public static void main(String[] args) throws Exception { // Instantiate the demo client. // This will set up connection stubs for making SOAP requests // on API-A and API-M FedoraSOAPClient caller = new FedoraSOAPClient ("http", "128.101.29.85", 8080, "fedoraAdmin", "passwordFor_fedoraAdmin"); System.out.println("\nTest describeRepository....................."); RepositoryInfo repoinfo = caller.describeRepository(); } }