org.fcrepo.soapclient
Class FedoraAccessSoapServlet

java.lang.Object
  extended by org.fcrepo.soapclient.FedoraAccessSoapServlet

public class FedoraAccessSoapServlet
extends Object

An example of a web-based client that provides a front end to the Fedora Access SOAP service. This servlet is designed to provide a "browser centric" view of the Fedora Access interface. Return types from the Fedora Access SOAP service are translated into a form suitable for viewing with a web browser; in other words MIME-typed streams. Applications that can readily handle SOAP requests and responses would most likely communicate directly with the Fedora Access SOAP service rather than use a java servlet as an intermediary. This servlet serves as an example of how to construct a client that uses the Fedora Access API via SOAP.

Input parameters for the servlet include:

Note that all servlet parameter names that are implementation specific end with the underscore character ("_"). This is done to avoid possible name clashes with user-supplied method parameter names. As a general rule, user-supplied parameters should never contain names that end with the underscore character to prevent possible name conflicts.

Example URLs

  1. GetDissemination URL syntax:

    protocol://hostname:port/soapclient/apia?action_=GetDissemination&PID_=pid& sDefPID_=sdefpid&methodName_=methodname[&asOfDateTime_=dateTime][?parmArray]

    This syntax requests a dissemination of the specified object using the specified method of the associated service definition object. The result is returned as a MIME-typed stream.

  2. GetDatastreamDissemination URL syntax:

    protocol://hostname:port/soapclient/apia?action=GetDatastreamDissemination& PID_=pid&dsID_=dsid[&asOfDateTime_=dateTime]

    This syntax requests a datastream dissemination for the specified digital object. It is used to return the contents of a datastream.

  3. GetObjectProfile URL syntax:

    protocol://hostname:port/soapclient/apia?action_=GetObjectProfile&PID_=pid[& asOfDateTime_=dateTime][&xml=boolean]

    This syntax requests an object profile for the specified digital object.

  4. GetObjectHistory URL syntax:

    protocol://hostname:port/soapclient/apia?action_=GetObjectHistory&PID_=pid[& xml_=boolean]

    This syntax requests an object history for the specified digital object.

  5. DescribeRepository URL syntax:

    protocol://hostname:port/soapclient/apia?action_=DescribeRepository[&xml_= boolean]

    This syntax requests an object profile for the specified digital object.

  6. ListDatastreams URL syntax:

    protocol://hostname:port/soapclient/apia?action_=ListDatastreams&PID_=pid[& asOfDateTime_=dateTime][&xml_=boolean]

    This syntax requests a list of datastreams for the specified digital object.

  7. ListMethods URL syntax:

    protocol://hostname:port/soapclient/apia?action_=ListMethods&PID_=pid[& asOfDateTime_=ateTime][xml_=boolean]

    This syntax requests a list of methods for the specified digital object.

Author:
Ross Wayland

Constructor Summary
FedoraAccessSoapServlet()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FedoraAccessSoapServlet

public FedoraAccessSoapServlet()


Copyright © 2012 DuraSpace. All Rights Reserved.