RESULT, RESULTS, TYPE_PREFIX| Constructor and Description |
|---|
WSMethodImpl(Method method,
WSEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
WSEndpoint |
getEndpoint() |
Method |
getMethod() |
Map<String,WebParameterImpl> |
getWebParams()
Gets the map of WebParameters for a selected method
|
InvocationResult |
invoke(Object args)
Invokes this method with the provided arguments
|
InvocationResultImpl |
invoke(Object args,
WiseMapper mapper)
Invokes this method with the provided arguments applying provided mapper
|
boolean |
isOneWay() |
void |
writeRequestPreview(Map<String,Object> args,
OutputStream os)
Generates and writes a preview of the request message for invoking this
method with the provided arguments.
|
public WSMethodImpl(Method method, WSEndpoint endpoint) throws IllegalArgumentException
IllegalArgumentExceptionpublic void writeRequestPreview(Map<String,Object> args, OutputStream os) throws InvocationException
WSMethodwriteRequestPreview in interface WSMethodargs - Mapos - OutputStreamInvocationException - Exceptionpublic InvocationResultImpl invoke(Object args, WiseMapper mapper) throws InvocationException, IllegalArgumentException, MappingException
invoke in interface WSMethodargs - Objectmapper - if null no mappings are applied method will be invoked using
args directly. in this case the keys of the map gotta be the
parameters names as defined in wsdl/wsconsume generated
classesInvocationResultImplInvocationException - ExceptionIllegalArgumentException - ExceptionMappingException - Exceptionpublic InvocationResult invoke(Object args) throws InvocationException, IllegalArgumentException, MappingException
invoke in interface WSMethodargs - the arguments to call operation. args must be a Map.
This Map have to contain entries for all needed
parameters, keys have to reflect operation parameter name as
defined in wsdl. Keys which names are not defined in wsdls
will be simply ignored. Implementation will take care values
nullability will reflect "nillable" properties defined in
wsdl. order isn't important since WSMethod implementation will
take care of reorder parameters in right position to make
operation call. If it isn't a Map or keys
don't contain all parameters name an
IllegalArgumentException is thrown.InvocationResult object populated with returned
values (implementation will process both directed returned values
and OUT parameters as defined in wsdl)InvocationException - ExceptionIllegalArgumentException - ExceptionMappingException - ExceptionWSMethod.invoke(java.lang.Object)public Map<String,WebParameterImpl> getWebParams()
getWebParams in interface WSMethodpublic boolean isOneWay()
public Method getMethod()
public WSEndpoint getEndpoint()
getEndpoint in interface WSMethodCopyright © 2008–2016 JBoss.org. All rights reserved.