nuSOAP静态类方法命名
我正在尝试让 nuSOAP
库公开一个名称不同的 SOAP 方法。现在我正在做:
$server->register('receiveResponseXML');
function receiveResponseXML () ...
这有效并且我目前正在使用它,但是很难组织,如果我有方法名称冲突,我没有办法解决它。我如何声明一个 static
方法,但将其公开为上面的名称?像这样的事情:
$server->register('receiveResponseXML', array('MyClass', 'theStaticMethod'));
class MyClass {
public static function theStaticMethod() ...
此外,如果有人知道合法的 nuSOAP 参考资料,我将非常感激。目前我必须阅读源代码。
I'm trying to get the nuSOAP
library to expose a SOAP method that isn't named the same. Right now I am doing:
$server->register('receiveResponseXML');
function receiveResponseXML () ...
This works and I'm using it currently, but it's hard to organize and if I have a method name conflict I don't have a way to resolve it. How would I declare a static
method but expose it named as above? Something like this:
$server->register('receiveResponseXML', array('MyClass', 'theStaticMethod'));
class MyClass {
public static function theStaticMethod() ...
Also if anyone knows a legit nuSOAP reference I would much appreciate. Currently I have to read source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据寄存器功能的文档:
因此它是:
According to the documentation for the register function:
so it would be: