diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b423aa08..e76114c70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ * 【crypto 】 增加ASN1Util * 【core 】 CsvConfig改为泛型形式 * 【core 】 增加Partition +* 【http 】 SoapClient.sendForResponse改为public(issue#I466NN@Gitee) +* 【core 】 XmlUtil增加append重载(issue#I466ZZ@Gitee) ### 🐞Bug修复 diff --git a/hutool-core/src/main/java/cn/hutool/core/util/XmlUtil.java b/hutool-core/src/main/java/cn/hutool/core/util/XmlUtil.java index b4dac7265..45b59d769 100644 --- a/hutool-core/src/main/java/cn/hutool/core/util/XmlUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/util/XmlUtil.java @@ -1326,6 +1326,17 @@ public class XmlUtil { public static Node appendText(Node node, CharSequence text) { return appendText(getOwnerDocument(node), node, text); } + + /** + * 追加数据子节点,可以是Map、集合、文本 + * + * @param node 节点 + * @param data 数据 + * @since 5.7.10 + */ + public static void append(Node node, Object data) { + append(getOwnerDocument(node), node, data); + } // ---------------------------------------------------------------------------------------- Private method start /** diff --git a/hutool-http/src/main/java/cn/hutool/http/webservice/SoapClient.java b/hutool-http/src/main/java/cn/hutool/http/webservice/SoapClient.java index 4f49da10f..4c892c285 100644 --- a/hutool-http/src/main/java/cn/hutool/http/webservice/SoapClient.java +++ b/hutool-http/src/main/java/cn/hutool/http/webservice/SoapClient.java @@ -585,7 +585,7 @@ public class SoapClient extends HttpBase { * * @return 响应对象 */ - private HttpResponse sendForResponse() { + public HttpResponse sendForResponse() { return HttpRequest.post(this.url)// .setFollowRedirects(true)// .setConnectionTimeout(this.connectionTimeout)