@ThreadSafe
public interface WSMethod
Modifier and Type | Field and Description |
---|---|
static String |
RESULT |
static String |
RESULTS |
static String |
TYPE_PREFIX |
Modifier and Type | Method and Description |
---|---|
WSEndpoint |
getEndpoint() |
Map<String,? extends WebParameter> |
getWebParams()
Gets the map of
WebParameter for the webserice method represented
by instance of this type |
InvocationResult |
invoke(Object args)
Invokes this method with the provided arguments
|
InvocationResult |
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.
|
static final String RESULT
static final String RESULTS
static final String TYPE_PREFIX
InvocationResult invoke(Object args, WiseMapper mapper) throws InvocationException, IllegalArgumentException, MappingException
args
- the arguments to call operation. It could be a generic Object
to be passed to provided mapper. If mapper is null it works
exactly like invoke(Object)
mapper
- 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
classesInvocationResult
object populated with returned
values (implementation will process both directed returned values
and OUT parameters as defined in wsdl)InvocationException
- ExceptionIllegalArgumentException
- ExceptionMappingException
- ExceptionInvocationResult invoke(Object args) throws InvocationException, IllegalArgumentException, MappingException
args
- 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
- Exceptionvoid writeRequestPreview(Map<String,Object> args, OutputStream os) throws InvocationException
args
- Mapos
- OutputStreamInvocationException
- ExceptionMap<String,? extends WebParameter> getWebParams()
WebParameter
for the webserice method represented
by instance of this typeboolean isOneWay()
WSEndpoint getEndpoint()
Copyright © 2008–2016 JBoss.org. All rights reserved.