Version: 1.1.1

org.biomoby.client
Class ExtendedProtocolClient

java.lang.Object
  extended by org.biomoby.client.BaseClient
      extended by org.biomoby.client.ExtendedProtocolClient

public abstract class ExtendedProtocolClient
extends BaseClient

A client that can (additionally to the normal features) communicate with an implementation of a Biomoby service using a non-biomoby protocol. It loads an implementation class (taken from a ExtendedServiceLocator) into the same JVM. It is useful for testing a service implemenation even before it is deployed as a web service.

Version:
$Id: ExtendedProtocolClient.java,v 1.3 2006/02/20 05:51:09 senger Exp $
Author:
Martin Senger

Constructor Summary
ExtendedProtocolClient()
           
 
Method Summary
 String callRemoteService(String xmlInput)
          Call either a local class implementing a service, or pass it to the superclass that does a real (usual) SOAP call to a service (or first to a registry and then to a service).
 
Methods inherited from class org.biomoby.client.BaseClient
errorsInResponse, fillRequest, fillRequest, fillRequest, getServiceLocator, interceptRequest, process, process, useResponse, useResponse, useResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedProtocolClient

public ExtendedProtocolClient()
Method Detail

callRemoteService

public String callRemoteService(String xmlInput)
                         throws MobyException
Call either a local class implementing a service, or pass it to the superclass that does a real (usual) SOAP call to a service (or first to a registry and then to a service).

The local class is used if its name was given on the command-line. This is meant to be used to test services before they are deployed in a servlet environment (such as Apache/Axis).

Overrides:
callRemoteService in class BaseClient
Parameters:
xmlInput - data will be sent to the called Biomoby service
Returns:
service response (still in XML)
Throws:
MobyException - if (a) a local class cannot be instantiated, or if (b) a local class returned an unexpected result type (should return only String or array of bytes), or if a (c) super-class call to remote service failed
See Also:
BaseClient.callRemoteService(java.lang.String)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010