SOAP响应消息解析

时间:2017-05-05 10:00:41

标签: java web-services soap

我收到了来自SOAP的回复消息,该消息产生wsdl数据类型

com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl 
(from soapResponse.writeTo(System.out)),

消息更像这样

<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/">
   <NS1:Body>
      <NS2:AccountInquiryResponse xmlns:NS2="http://www.hostname.com/AccountServices/">
         <responseCode>00</responseCode>
         <responseDetail>
            <response_code>00</response_code>
            <response_data/>
         </responseDetail>
         <accountInquiryResponseData>
            <AccountName>SJYRXS FXPUPJ IXDCYLKNU</AccountName>
            <MinimumBalance>0.00</MinimumBalance>
            <Address1>VP. FWLSJKR YJQJ 24-26 PS 2</Address1>
            <Address2>FXP FWLSJKR FXD IXKXK</Address2>
            <Address3>VJFJYSJ</Address3>
            <Address4>Vjfjysj Ecijs                 10420</Address4>
         </accountInquiryResponseData>
      </NS2:AccountInquiryResponse>
   </NS1:Body>
</NS1:Envelope>

问题是...... 如何获取响应的每个字段msg(数据类型com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl)???

以前谢谢你,

0 个答案:

没有答案
相关问题