Learn to consume a SOAP web service in a Spring Boot application using auto client proxy class generation with the JAXB maven plugin. The WebServiceTemplate class simplifies the process of sending and receiving SOAP messages in a Spring Boot application. It also integrates with marshallers and unmarshallers (like JAXB) to convert between XML and Java objects.
This tutorial uses WebServiceGatewaySupport to facilitate the creation of web service clients. It simplifies the setup and use of WebServiceTemplate by providing configuration and template management out-of-the-box.
1. Prerequisite
- Before running this example, we need the SOAP web service running which we will invoke from this client code. For this, you may download the attached maven project (at the end of the article), and run that in the local workspace, and use that.
- Once you run this SOAP server project, you will get the WSDL from ‘http://localhost:8080/service/studentDetailsWsdl.wsdl‘. Download the WSDL somewhere as ‘studentDetailsWsdl.wsdl‘ and later we will place this in ‘resources/wsdl‘ folder of the client project which we will create next to generate the client proxy code.
2. Technology Stack
- JDK 21, IntelliJ IDE or Eclipse
- Spring Boot 3.2
- Maven-jaxb2-plugin plugin – for JAXB stub generation
3. Project Structure
The classes and files created for this demo would look like below.

4. Creating Soap Client using WebServiceTemplate
4.1. Create Boot Project
Create one spring boot project from Spring Initializr site with ‘Web Services‘ dependency only. After selecting the dependency and giving the proper maven GAV coordinates, download the project in zipped format. Unzip and then import the project in IDE as a maven project.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
</dependency>
4.2. Generating Domain Classes
Now use maven-jaxb2-plugin maven plugin to generate the JAXB annotated stub classes. To do that add this maven plugin in the pom.xml of the project.
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.15.3</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>com.example.howtodoinjava.schemas.school</generatePackage>
<generateDirectory>${project.basedir}/src/main/java</generateDirectory>
<schemaDirectory>${project.basedir}/src/main/resources/wsdl</schemaDirectory>
<schemaIncludes>
<include>*.wsdl</include>
</schemaIncludes>
</configuration>
</plugin>
</plugins>
</build>
Next, run the MVC compile command to trigger the code generation.
mvn compile
This plugin will generate the classes, the first time. For every subsequent run, it will check the generated timestamp of the classes so that those classes are generated only when any change in the WSDL happens.
4.3. Create SOAP Client with WebServiceTemplate
Create a class called SOAPConnector which will act as a generic web service client for all the requests to the web service.
- SOAPConnector class extends WebServiceGatewaySupport which injects one interface with the internal implementation of WebServiceTemplate which is available by
getWebServiceTemplate()method. - We will use this WebServiceTemplate to invoke the SOAP service.
- This class also expects one injected spring bean called Marshaller and Unmarshaller which will be provided by a configuration class.
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;
public class SOAPConnector extends WebServiceGatewaySupport {
public Object callWebService(String url, Object request){
return getWebServiceTemplate().marshalSendAndReceive(url, request);
}
}
5. Configuration
Now we need to create one configuration class annotated with @Configuration which will have the required bean definitions required for the SOAPConnector to make this work properly.
- WebServiceGatewaySupport requires Marshaller and Unmarshaller, which are instances of Jaxb2Marshaller class.
- It uses ‘com.example.howtodoinjava.schemas.school‘ as base package of the JAXB classes. It will use this package to create the JAXB context.
- We will use this Jaxb2Marshaller bean as Marshaller/Unmarshaller of SOAPConnector bean.
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.oxm.jaxb.Jaxb2Marshaller;
@Configuration
public class Config {
@Bean
public Jaxb2Marshaller marshaller() {
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
// this is the package name specified in the <generatePackage> specified in
// pom.xml
marshaller.setContextPath("com.example.howtodoinjava.schemas.school");
return marshaller;
}
@Bean
public SOAPConnector soapConnector(Jaxb2Marshaller marshaller) {
SOAPConnector client = new SOAPConnector();
client.setDefaultUri("http://localhost:8080/service/student-details");
client.setMarshaller(marshaller);
client.setUnmarshaller(marshaller);
return client;
}
}
6. Demo
For simplicity, We will create one Spring boot command-line runner application, using which will load the spring context and invoke a handler method, and will also pass the command line parameters to it. In real-time, we need to replace this command line runner with some other code that will be more aligned with the business.
We need to add this command line runner bean in the SpringBootApplication class as bellow.
import com.howtodoinjava.soap.client.SOAPConnector;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import com.example.howtodoinjava.schemas.school.StudentDetailsRequest;
import com.example.howtodoinjava.schemas.school.StudentDetailsResponse;
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
@Bean
CommandLineRunner lookup(SOAPConnector soapConnector) {
return args -> {
String name = "Lokesh"; //Default Name
if (args.length > 0) {
name = args[0];
}
StudentDetailsRequest request = new StudentDetailsRequest();
request.setName(name);
StudentDetailsResponse response = (StudentDetailsResponse) soapConnector.callWebService("http://localhost:8080/service/student-details", request);
System.out.println("Got Response As below ========= : ");
System.out.println("Name : " + response.getStudent().getName());
System.out.println("Standard : " + response.getStudent().getStandard());
System.out.println("Address : " + response.getStudent().getAddress());
};
}
}
Here we are taking the search parameter from the command line and creating the StudentDetailsRequest object and using SOAPConnector we are invoking the SOAP web service.
Optional Configurations
Open application.properties and add the below configuration of the SOAP web service application is already running on port 8080.
server.port = 9090
logging.level.org.springframework.ws=TRACE
Here we are overriding the default port to 9090 by server.port = 9090 as you have already noticed that our sample SOAP service runs in default port 8080 as two java process can’t run in same port.
Also, we are enabling TRACE logging for the org.springframework.ws package by logging.level.org.springframework.ws=TRACE. This will print the SOAP payloads in the console.
That’s all we need to do for consuming a SOAP service using Spring boot, Now it is time for testing.
Run the Application
Now build the application using the maven command mvn clean install. We can invoke the command line runner by command java -jar target\spring-boot-soap-client-0.0.1-SNAPSHOT.jar Lokesh from the command prompt.
Please note that we are passing one command line parameter “Lokesh” here which will be used in the lookup method of the CommandLineRunner bean. If no name is passed we have passed one default name in that method.
Once the command line runner is invoked, we should see the SOAP service output and the response is properly unmarshalled to the JAXB object StudentDetailsResponse. Also, we can see the full SOAP request/response in the TRACE log as below.
2024-05-29T15:24:50.527+05:30 DEBUG 11444 --- [ main] o.s.ws.client.core.WebServiceTemplate : Opening [org.springframework.ws.transport.http.HttpUrlConnection@10b687f2] to [http://localhost:8080/service/student-details]
2024-05-29T15:24:50.647+05:30 TRACE 11444 --- [ main] o.s.ws.client.MessageTracing.sent : Sent request [<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:StudentDetailsRequest xmlns:ns2="http://www.howtodoinjava.com/xml/school"><ns2:name>Sajal</ns2:name></ns2:StudentDetailsRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>]
2024-05-29T15:24:51.122+05:30 TRACE 11444 --- [ main] o.s.ws.client.MessageTracing.received : Received response [<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:StudentDetailsResponse xmlns:ns2="http://www.howtodoinjava.com/xml/school"><ns2:Student><ns2:name>Sajal</ns2:name><ns2:standard>5</ns2:standard><ns2:address>Pune</ns2:address></ns2:Student></ns2:StudentDetailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>] for request [<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:StudentDetailsRequest xmlns:ns2="http://www.howtodoinjava.com/xml/school"><ns2:name>Sajal</ns2:name></ns2:StudentDetailsRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>]
Got Response As below ========= :
Name : Lokesh
Standard : 6
Address : Pune
7. Summary
In this SOAP tutorial, we learned how we can consume SOAP service from Spring boot soap client easily. You can use this approach whenever you have any requirement to consume any such SOAP service. Hope this will be useful for you.
Please add your feedback in the comments section.
Happy Learning !!
https://spring.io/guides/gs/consuming-web-service
follow this. this is updated
Can some one please tell me where this “StudentDetailsRequest.java” and “StudentDetailsResponse.java” is coming from.
I am new to SOAP web service
Hi,
Please remove the blog post as well. As this example doesn’t works. It’s outdated and fails.
Hi Rohit, thanks for the feedback. I will check this out and update.
how can i add ClientInterceptor here
Hi,
I am getting this issue when working in Soap client.
Message part envelope was not recognized. (Does it exist in service WSDL?)
Could you please help me to resolve it.
Hello Sajal,
Thanks for this great tutorial !
I adapted your code but I have the following error when it try to unmarshall the response. Do you have an idea ?
I tried to cast with :
Does anyone know to make SOAP call dynamically? I have different WSDL url everytime and with basic auth
hi,
thank you for the excellent sample, I need to consume soap service from rest service using spring boot with JiBX instead of JAXB. Could you please help me on this.
What is the process of creating JAXB classes again in com.example.howtodoinjava.schemas.school when I am replacing another wsdl in resources/wsdl folder ?
I am supposing it to be maven clean install. Please confirm anyone.
I have tried the above code , when i run it using spring-boot:run , the services are up and console looks like :
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building WsdlConsumeWithAws 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:2.0.2.RELEASE:run (default-cli) > test-compile @ WsdlConsumeWithAws >>> [INFO] [INFO] --- maven-jaxb2-plugin:0.13.2:generate (default) @ WsdlConsumeWithAws --- [INFO] Up-to-date check for source resources [[file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/resources/wsdl/BLZService.wsdl, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/pom.xml]] and target resources [[file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/generatedstubs/DetailsType.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/generatedstubs/GetBankResponseType.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/generatedstubs/GetBankType.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/generatedstubs/ObjectFactory.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/generatedstubs/package-info.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/WsdlConsumeWithAws/BankClient.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/WsdlConsumeWithAws/BankConfig.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/com/java/bankdetails/WsdlConsumeWithAws/WsdlConsumeWithAwsApplication.java, file:/D:/CoEProject/WsdlConsumeWithAws/WsdlConsumeWithAws/src/main/java/META-INF/sun-jaxb.episode]]. [INFO] Latest timestamp of the source resources is [2018-06-15 14:35:12.131], earliest timestamp of the target resources is [2018-06-14 17:56:05.218]. [INFO] Sources are not up-to-date, XJC will be executed. [INFO] Episode file [D:\CoEProject\WsdlConsumeWithAws\WsdlConsumeWithAws\src\main\java\META-INF\sun-jaxb.episode] was augmented with if-exists="true" attributes. [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ WsdlConsumeWithAws --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ WsdlConsumeWithAws --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 8 source files to D:\CoEProject\WsdlConsumeWithAws\WsdlConsumeWithAws\target\classes [INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ WsdlConsumeWithAws --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ WsdlConsumeWithAws --- [INFO] Not compiling test sources [INFO] [INFO] <<< spring-boot-maven-plugin:2.0.2.RELEASE:run (default-cli) < test-compile @ WsdlConsumeWithAws <<< [INFO] [INFO] --- spring-boot-maven-plugin:2.0.2.RELEASE:run (default-cli) @ WsdlConsumeWithAws --- 2018-06-15 15:09:25.692 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'configurationProperties' with highest search precedence . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.2.RELEASE) 2018-06-15 15:09:25.731 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'servletConfigInitParams' with lowest search precedence 2018-06-15 15:09:25.731 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'servletContextInitParams' with lowest search precedence 2018-06-15 15:09:25.731 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'systemProperties' with lowest search precedence 2018-06-15 15:09:25.731 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'systemEnvironment' with lowest search precedence 2018-06-15 15:09:25.731 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Initialized StandardServletEnvironment with PropertySources [StubPropertySource {name='servletConfigInitParams'}, StubPropertySource {name='servletContextInitParams'}, MapPropertySource {name='systemProperties'}, SystemEnvironmentPropertySource {name='systemEnvironment'}] 2018-06-15 15:09:25.778 INFO 13552 --- [ main] c.j.b.W.WsdlConsumeWithAwsApplication : Starting WsdlConsumeWithAwsApplication on HG-D119 with PID 13552 (D:\CoEProject\WsdlConsumeWithAws\WsdlConsumeWithAws\target\classes started by Sayali.Parkhi in D:\CoEProject\WsdlConsumeWithAws\WsdlConsumeWithAws) 2018-06-15 15:09:25.778 INFO 13552 --- [ main] c.j.b.W.WsdlConsumeWithAwsApplication : No active profile set, falling back to default profiles: default 2018-06-15 15:09:25.856 INFO 13552 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4f266db8: startup date [Fri Jun 15 15:09:25 IST 2018]; root of context hierarchy 2018-06-15 15:09:26.528 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Removing PropertySource 'defaultProperties' 2018-06-15 15:09:26.591 INFO 13552 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type [org.springframework.ws.config.annotation.DelegatingWsConfiguration$$EnhancerBySpringCGLIB$$ae09c9bc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-06-15 15:09:26.622 INFO 13552 --- [ main] .w.s.a.s.AnnotationActionEndpointMapping : Supporting [WS-Addressing August 2004, WS-Addressing 1.0] 2018-06-15 15:09:26.872 INFO 13552 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9090 (http) 2018-06-15 15:09:26.902 INFO 13552 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-06-15 15:09:26.902 INFO 13552 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31 2018-06-15 15:09:26.902 INFO 13552 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_111\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_111/bin/server;C:/Program Files/Java/jre1.8.0_111/bin;C:/Program Files/Java/jre1.8.0_111/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_111\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Amazon\AWSCLI\;C:\Users\sayali.parkhi\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\sayali.parkhi\AppData\Local\Programs\Python\Python37\;C:\Users\sayali.parkhi\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Amazon\AWSCLI;;E:\eclipse-jee-neon-3-win32-x86_64\eclipse;;.] 2018-06-15 15:09:26.981 INFO 13552 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2018-06-15 15:09:26.981 DEBUG 13552 --- [ost-startStop-1] o.s.web.context.ContextLoader : Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT] 2018-06-15 15:09:26.981 INFO 13552 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1125 ms 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/] 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet messageDispatcherServlet mapped to [/services/*] 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-06-15 15:09:27.184 INFO 13552 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2018-06-15 15:09:27.215 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Replacing PropertySource 'servletContextInitParams' with 'servletContextInitParams' 2018-06-15 15:09:27.231 INFO 13552 --- [ main] o.s.oxm.jaxb.Jaxb2Marshaller : Creating JAXBContext with context path [com.java.bankdetails.generatedstubs] 2018-06-15 15:09:27.278 INFO 13552 --- [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol 2018-06-15 15:09:27.356 INFO 13552 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-06-15 15:09:27.684 INFO 13552 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4f266db8: startup date [Fri Jun 15 15:09:25 IST 2018]; root of context hierarchy 2018-06-15 15:09:27.731 DEBUG 13552 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking for request mappings in application context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4f266db8: startup date [Fri Jun 15 15:09:25 IST 2018]; root of context hierarchy 2018-06-15 15:09:27.746 DEBUG 13552 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : 2 request handler methods found on class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController: {public org.springframework.http.ResponseEntity org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)={[/error]}, public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)={[/error],produces=[text/html]}} 2018-06-15 15:09:27.746 INFO 13552 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2018-06-15 15:09:27.746 INFO 13552 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Looking for URL mappings in application context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4f266db8: startup date [Fri Jun 15 15:09:25 IST 2018]; root of context hierarchy 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.event.internalEventListenerProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.event.internalEventListenerFactory': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'wsdlConsumeWithAwsApplication': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'bankConfig': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'marshaller': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'bankClient': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.AutoConfigurationPackages': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.condition.BeanTypeRegistry': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'propertySourcesPlaceholderConfigurer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration$TomcatWebSocketConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'websocketContainerCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration$EmbeddedTomcat': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'tomcatServletWebServerFactory': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'servletWebServerFactoryCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'tomcatServletWebServerFactoryCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'server-org.springframework.boot.autoconfigure.web.ServerProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'webServerFactoryCustomizerBeanPostProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'errorPageRegistrarBeanPostProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'dispatcherServlet': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mainDispatcherServletPathProvider': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.mvc-org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'dispatcherServletRegistration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'defaultValidator': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'methodValidationPostProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'error': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'beanNameViewResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$DefaultErrorViewResolverConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'conventionErrorViewResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'errorAttributes': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'basicErrorController': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'errorPageCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'preserveErrorControllerTargetClassPostProcessor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.resources-org.springframework.boot.autoconfigure.web.ResourceProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'faviconHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'faviconRequestHandler': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'requestMappingHandlerAdapter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'requestMappingHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcConversionService': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcValidator': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcContentNegotiationManager': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcPathMatcher': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcUrlPathHelper': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'viewControllerHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'beanNameHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'resourceHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcResourceUrlProvider': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'defaultServletHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcUriComponentsContributor': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'httpRequestHandlerAdapter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'simpleControllerHandlerAdapter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'handlerExceptionResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcViewResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mvcHandlerMappingIntrospector': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'defaultViewResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'viewResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'welcomePageHandlerMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'requestContextFilter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'hiddenHttpMethodFilter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'httpPutFormContentFilter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mbeanExporter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'objectNamingStrategy': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mbeanServer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'standardJacksonObjectMapperBuilderCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'jacksonObjectMapperBuilder': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$ParameterNamesModuleConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'parameterNamesModule': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'jacksonObjectMapper': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'jsonComponentModule': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'stringHttpMessageConverter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.http.encoding-org.springframework.boot.autoconfigure.http.HttpEncodingProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'mappingJackson2HttpMessageConverter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.JacksonHttpMessageConvertersConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'messageConverters': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration$JacksonCodecConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'jacksonCodecCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.info-org.springframework.boot.autoconfigure.info.ProjectInfoProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.security-org.springframework.boot.autoconfigure.security.SecurityProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'restTemplateBuilder': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration$TomcatWebServerFactoryCustomizerConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'tomcatWebServerFactoryCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'characterEncodingFilter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'localeCharsetMappingsCustomizer': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'multipartConfigElement': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'multipartResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.servlet.multipart-org.springframework.boot.autoconfigure.web.servlet.MultipartProperties': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.ws.config.annotation.DelegatingWsConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'payloadRootAnnotationMethodEndpointMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'soapActionAnnotationMethodEndpointMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'annotationActionEndpointMapping': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'defaultMethodEndpointAdapter': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'soapFaultAnnotationExceptionResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'simpleSoapExceptionResolver': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.webservices.WebServicesAutoConfiguration$WsConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.autoconfigure.webservices.WebServicesAutoConfiguration': no URL paths identified 2018-06-15 15:09:27.762 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'messageDispatcherServlet': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'spring.webservices-org.springframework.boot.autoconfigure.webservices.WebServicesProperties': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'autoConfigurationReport': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.boot.context.ContextIdApplicationContextInitializer$ContextId': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'springApplicationArguments': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'springBootBanner': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'springBootLoggingSystem': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'environment': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'systemProperties': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'systemEnvironment': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'messageSource': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'applicationEventMulticaster': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'servletContext': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'contextParameters': no URL paths identified 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] o.s.w.s.h.BeanNameUrlHandlerMapping : Rejected bean name 'contextAttributes': no URL paths identified 2018-06-15 15:09:27.778 INFO 13552 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-06-15 15:09:27.778 INFO 13552 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-06-15 15:09:27.778 DEBUG 13552 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : Looking for exception mappings: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4f266db8: startup date [Fri Jun 15 15:09:25 IST 2018]; root of context hierarchy 2018-06-15 15:09:27.934 INFO 13552 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2018-06-15 15:09:27.949 DEBUG 13552 --- [ main] o.s.w.s.resource.ResourceUrlProvider : Looking for resource handler mappings 2018-06-15 15:09:27.949 DEBUG 13552 --- [ main] o.s.w.s.resource.ResourceUrlProvider : Found resource handler mapping: URL pattern="/**/favicon.ico", locations=[class path resource [META-INF/resources/], class path resource [resources/], class path resource [static/], class path resource [public/], ServletContext resource [/], class path resource []], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@46f18636] 2018-06-15 15:09:27.949 DEBUG 13552 --- [ main] o.s.w.s.resource.ResourceUrlProvider : Found resource handler mapping: URL pattern="/webjars/**", locations=[class path resource [META-INF/resources/webjars/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@6b00bd8b] 2018-06-15 15:09:27.949 DEBUG 13552 --- [ main] o.s.w.s.resource.ResourceUrlProvider : Found resource handler mapping: URL pattern="/**", locations=[class path resource [META-INF/resources/], class path resource [resources/], class path resource [static/], class path resource [public/], ServletContext resource [/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@2d3420fb] 2018-06-15 15:09:27.980 INFO 13552 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 9090 (http) with context path '' 2018-06-15 15:09:27.980 DEBUG 13552 --- [ main] o.s.w.c.s.StandardServletEnvironment : Adding PropertySource 'server.ports' with highest search precedence 2018-06-15 15:09:27.980 INFO 13552 --- [ main] c.j.b.W.WsdlConsumeWithAwsApplication : Started WsdlConsumeWithAwsApplication in 2.663 seconds (JVM running for 6.782)But when i hit localhost:9090 from browser, it shows me the error :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Jun 15 15:12:09 IST 2018
There was an unexpected error (type=Not Found, status=404).
No message available
I am new to web services , unable to debug this, please help !
You need run this link in command prompt and you need to to go main class of it and run as Application ten you will get output as above
Wouldit possible to add how can we manage authentiction in the header?
Hi Keith, I’m wondering if you find a solution for that, I suffering from the same issue.
can you please help me how to connect with Multiple soap webservices using above approach?
hi it is a great stuff.Can you please help me how can i set up with multiple webservices using the above approach?
I am calling a soap service which requires the soap envelope prefix to be soapenv but the request generated contains soapenvelope prefix of SOAP-ENV. any suggestion of how I can update the prefix before calling
Great tutorial. I am trying to get this example to work for a different SOAP server but using SOAP version 1.2. I have tried configuring spring to use SOAP V 1.2 via xml config and and in the @Configuration Config class. Neither seem to work or set it properly. Any suggestions? thanks in advance.
@Configuration public class Config { @Bean public SaajSoapMessageFactory messageFactory() { SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory(); messageFactory.setSoapVersion(SoapVersion.SOAP_12); messageFactory.afterPropertiesSet(); return messageFactory; } ... }from my beans.xml file I have
<beans> ... <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"> <property name="soapVersion"> <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/> </property> </bean> </beans>with the @Configuration bean, it gets called, but isn’t used, and the SaajSoapMessageFactory gets created again but with v1.1
2018-05-11 11:59:12.254 INFO 32357 — [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Creating SAAJ 1.3 MessageFactory with SOAP 1.2 Protocol
2018-05-11 11:59:19.243 DEBUG 32357 — [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Using MessageFactory class [com.sun.xml.internal.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl]
2018-05-11 11:59:28.788 DEBUG 32357 — [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Using MessageFactory class [com.sun.xml.internal.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl]
2018-05-11 11:59:28.798 INFO 32357 — [ main] o.s.oxm.jaxb.Jaxb2Marshaller : Creating JAXBContext with context path [com.ftd.ccapitest.ccapitest.schema]
2018-05-11 12:00:31.391 INFO 32357 — [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
2018-05-11 12:00:48.577 DEBUG 32357 — [ main] o.s.ws.soap.saaj.SaajSoapMessageFactory : Using MessageFactory class [com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl]
great stuff!
Hi,
Thanks for the great Tutorial. Really helpful. I was able to setup the service as well as access it from client.
One question – The client is also seems to be running as a server process (I think thats why you have changed the port as 9090)- so once I call it from command line passing the parameter (say Lokesh) – it will fetch the details, show and then hang there. So there is nothing that seem to happen after that.
Is there a way to call it without getting blocked like that? Basically, once the service is invoked and I have got the response, the process ends?
Thanks again for a very nice tutorial.
Hi Sajal, great tutorial!
I followed it and found no problems in make it work.
Only an issue, I’ve used the way you explain in the tutorial to generate some classes with a WSDL, but now I have to generate the again with same WSDL but with minor changes.
When I try to do it, I get this error when I run mvn clean install in order to generate the classes again.
[ERROR] Error while parsing schema(s).Location [ file:/home/arnau/IdeaProjects/witbooking-api/src/main/resources/wsdl/SerClsWSEntradaTest.wsdl{10,23}]. org.xml.sax.SAXParseException; systemId: file:/home/arnau/IdeaProjects/witbooking-api/src/main/resources/wsdl/SerClsWSEntradaTest.wsdl; lineNumber: 10; columnNumber: 23; 'trataPeticion' is already defined at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:178) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.checkDoubleDefError(NGCCRuntimeEx.java:150) at com.sun.xml.xsom.impl.parser.state.Schema.action7(Schema.java:137) at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1172) at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183) at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:860) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433) at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:984) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCRuntime.java:433) at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:184) at com.sun.xml.xsom.impl.parser.state.complexType.text(complexType.java:1712) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:236) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:312) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250) at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92) at com.sun.tools.xjc.ModelLoader.loadWSDL(ModelLoader.java:410) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:170) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:119) at org.jvnet.mjiip.v_2_2.XJC22Mojo.loadModel(XJC22Mojo.java:50) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:40) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:28) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:471) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:314) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)Any idea of how does I revert all changes done when I generated the classes in order to do it again?
Thanks a lot
The code checks for args.length and uses args[0] when it is supplied.
Note that this might be a problem when your IDE supplies arguments.
In my case args[0] was = “–spring.output.ansi.enabled=always” what led to response that had no student.
As a result call to response.getStudent().getName() ended up with NullPointerException.
Simply comment out if (args.length>0) { name=args[0]; } to avoid the problem.
Have fun.
Thanks for the feedback. Much appreciated !!
I have tried running the above webservice but I am getting 401 while request processing asking. If I try to hit the SOAP endpoint, it asks for username and password. Could you please share if we need to change the code to include spring-security for the same.
Hey! I have one question – where is the code for Web Service? You wrote: “Before running this example, we need one SOAP service ready which we will invoke from this client code. For this, you may download the attached maven project (at end of article) and run that in Local and use that.”
But the source code is client, not server side Web Service. Thanks!
You can use the code from here: https://howtodoinjava.com/spring-boot/spring-boot-soap-webservice-example/
excellent