简体   繁体   English

如何使用SOAP UI为SOAP生成客户端PHP代码?

[英]How to generate client PHP code for SOAP using SOAP UI?

Googling I've found this article: 谷歌搜索我发现这篇文章:

http://java.dzone.com/tips/generating-client-java-code http://java.dzone.com/tips/generating-client-java-code

It talk about how to generate a "JAVA" code with SOAP UI client, but what I need is to generate code php with soap UI or other resource. 它讨论了如何使用SOAP UI客户端生成“JAVA”代码,但我需要的是使用soap UI或其他资源生成代码php。

Is this possible? 这可能吗? exist any other resource to make it work that? 存在任何其他资源,使其工作吗?

thank you for your answers.. 谢谢您的回答..

Regards. 问候。

soapUI will not generate PHP code. soapUI不会生成PHP代码。

Fortunately, in PHP there often isn't a need to generate proxy classes. 幸运的是,在PHP中通常不需要生成代理类。 Instead, use SoapClient and simply call the SOAP methods you need outright. 相反,使用SoapClient并简单地调用您需要的SOAP方法。 You can find simple examples at various blogs . 您可以在各种 博客中找到简单的示例。

If the service with which you're interacting uses lots of complex types, then you may indeed want to auto-generate some PHP code and make use of SoapClient's classmap option. 如果您正在与之交互的服务使用许多复杂类型,那么您可能确实想要自动生成一些PHP代码并使用SoapClient的类映射选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM