10 Commits

Author SHA1 Message Date
Greg Turnquist
13aa315842 Upgrade to Spring Boot 1.5.10.RELEASE 2018-01-31 09:15:50 -06:00
Greg Turnquist
db286b73f1 Upgrade to Spring Boot 1.5.9.RELEASE 2017-11-30 11:06:30 -06:00
Augusto Toledo
1985a85c19 Change old ‘weather service’ references to the ‘stock market service’ 2017-11-14 14:09:18 +00:00
ma
c128804ac5 args parameter added
Added args parameter to SpringApplication.run method to support command line arguments
2017-11-08 10:03:50 +00:00
Greg Turnquist
ef22c0322d Upgrade to Spring Boot 1.5.8.RELEASE 2017-10-17 15:42:14 -05:00
Greg Turnquist
c96d6e8e4f Upgrade to Spring Boot 1.5.7.RELEASE 2017-09-13 13:15:15 -05:00
Jay Bryant
506745d1a2 Added See Also links (#21)
At the bottom of the document (above the footer), I added links to other guides that readers may find to be useful.
2017-08-11 14:55:30 -05:00
Greg Turnquist
4bb2c01474 Upgrade to Spring Boot 1.5.6.RELEASE 2017-07-27 10:04:21 -05:00
Greg Turnquist
dda3c483f7 Upgrade to Spring Boot 1.5.5.RELEASE 2017-07-26 12:23:00 -05:00
Greg Turnquist
a2e2c2d7c2 Upgrade to Spring Boot 1.5.3.RELEASE 2017-04-21 09:20:02 -05:00
6 changed files with 15 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ projects: [spring-ws]
:toc:
:project_id: gs-consuming-web-service
:spring_version: current
:spring_boot_version: 1.5.2.RELEASE
:spring_boot_version: 1.5.10.RELEASE
:icons: font
:source-highlighter: prettify
@@ -14,7 +14,7 @@ This guide walks you through the process of consuming a link:/understanding/SOAP
== What you'll build
You will build a client that fetches weather data from a remote, WSDL-based web service using http://en.wikipedia.org/wiki/SOAP[SOAP].
You will build a client that fetches stock market quotes data from a remote, WSDL-based web service using http://en.wikipedia.org/wiki/SOAP[SOAP].
You can find out more about the quote service at http://www.webservicex.com/stockquote.asmx?op=GetQuote.
The service provides stock market quotes. You will be able to use your own ticker symbol.
@@ -66,7 +66,7 @@ As gradle does not have a JAXB plugin (yet), it involves an ant task, which make
In both cases, the JAXB domain object generation process has been wired into the build tool's lifecycle so there are no extra steps to run.
== Create a weather service client
== Create a stock market quotes service client
To create a web service client, you simply have to extend the http://docs.spring.io/spring-ws/sites/2.0/apidocs/org/springframework/ws/client/core/support/WebServiceGatewaySupport.html[WebServiceGatewaySupport] class and code your operations:
@@ -100,7 +100,7 @@ The `quoteClient` is created and configured with the URI of the weather service
== Make the application executable
This application is packaged up to run from the console and retrieve a single weather forecast for a given zip code.
This application is packaged up to run from the console and retrieve the stock value for a given symbol.
`src/main/java/hello/Application.java`
[source,java]
@@ -110,7 +110,7 @@ include::complete/src/main/java/hello/Application.java[]
The `main()` method defers to the http://docs.spring.io/spring-boot/docs/{spring_boot_version}/api/org/springframework/boot/SpringApplication.html[`SpringApplication`] helper class, providing `QuoteConfiguration.class` as an argument to its `run()` method. This tells Spring to read the annotation metadata from `QuoteConfiguration` and to manage it as a component in the link:/understanding/application-context[Spring application context].
NOTE: This application is hard coded to look up zip code 94304, Palo Alto, CA. Towards the end of this guide, you'll see how to plug in a different zip code without editing the code.
NOTE: This application is hard coded to look up symbol 'MSFT' which correspond to Microsoft Corporation. Towards the end of this guide, you'll see how to plug in a different symbol without editing the code.
include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[]
@@ -136,11 +136,13 @@ Requesting quote for ORCL
== Summary
Congratulations! You've just developed a client to consume a SOAP-based web service with Spring.
Congratulations! You've just developed a client to consume a SOAP-based web service with Spring.
== See Also
The following guides may also be helpful:
* https://spring.io/guides/gs/producing-web-service/[Producing a SOAP web service]
* https://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot]
include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/footer.adoc[]

View File

@@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
}
}

View File

@@ -10,7 +10,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.2.RELEASE</version>
<version>1.5.10.RELEASE</version>
</parent>
<properties>

View File

@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Bean;
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class);
SpringApplication.run(Application.class, args);
}
@Bean

View File

@@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
}
}

View File

@@ -10,7 +10,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.2.RELEASE</version>
<version>1.5.10.RELEASE</version>
</parent>
<properties>