将soap响应转换为已定义的json
我需要将soap响应转换为json。我有如下soap响应将soap响应转换为已定义的json,json,java-8,soap-client,xml-to-json,Json,Java 8,Soap Client,Xml To Json,我需要将soap响应转换为json。我有如下soap响应 <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Header> <header xmlns="tested"> <requestId>NA</requestId> </header> </S
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<header xmlns="tested">
<requestId>NA</requestId>
</header>
</SOAP:Header>
<SOAP:Body>
<findValue xmlns="tested">
<result>
<test.Option>
<name>NA</name>
<children-Set>
<test.TestClass>
<value>25</value>
<value1>20.0</value1>
<value2>5.0</value2>
<value3>88</value3>
<testval>2545</testval>
<testval1>3</testval1>
<testval2>3</testval2>
<children-Set />
</test.TestClass>
</children-Set>
</test.Option>
</result>
</findValue>
</SOAP:Body>
</SOAP:Envelope>
{
"type": "com.test.package",
"properties": {
"name": "",
"testlist": [],
"object": {
"value": "25.167969",
"value1": "-20.0",
"value2": "-25.0",
"value3": "85.0"
},
"object1": {
"testval": "3.2545",
"testval2": "3.05",
"testval3": "3.0"
}
}
}
我有一个时间表来完成这个。有人能帮我用java完成这个转换吗