dongou2019 2017-02-08 19:42
浏览 74

发送请求到wsdl文件并使用php获取响应

I searched a lot for this part but I found many issues so I confused between them

this is wsdl file $wsdl = 'http://url.com/service.wsdl';

And below is the SOAP definition. How can I send request and get the response using php file

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ent="http://enterprise.olp.sadad.com/Infrastructure/EnterpriseContext" xmlns:ns="http://olp.sadad.com/sadadpaymentmanagement/service/sadadpaymentmanager/intf/1">
   <soap:Header>
      <ent:enterpriseContext>
         <ent:contextInfo>
            <ent:ProcessContextId>--</ent:ProcessContextId>
            <ent:businessContextId>CO</ent:businessContextId>
            <ent:applicationContextId>3</ent:applicationContextId>
         </ent:contextInfo>
         <ent:requestOriginator>
            <ent:requesterCode>NCBK</ent:requesterCode>
            <ent:machineIPAddress>00.00.00.00</ent:machineIPAddress>
            <ent:userPrincipleName>NCB</ent:userPrincipleName>
            <ent:requestedTimestamp>2015-10-01T05:53:04</ent:requestedTimestamp>
            <ent:channelId>1</ent:channelId>
         </ent:requestOriginator>
      </ent:enterpriseContext>
   </soap:Header>
   <soap:Body>
      <ns:InitiatePaymentDetails>
         <InitiatePaymentDetailsRequest>
            <transactionAmount>50</transactionAmount>
            <olpIdAlias>abcd</olpIdAlias>
            <merchantRefNum>1238688</merchantRefNum>
            <merchants>
               <merchantId>2854</merchantId>
               <merchantRefNum>1238688</merchantRefNum>
               <paymentAmount>50</paymentAmount>
               <paymentCurrency>SAR</paymentCurrency>
               <merchantType>1</merchantType>
            </merchants>
            <dynamicMerchantLandingURL>https://url.com/dummynow/success</dynamicMerchantLandingURL>
            <dynamicMerchantFailureUrl>https://url.com/dummynow/failure</dynamicMerchantFailureUrl>
            <merchantId>2854</merchantId>
         </InitiatePaymentDetailsRequest>
      </ns:InitiatePaymentDetails>
   </soap:Body>
</soap:Envelope>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度