如何在Java中解析Soap响应

如何在Java中解析Soap响应,java,xml,soap-client,Java,Xml,Soap Client,下面是我得到的Soap响应,但我不知道 如何解析Soap响应 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/plaza/api" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs

下面是我得到的Soap响应,但我不知道 如何解析Soap响应

 <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/plaza/api" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
    <ns1:requestResponse>
        <return xsi:type="SOAP-ENC:Struct">
            <last_dir_trans xsi:type="SOAP-ENC:Struct">
                <p_liveid xsi:type="xsd:string">124</p_liveid>
                <p_amount xsi:type="xsd:string">20</p_amount>
                <p_dateadded xsi:type="xsd:string">2016-08-15 07:37:21</p_dateadded>
            </last_dir_trans>
            <last_knet_trans xsi:type="SOAP-ENC:Struct">
                <p_knetsuc_id xsi:type="xsd:string">3</p_knetsuc_id>
                <p_amount xsi:type="xsd:string">20</p_amount>
                <p_dateadded xsi:type="xsd:string">2016-09-22 15:33:56</p_dateadded>
            </last_knet_trans>
            <last_user xsi:type="SOAP-ENC:Struct">
                <s_subid xsi:type="xsd:string">23223</s_subid>
                <s_name xsi:type="xsd:string">test1</s_name>
                <s_address xsi:type="xsd:string"></s_address>
                <s_phonenumber xsi:type="xsd:string">96566565656</s_phonenumber>
                <s_civilid xsi:type="xsd:string">2016-08-15 07:3</s_civilid>
                <s_total_payable xsi:type="xsd:string">240</s_total_payable>
                <s_monthly xsi:type="xsd:string">20</s_monthly>
                <s_email xsi:type="xsd:string"></s_email>
                <s_dateadded xsi:type="xsd:string">0000-00-00 00:00:00</s_dateadded>
            </last_user>
        </return>
    </ns1:requestResponse>
</SOAP-ENV:Body>

124
20
2016-08-15 07:37:21
3.
20
2016-09-22 15:33:56
23223
测试1
96566565656
2016-08-15 07:3
240
20
0000-00-00 00:00:00


我想用java解析上面的代码。提前谢谢

使用一个SOAP库,例如,,,etc.hi@manish,我无法从链接中获取。你能给我推荐一个例子吗?使用一个SOAP库,例如,,,etc.hi@manish,我无法从链接中获取,你能给我推荐一个例子吗