Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将soap响应转换为已定义的json_Json_Java 8_Soap Client_Xml To Json - Fatal编程技术网

将soap响应转换为已定义的json

将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响应转换为json。我有如下soap响应

<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完成这个转换吗