作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有人可以帮助我 - 我需要一些提示或代码来连接到 wsdl 服务,发送 XML 请求,然后在客户端打印响应。我只有用 ASP.NET 编写的入门书,需要 PHP 替代品:
function doXMLRequest(Xmltext)
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit sys_xmlservice, "", "", ""
oSOAP.ConnectorProperty("Timeout") = 600000
myXMLResponse = oSOAP.XMLReq(XmlText)
doXMLRequest=myXMLResponse
set oSOAP=nothing
end function
最佳答案
使用 SOAPClient 类
$client = new SoapClient();
$response = $client->SomeSOAPFunction($args);
SomeSOAPFunction
是函数的参数:
function xml($fct) {
$client = new SoapClient();
$response = $client->{$fct}($args);
}
关于ASP.NET 中 MSSOAP.SoapClient30 的 PHP 替代方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2957437/
有人可以帮助我 - 我需要一些提示或代码来连接到 wsdl 服务,发送 XML 请求,然后在客户端打印响应。我只有用 ASP.NET 编写的入门书,需要 PHP 替代品: function doXML
我是一名优秀的程序员,十分优秀!