Merge branch '2.0.x' into 2.1.x
Closes gh-17078
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2019 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.
|
||||
@@ -49,19 +49,16 @@ public class SampleWsApplicationTests {
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
this.webServiceTemplate
|
||||
.setDefaultUri("http://localhost:" + this.serverPort + "/services/");
|
||||
this.webServiceTemplate.setDefaultUri("http://localhost:" + this.serverPort + "/services/");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendingHolidayRequest() {
|
||||
final String request = "<hr:HolidayRequest xmlns:hr=\"https://company.example.com/hr/schemas\">"
|
||||
+ " <hr:Holiday>" + " <hr:StartDate>2013-10-20</hr:StartDate>"
|
||||
+ " <hr:EndDate>2013-11-22</hr:EndDate>" + " </hr:Holiday>"
|
||||
+ " <hr:Employee>" + " <hr:Number>1</hr:Number>"
|
||||
+ " <hr:FirstName>John</hr:FirstName>"
|
||||
+ " <hr:LastName>Doe</hr:LastName>" + " </hr:Employee>"
|
||||
+ "</hr:HolidayRequest>";
|
||||
+ " <hr:EndDate>2013-11-22</hr:EndDate>" + " </hr:Holiday>" + " <hr:Employee>"
|
||||
+ " <hr:Number>1</hr:Number>" + " <hr:FirstName>John</hr:FirstName>"
|
||||
+ " <hr:LastName>Doe</hr:LastName>" + " </hr:Employee>" + "</hr:HolidayRequest>";
|
||||
StreamSource source = new StreamSource(new StringReader(request));
|
||||
StreamResult result = new StreamResult(System.out);
|
||||
this.webServiceTemplate.sendSourceAndReceiveToResult(source, result);
|
||||
|
||||
Reference in New Issue
Block a user