@Override public void afterPropertiesSet() throws Exception { afterMarshallerSet(); }
@Override public final void invoke(MessageContext messageContext) throws Exception { WebServiceMessage request = messageContext.getRequest(); Object requestObject = unmarshalRequest(request); if (onUnmarshalRequest(messageContext, requestObject)) { Object responseObject = invokeInternal(requestObject); if (responseObject != null) { WebServiceMessage response = messageContext.getResponse(); marshalResponse(responseObject, response); onMarshalResponse(messageContext, requestObject, responseObject); } } }
/** * Creates a new <code>AbstractMarshallingPayloadEndpoint</code> with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
private Object unmarshalRequest(WebServiceMessage request) throws IOException { Unmarshaller unmarshaller = getUnmarshaller(); Assert.notNull(unmarshaller, "No unmarshaller registered. Check configuration of endpoint."); Object requestObject = MarshallingUtils.unmarshal(unmarshaller, request); if (logger.isDebugEnabled()) { logger.debug("Unmarshalled payload request to [" + requestObject + "]"); } return requestObject; }
private void marshalResponse(Object responseObject, WebServiceMessage response) throws IOException { Marshaller marshaller = getMarshaller(); Assert.notNull(marshaller, "No marshaller registered. Check configuration of endpoint."); if (logger.isDebugEnabled()) { logger.debug("Marshalling [" + responseObject + "] to response payload"); } MarshallingUtils.marshal(marshaller, responseObject, response); }
private Object unmarshalRequest(WebServiceMessage request) throws IOException { Unmarshaller unmarshaller = getUnmarshaller(); Assert.notNull(unmarshaller, "No unmarshaller registered. Check configuration of endpoint."); Object requestObject = MarshallingUtils.unmarshal(unmarshaller, request); if (logger.isDebugEnabled()) { logger.debug("Unmarshalled payload request to [" + requestObject + "]"); } return requestObject; }
private void marshalResponse(Object responseObject, WebServiceMessage response) throws IOException { Marshaller marshaller = getMarshaller(); Assert.notNull(marshaller, "No marshaller registered. Check configuration of endpoint."); if (logger.isDebugEnabled()) { logger.debug("Marshalling [" + responseObject + "] to response payload"); } MarshallingUtils.marshal(marshaller, responseObject, response); }
public final void invoke(MessageContext messageContext) throws Exception { WebServiceMessage request = messageContext.getRequest(); Object requestObject = unmarshalRequest(request); if (onUnmarshalRequest(messageContext, requestObject)) { Object responseObject = invokeInternal(requestObject); if (responseObject != null) { WebServiceMessage response = messageContext.getResponse(); marshalResponse(responseObject, response); onMarshalResponse(messageContext, requestObject, responseObject); } } }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
private Object unmarshalRequest(WebServiceMessage request) throws IOException { Unmarshaller unmarshaller = getUnmarshaller(); Assert.notNull(unmarshaller, "No unmarshaller registered. Check configuration of endpoint."); Object requestObject = MarshallingUtils.unmarshal(unmarshaller, request); if (logger.isDebugEnabled()) { logger.debug("Unmarshalled payload request to [" + requestObject + "]"); } return requestObject; }
private void marshalResponse(Object responseObject, WebServiceMessage response) throws IOException { Marshaller marshaller = getMarshaller(); Assert.notNull(marshaller, "No marshaller registered. Check configuration of endpoint."); if (logger.isDebugEnabled()) { logger.debug("Marshalling [" + responseObject + "] to response payload"); } MarshallingUtils.marshal(marshaller, responseObject, response); }
public void afterPropertiesSet() throws Exception { afterMarshallerSet(); }
@Override public final void invoke(MessageContext messageContext) throws Exception { WebServiceMessage request = messageContext.getRequest(); Object requestObject = unmarshalRequest(request); if (onUnmarshalRequest(messageContext, requestObject)) { Object responseObject = invokeInternal(requestObject); if (responseObject != null) { WebServiceMessage response = messageContext.getResponse(); marshalResponse(responseObject, response); onMarshalResponse(messageContext, requestObject, responseObject); } } }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
private Object unmarshalRequest(WebServiceMessage request) throws IOException { Unmarshaller unmarshaller = getUnmarshaller(); Assert.notNull(unmarshaller, "No unmarshaller registered. Check configuration of endpoint."); Object requestObject = MarshallingUtils.unmarshal(unmarshaller, request); if (logger.isDebugEnabled()) { logger.debug("Unmarshalled payload request to [" + requestObject + "]"); } return requestObject; }
private void marshalResponse(Object responseObject, WebServiceMessage response) throws IOException { Marshaller marshaller = getMarshaller(); Assert.notNull(marshaller, "No marshaller registered. Check configuration of endpoint."); if (logger.isDebugEnabled()) { logger.debug("Marshalling [" + responseObject + "] to response payload"); } MarshallingUtils.marshal(marshaller, responseObject, response); }
@Override public void afterPropertiesSet() throws Exception { afterMarshallerSet(); }
@Override public final void invoke(MessageContext messageContext) throws Exception { WebServiceMessage request = messageContext.getRequest(); Object requestObject = unmarshalRequest(request); if (onUnmarshalRequest(messageContext, requestObject)) { Object responseObject = invokeInternal(requestObject); if (responseObject != null) { WebServiceMessage response = messageContext.getResponse(); marshalResponse(responseObject, response); onMarshalResponse(messageContext, requestObject, responseObject); } } }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
@Override public void afterPropertiesSet() throws Exception { afterMarshallerSet(); }