将请求发送到wsdl文件并使用php获取响应
我搜索了很多这部分,但我发现了很多问题,所以我混淆了它们 这是wsdl文件将请求发送到wsdl文件并使用php获取响应,php,wsdl,soapui,Php,Wsdl,Soapui,我搜索了很多这部分,但我发现了很多问题,所以我混淆了它们 这是wsdl文件 $wsdl=http://url.com/service.wsdl'; 下面是SOAP的定义。如何使用php文件发送请求并获得响应 <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ent="http://enterprise.olp.sadad.com/Infrastructure/EnterpriseContext
$wsdl=http://url.com/service.wsdl';代码>
下面是SOAP的定义。如何使用php文件发送请求并获得响应
<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>
--
一氧化碳
3.
NCBK
00.00.00.00
国家编目局
2015-10-01T05:53:04
1.
50
abcd
1238688
2854
1238688
50
合成孔径雷达
1.
https://url.com/dummynow/success
https://url.com/dummynow/failure
2854
如果您还没有读过PHP,请仔细阅读。是的,我读过,但有一些混淆,我将如何将数据发送到标头以及如何发送数组