Home  >  Article  >  Backend Development  >  用PHP调用.net webservice 如何传参?

用PHP调用.net webservice 如何传参?

WBOY
WBOYOriginal
2016-06-06 20:32:431085browse

调用的function是DoCreditCardCharge,然后参数是bizbasecontract这个类型,这个bizbasecontract是一个基类,其他类都是继承这个类的,我需要用到的是payphonecardbywebsitecontract这个类,所以不知道怎么传参了

回复内容:

调用的function是DoCreditCardCharge,然后参数是bizbasecontract这个类型,这个bizbasecontract是一个基类,其他类都是继承这个类的,我需要用到的是payphonecardbywebsitecontract这个类,所以不知道怎么传参了

我们项目访问 .net webservice是用的 SOAP

有个SoapClient::__soapCall( string $function_name , array $arguments ) 第二个参数就是参数了

SOAP参考

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn