net.javacrumbs.springws.test.helper
Class WsTestWebServiceTemplate

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.client.support.WebServiceAccessor
          extended by org.springframework.ws.client.core.WebServiceTemplate
              extended by net.javacrumbs.springws.test.helper.WsTestWebServiceTemplate
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.ws.client.core.WebServiceOperations

public class WsTestWebServiceTemplate
extends org.springframework.ws.client.core.WebServiceTemplate
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

WebService template to be used when testing WS server.

Author:
Lukas Krecan

Field Summary
 
Fields inherited from class org.springframework.ws.client.core.WebServiceTemplate
MESSAGE_TRACING_LOG_CATEGORY, receivedMessageTracingLogger, sentMessageTracingLogger
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
WsTestWebServiceTemplate()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
protected  void send(org.springframework.ws.context.MessageContext context)
          Sends message directly.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.ws.client.core.WebServiceTemplate
doSendAndReceive, getDefaultUri, getDestinationProvider, getFaultMessageResolver, getInterceptors, getMarshaller, getUnmarshaller, handleError, handleFault, hasError, hasFault, initDefaultStrategies, marshalSendAndReceive, marshalSendAndReceive, marshalSendAndReceive, marshalSendAndReceive, sendAndReceive, sendAndReceive, sendAndReceive, sendAndReceive, sendSourceAndReceive, sendSourceAndReceive, sendSourceAndReceive, sendSourceAndReceive, sendSourceAndReceiveToResult, sendSourceAndReceiveToResult, sendSourceAndReceiveToResult, sendSourceAndReceiveToResult, setDefaultUri, setDestinationProvider, setFaultMessageResolver, setCheckConnectionForError, setCheckConnectionForFault, setInterceptors, setMarshaller, setUnmarshaller
 
Methods inherited from class org.springframework.ws.client.support.WebServiceAccessor
createConnection, getMessageFactory, getMessageSenders, setMessageFactory, setMessageSender, setMessageSenders
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsTestWebServiceTemplate

public WsTestWebServiceTemplate()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.ws.client.support.WebServiceAccessor

send

protected void send(org.springframework.ws.context.MessageContext context)
             throws java.io.IOException
Sends message directly.

Parameters:
context -
Throws:
java.io.IOException

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware


Copyright © 2011. All Rights Reserved.