浏览器中的 SOAP URL
当您在浏览器中输入肥皂服务器网址时,通常会产生空白页面。但如果我没记错的话我在某个地方看到过类似的东西
您好,这是我们的肥皂服务。为了 文档请点击此链接。 要获得帐户,请按照此操作 关联。废话。
我怎样才能做到这一点? (使用 PHP SoapServer,如果重要的话)。
我确实尝试只打印soap-server-handling php代码底部的所有内容,但在这种情况下,当从正确的soap客户端调用时,soap服务器不起作用。
When you enter soap servers url in browser, normally it produces blank page. But if memory serves me I saw somewhere something like
Hello, this is our soap service. For
documentation please follow this link.
To get an account, please follow this
link. Blahblah.
How can I do that? (Using PHP SoapServer, if that matters).
I did try to just print everything at the bottom of soap-server-handling php code but in that case soap server doesnt work when called from proper soap client.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看到的示例可能是检查标题中的一项或多项内容并根据所看到的内容采取行动。例如,它可以检查
等等。
要在 PHP 中执行此操作,您需要在 SoapServer 获取请求之前运行检查。您可以通过检查 $SERVER 来访问标头值。大多数都以 HTTP 开头。刚开始
The example you saw doing that was probably checking for one or more things in the headers and acting upon what it saw. For example, it could inspect
etc, etc, etc.
For you to do this in PHP, you will need your check to be run before your SoapServer gets the request. You can access the header values by inspecting $SERVER. Most of them will start with HTTP. To get started just
您想要做的是查看 WSDL(Web 服务描述语言)。 .NET 等语言可以为您生成它们。
What you want to do is look into WSDL (Web Service Description Language). Languages like .NET produce them for you.