本文介绍了我想要使​​用c#从soap请求中提取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fin="http://google.com/FinancialTxnService">
   <soapenv:Header/>
   <soapenv:Body>
      <fin:UtilityBillPaymentRes>
         <fin:ResHdr>
            <ConsumerContext>
               <RequesterID>IB</RequesterID>
               <TerminalID>10.9.73.71</TerminalID>
            </ConsumerContext>
            <ServiceContext>
               <ServiceName>UtilityBillPayment</ServiceName>
               <ReqRefNum>1401981498236</ReqRefNum>
               <ReqRefTimeStamp>2014-06-05T19:14:50.814</ReqRefTimeStamp>
               <ServiceVersionNo>1.0</ServiceVersionNo>
               <LogLevel>1</LogLevel>
            </ServiceContext>
            <ProviderContext>
               <ProviderID>NWR</ProviderID>
               <RequestType>FTIUTIL</RequestType>
            </ProviderContext>
            <ServiceResponse>
               <EsbResNum>10000229917</EsbResNum>
               <EsbResTimeStamp>2014-07-23T19:19:28.795102</EsbResTimeStamp>
               <EsbResStatus>1</EsbResStatus>
            </ServiceResponse>
            <ErrorDetails>
               <ErrorInfo>
                  <ErrSrc>NWR</ErrSrc>
                  <EsbErrCode>NWR201000</EsbErrCode>
                  <EsbErrLongDesc>Payment Gateway internal error</EsbErrLongDesc>
                  <EsbErrShortDesc/>
                  <HostErrCode>NWR201000</HostErrCode>
                  <HostErrDesc/>
                  <ErrType/>
               </ErrorInfo>
            </ErrorDetails>
            <UserContext>
               <UserID>KXP</UserID>
            </UserContext>
         </fin:ResHdr>
         <fin:XferRec>
            <XferId>FT14204069798352</XferId>
            <XferType>ACB5</XferType>
            <AmtDebited>OMR10.000</AmtDebited>
            <AmtCredited>OMR10.000</AmtCredited>
            <DebitAmt>10.000</DebitAmt>
            <AvlblBalance>81.6</AvlblBalance>
         </fin:XferRec>
         <fin:DebitAccInfo>
            <AcctId>0322003785730032</AcctId>
            <AcctIdType/>
            <AcctType/>
            <AcctKey/>
            <AcctCcy/>
         </fin:DebitAccInfo>
         <fin:DebitInfo>
            <CustomerID>378573</CustomerID>
            <ChkEnteredAmt>10.000</ChkEnteredAmt>
            <DebitDate>2014-07-23</DebitDate>
            <DebitCcy>OMR</DebitCcy>
            <DebitCompCode>OM0010322</DebitCompCode>
            <LocalAmtDebited>10.000</LocalAmtDebited>
            <DebitAdvReq>N</DebitAdvReq>
            <CcyMktDr>1</CcyMktDr>
         </fin:DebitInfo>
         <fin:CreditAccInfo>
            <AcctId>0423011147890018</AcctId>
            <AcctIdType/>
            <AcctType/>
            <AcctKey/>
            <AcctCcy/>
         </fin:CreditAccInfo>
         <fin:CreditInfo>
            <CustomerID>1114789</CustomerID>
            <CreditDate>2014-07-23</CreditDate>
            <CreditCcy>OMR</CreditCcy>
            <CreditCompCode>OM0010423</CreditCompCode>
            <LocalAmtCredit>10.000</LocalAmtCredit>
            <CreditAdvReq>N</CreditAdvReq>
            <CreditCcyMkt>1</CreditCcyMkt>
         </fin:CreditInfo>
         <fin:ChequeInfo>
            <ProcessDate>2014-07-23</ProcessDate>
         </fin:ChequeInfo>
         <fin:ChrgInfo>
            <AcctId>0322003785730032</AcctId>
            <DisplayCom>NO</DisplayCom>
            <ChargeCode>DEBIT PLUS CHARGES</ChargeCode>
            <TotalRecordCharge>0</TotalRecordCharge>
            <CustomerID>1114789</CustomerID>
            <TotalRecChargeLCL>0</TotalRecChargeLCL>
            <TotalRecChargeCcy>0</TotalRecChargeCcy>
            <TotalSendChargeCcy>0.000</TotalSendChargeCcy>
         </fin:ChrgInfo>
         <fin:PaymentInfo>
            <CommisionDetails>
               <CommissionCode>DEBIT PLUS CHARGES</CommissionCode>
               <CommissionInfo/>
            </CommisionDetails>
            <ProfitCentreCust>378573</ProfitCentreCust>
            <ReturnToDept>NO</ReturnToDept>
            <FEDFunds>NO</FEDFunds>
            <PositionType>TR</PositionType>
            <TotalRecComm>0</TotalRecComm>
            <TotalRecCommLCL>0</TotalRecCommLCL>
            <RateFixing>NO</RateFixing>
            <ContractNum>04329798</ContractNum>
            <ServiceProviderCode>0102</ServiceProviderCode>
            <UtilityCode>002</UtilityCode>
            <OrderingBank>BM</OrderingBank>
            <CustGrpLvl>12</CustGrpLvl>
            <CcyCode>1</CcyCode>
            <inputUser>59433_ESBUSER1__OFS_ESB.OFS.SOURCE</inputUser>
            <Authoriser>59433_ESBUSER1_OFS_ESB.OFS.SOURCE</Authoriser>
            <COCode>OM0010322</COCode>
            <DeptCode>1</DeptCode>
         </fin:PaymentInfo>
         <fin:ForexInfo>
            <CcyCode/>
            <CcyConvertRule/>
         </fin:ForexInfo>
         <fin:FTAddInfo>
            <AuthenticationDate>2014-07-23</AuthenticationDate>
            <BmVersionInp>FUNDS.TRANSFER,BM.UTIL.ESB</BmVersionInp>
         </fin:FTAddInfo>
         <fin:UtilityProviderPayInfo>
            <fin:BillerRefNum/>
            <fin:BillerPaymentTransId/>
            <fin:ActBal/>
            <fin:ValidForResubmit>true</fin:ValidForResubmit>
            <fin:CommandName/>
            <fin:ResponseCode>-1000</fin:ResponseCode>
            <fin:ResponseMessage>Payment Gateway internal error</fin:ResponseMessage>
         </fin:UtilityProviderPayInfo>
      </fin:UtilityBillPaymentRes>
   </soapenv:Body>
</soapenv:Envelope>





*我想要获取数据从这个soap requestxml我尝试了xml节点xpath,但没有工作。请帮助获取数据。



* i want to fetch data from this soap requestxml i tried xml node xpath but didn't
work.Please help to fetch data .

推荐答案



这篇关于我想要使​​用c#从soap请求中提取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:00