org.jboss.wise.core.client
Interface InvocationResult

All Known Implementing Classes:
InvocationResultImpl

@Immutable
public interface InvocationResult

Holds the webservice's invocation result's data. Normally this data are kept in Map, but implementor are free to change internal data structure. Anyway it return a Map with webservice's call results, eventually applying a mapping to custom object using a WiseMapper passed to getMappedResult(WiseMapper, Map) methods

Since:
29-07-2007
Author:
stefano.maestri@javalinux.it

Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getMappedResult(WiseMapper mapper, java.util.Map<java.lang.String,java.lang.Object> inputMap)
          Apply WiseMapper provided with to returned Object as defined in wsdl/wiseconsume generated objects.
 

Method Detail

getMappedResult

java.util.Map<java.lang.String,java.lang.Object> getMappedResult(WiseMapper mapper,
                                                                 java.util.Map<java.lang.String,java.lang.Object> inputMap)
                                                                 throws MappingException
Apply WiseMapper provided with to returned Object as defined in wsdl/wiseconsume generated objects. If mapper parameter is null, no mapping are applied and original object are returned.

Parameters:
mapper - a WiseMapper used to map JAX-WS generated object returned by method call to arbitrary custom object model. It could be null to don't apply any kind of mappings
inputMap - It's the map of input object used to give them together with output. It's useful when they are needed by wise's client in same classLoader used by smooks (i.e when wise is used to enrich set of objects like in ESB action pipeline)
Returns:
a Map containing the result of ws calls eventually mapped using WiseMapper provided
Throws:
MappingException - rethrown exception got from provided WiseMapper