承接 osucomm/ws-soap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

osucomm/ws-soap

最新稳定版本:0.1.1

Composer 安装命令:

composer require osucomm/ws-soap

包简介

Extends the PHP SOAP client to add basic WSSE support

README 文档

README

Extends the PHP SOAP client to add basic WSSE support. The library makes as few modifications to the base SOAP client class as possible and attempts to make authenticating to a service as easy as possible.

Only a subset of the web services security standard is implemented. Specifically, unencrypted plain text password authentication.

Installation

You can add the library to your project using Composer or by manually including the necessary files.

Composer

First, if you haven't already installed Composer, install it with

$ cd my-awesome-project $ curl -sS https://getcomposer.org/installer | php 

Then create a composer.json file with the following contents:

{ "require": { "osucomm/ws-soap": "~0.1" } } 

And install the libarary:

$ php composer.phar install 

Finally, you'll need to include Composer's autoloader somewhere in your project:

require 'vendor/autoload.php'; 

If you prefer to use an autoloader other than Composer, note that WsSoap is PSR-4 compliant.

Include Manually

Download or clone the library to a directory within your project and include
src/Client.php somehwere in your project.

require '/path/to/WsSoap/src/Client.php'; 

Use

Creating a WSSE SOAP client is as simple as

$wsdl = "https://example.com/MY_WSDL.wsdl"; $username = 'USER'; $password = 'PASS'; $client = new WsSoap\Client($wsdl, array( 'wsUsername' => $username, 'wsPassword' => $password, )); 

In addition to the required wsUsername and wsPassword keys, the constructor options are identical to the native PHP SoapClient.

Once the client is instantiated, it can be used in exactly the same way as SoapClient.

统计信息

  • 总下载量: 94.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固