public class JavaServiceDesc implements ServiceDesc(Code)
A ServiceDesc is an abstract description of a service.
ServiceDescs contain OperationDescs, which are descriptions of operations.
The information about a service's operations comes from one of two places:
1) deployment, or 2) introspection.
author: Glen Daniels (gdaniels@apache.org)
getOperations() get all the operations as a list of OperationDescs.
this method triggers an evaluation of the valid operations by
introspection, so use sparingly
reference to the operations array.
setWSDLFile(String wsdlFileName) set the wsdl file of the service; this causes the named
file to be returned on a ?wsdl, probe, not introspection
generated wsdl.
public OperationDesc getOperationByElementQName(QName qname)(Code)
Map an XML QName to an operation. Returns the first one it finds
in the case of mulitple matches.
null for no match
getOperationByName
public OperationDesc getOperationByName(String methodName)(Code)
Return an operation matching the given method name. Note that if we
have multiple overloads for this method, we will return the first one.
null for no match
get all the operations as a list of OperationDescs.
this method triggers an evaluation of the valid operations by
introspection, so use sparingly
reference to the operations array. This is not a copy
getOperationsByName
public OperationDesc[] getOperationsByName(String methodName)(Code)
get all overloaded operations by name
Parameters: methodName - null for no match, or an array of OperationDesc objects
getOperationsByQName
public OperationDesc[] getOperationsByQName(QName qname)(Code)
Return all operations which match this QName (i.e. get all the
overloads)
null for no match
Determine whether or not this is a "wrapped" invocation, i.e. whether
the outermost XML element of the "main" body element represents a
method call, with the immediate children of that element representing
arguments to the method.
true if this is wrapped (i.e. RPC or WRAPPED style),false otherwise
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection()(Code)
Fill in a service description by introspecting the implementation
class.
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection(Class implClass)(Code)
Fill in a service description by introspecting the implementation
class.
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection(Class cls, TypeMapping tm)(Code)
Fill in a service description by introspecting the implementation
class. This version takes the implementation class and the in-scope
TypeMapping.
removeOperationDesc
public void removeOperationDesc(OperationDesc operation)(Code)
setAllowedMethods
public void setAllowedMethods(List allowedMethods)(Code)
setDefaultNamespace
public void setDefaultNamespace(String namespace)(Code)
setDisallowedMethods
public void setDisallowedMethods(List disallowedMethods)(Code)
setDocumentation
public void setDocumentation(String documentation)(Code)
set the documentation for the service
setEndpointURL
public void setEndpointURL(String endpointURL)(Code)
Warning: You cannot call getInitializedServiceDesc() after setting this
as it uses this to indicate its work has already been done.
Parameters: implClass - throws: IllegalArgumentException - if the implementation class is alreadyset
public void setWSDLFile(String wsdlFileName)(Code)
set the wsdl file of the service; this causes the named
file to be returned on a ?wsdl, probe, not introspection
generated wsdl.
Parameters: wsdlFileName - filename or null to re-enable introspection