简体   繁体   English

使用没有wsdl的SOAP? php5

[英]using SOAP without a wsdl? php5

It appears i dont have a wsdl file but many xsd files. 看来我没有wsdl文件,但有许多xsd文件。 Can i do anything with SOAP or is a wsdl file required? 我可以用SOAP做任何事情,还是需要wsdl文件?

The SoapClient class in PHP5 offers a non-wsdl mode according to this documentation , but I've never used it. 根据本文档 ,PHP5中的SoapClient类提供了非wsdl模式,但我从未使用过。 It appears to be possible, though. 不过,似乎有可能。

In general, you can talk SOAP without a WSDL file, or even any xsd files, if you know all of the data types and function endpoints already. 通常,如果您已经知道所有数据类型和函数端点,则可以不使用WSDL文件甚至任何xsd文件来进行SOAP交谈。

If you have the XSD files, but are missing the WSDL file, you will need to find out the message names, their parameters, return values, and possible exceptions (faults). 如果您具有XSD文件,但缺少WSDL文件,则需要找出消息名称,它们的参数,返回值以及可能的异常(故障)。 You will also, most importantly, need to find out the service port (URL) to connect to. 最重要的是,您还需要找出要连接的服务端口(URL)。

If you have all of that, you should be able to talk SOAP to the web service. 如果拥有所有这些,那么您应该能够将SOAP与Web服务对话。

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

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