public abstract class AbstractWSClient extends Object implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
AbstractWSClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected <C> Collection<C> |
convert(Collection<?> source,
Class<C> targetType)
Convenience method that converts the
source Collection to
Collection of targetType objects. |
protected <C> C |
convert(Object source,
Class<C> targetType)
Convenience method that converts the
source to
targetType . |
protected abstract String |
getServiceRequestName()
Get the name of this service.
|
protected Object |
marshalSendAndReceive(Object requestPayload)
Sends a web service message that contains the given payload, marshalled
by the configured Marshaller.
|
void |
setDomainTransportConversionService(org.springframework.core.convert.ConversionService domainTransportConversionService) |
void |
setWebServiceRootURI(String webServiceRootURI) |
void |
setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate) |
protected Object marshalSendAndReceive(Object requestPayload)
requestPayload - the request payloadprotected abstract String getServiceRequestName()
@Autowired public void setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate)
webServiceTemplate - the WebServiceTemplate to useprotected <C> C convert(Object source, Class<C> targetType)
source to
targetType .C - the generic target typesource - the source to converttargetType - the target type to convert toprotected <C> Collection<C> convert(Collection<?> source, Class<C> targetType)
source Collection to
Collection of targetType objects.C - the generic target typesource - the source Collection to converttargetType - the target type to convert topublic void setDomainTransportConversionService(org.springframework.core.convert.ConversionService domainTransportConversionService)
domainTransportConversionService - the ConversionService to use for domain and type
conversionspublic void setWebServiceRootURI(String webServiceRootURI)
webServiceRootURI - the root URI of the services on the server. The Request-URI
will be appended.Copyright © 2006–2020 Esito AS. All rights reserved.