diff --git a/basic/ws-outbound-gateway/README.md b/basic/ws-outbound-gateway/README.md index 43e06058..0caac28a 100644 --- a/basic/ws-outbound-gateway/README.md +++ b/basic/ws-outbound-gateway/README.md @@ -14,4 +14,7 @@ A very simple example that show you how easy it is to invoke a SOAP based servic * The *WS Outbound Gateway* converts the Message to a SOAP request and sends it to a remote service, which converts a temperature from Fahrenheit to Celsius and the result is printed to the console. -To run sample simply execute **WebServicesDemoTest** +To run the sample simply execute **WebServiceDemoTestApp** in package *org.springframework.integration.samples.ws*. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): + + $ mvn clean package exec:java + diff --git a/basic/ws-outbound-gateway/pom.xml b/basic/ws-outbound-gateway/pom.xml index 605b09b3..9195718b 100644 --- a/basic/ws-outbound-gateway/pom.xml +++ b/basic/ws-outbound-gateway/pom.xml @@ -62,6 +62,14 @@ false + + org.codehaus.mojo + exec-maven-plugin + 1.2 + + org.springframework.integration.samples.ws.WebServiceDemoTestApp + + diff --git a/basic/ws-outbound-gateway/src/main/java/rg/springframework/integration/samples/ws/WebServiceDemoTestApp.java b/basic/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemoTestApp.java similarity index 92% rename from basic/ws-outbound-gateway/src/main/java/rg/springframework/integration/samples/ws/WebServiceDemoTestApp.java rename to basic/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemoTestApp.java index b4167bcd..13637b6b 100644 --- a/basic/ws-outbound-gateway/src/main/java/rg/springframework/integration/samples/ws/WebServiceDemoTestApp.java +++ b/basic/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemoTestApp.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package rg.springframework.integration.samples.ws; +package org.springframework.integration.samples.ws; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.integration.Message; @@ -27,13 +27,13 @@ import org.springframework.integration.support.channel.ChannelResolver; * Demonstrates a web service invocation through a Web Service outbound Gateway. * A header-enricher provides the Soap Action prior to invocation. See the * 'temperatureConversion.xml' configuration file for more detail. - * + * * @author Marius Bogoevici */ public class WebServiceDemoTestApp { public static void main(String[] args) { - ClassPathXmlApplicationContext context = + ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/META-INF/spring/integration/temperatureConversion.xml"); ChannelResolver channelResolver = new BeanFactoryChannelResolver(context); @@ -50,5 +50,5 @@ public class WebServiceDemoTestApp { MessageChannel channel = channelResolver.resolveChannelName("fahrenheitChannel"); channel.send(message); } - + }