Java 尽管我的应用程序的两个版本相同,为什么在soap响应中得到不同的编码
新版本Java 尽管我的应用程序的两个版本相同,为什么在soap响应中得到不同的编码,java,xml,maven,web-services,soap,Java,Xml,Maven,Web Services,Soap,新版本 <?xml version="1.0" ?> <soap:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns
<?xml version="1.0" ?>
<soap:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header></env:Header>
<soap:Body xmlns:ns0="http://myurl...">
<ns1:mySoapResponse xmlns:ns1="http://myurl...">
<ns1:out><Foo>
<field1>bar</field1>
<field2>gaz</field1>
福
field1bar/field1
field2gaz/field1
旧版本
<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<soap:Body xmlns:ns0="http://myurl...">
<ns1:mySoapResponse xmlns:ns1="http://myurl...">
<ns1:out><Foo>
<field1>bar</field1>
<field2>gaz</field2>
Foo>和#xd;
字段1>栏/字段1>和#xd;
气田2>天然气/气田2>和#xd;
我希望得到相同的响应(使用
,#xd;
)
- UTF-8来自哪里?我没有改变任何东西,所以我不知道为什么我在新版本中遗漏了它
和
以及缺少
;
)
我比较了新旧ear文件
META-INF/Manifest.mf:
- Old是用jdk:1.8.0_242和maven 3.6.2创建的
- 新版本是用jdk创建的:1.8.0_261,maven 3.6.3
- 所有的罐子都一样。没有区别
- applicationContext.xml
- dataSource.xml
- remoting-servlet.xml
- web.xml
- weblogic.xml
%gt代码>编码。我可以看到com.sun.xml.ws.db databindingingmpl
正在调试器堆栈中使用serializeResponse
方法,但我无法转到该类对其进行调试。。。
我如何找到这种变化的根本原因?我没有更改/触摸我的wsdl模式,因此它也没有任何问题
任何帮助都将不胜感激