andreaval/bubble-soap 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andreaval/bubble-soap

最新稳定版本:1.0.5

Composer 安装命令:

composer require andreaval/bubble-soap

包简介

PHP Soap Client. Extends the SoapClient class adding new methods

README 文档

README

BubbleSOAP extends the PHP5 SoapClient class adding the following methods:

/**
 * Enables or disables tracing of request.
 * @param boolean $state (This defaults to TRUE)
 */
public function __enableTrace($state=TRUE)

/**
 * The array of SOAP function prototypes, detailing only the function name 
 * @return array Ordered array of functions names
 */
public function __getFunctionsNames()

/**
 * Gets the parameters of the specified function
 * @param string $method Function name
 * @return array Array of function parameters
 */
public function __getParams($method)

/**
 * Gets the return type of the specified function
 * @param string $method Function name
 * @return array Array of function parameters
 */
public function __getReturn($method)

/**
 * Gets the format of the data type specified
 * @param string $name Name of data type
 * @return mixed array (struct), empty string (null value), int, date
 */
public function __getType($name)

/**
 * Returns WSDL address
 * @return string
 */
public function __getWsdlUrl()

/**
 * Sets quickly SOAP header for subsequent calls
 * @param string $name Header tag name
 * @param string $content Header tag content
 * @param int $type The encoding ID, one of the XSD_... constants. 
 */
public function __setHeader($name,$content,$type=XSD_ANYXML)

Requirements

  • PHP >= 5.0.1
  • PHP compiled with SOAP support

Using

//constructor
$client = new BubbleSOAP('http://example.com/service.asmx?wsdl');
//enabled trace
$client->__enableTrace();
//print params
$params = $client->__getParams('methodName');
foreach($params as $param){
    echo $param.' - type:'.$client->__getType($param).'<br>';
}
//print return
echo $client->__getReturn('methodName');

统计信息

  • 总下载量: 55
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固