大华DSS视频综合应用平台webservice接口使用手册-php测试用例

1.接口访问地址

http://ip:port/admin/services/AdminWebService?wsdl

2.通用jsonParam 及 返回值的定义

本系统只有一个通用接口函数,通过接口标识定义方法的功能。

String executeInterface(String interfaceId, String jsonParam);

查询类接口调用参数说明

 

参数名称

参数说明

备注信息

1

interfaceId 

接口标识

决定方法的类型

jsonParam

查询条件

Json方式分装的查询条件或待写入数据(例子参考如下)

{
    "param": {

    },
    "authorinize": {
        "loginIP": "10.34.2.98",
        "userName": "system",
        "password": "YWRtaW4xMjM"
    },
    "pagination": {
        "curretnPage": 1,
        "pageSize": 10     
    },
    "orders": [                 {
            "propertyName": "id",
            "ascending": "false" 
        },
        {
            "propertyName": "category",
            "ascending": "true"
        }
    ],
    "locale": "zh-CN"
}

3.PHP实现

  

 public $host = "服务器IP";

 public $webservice_port =80;

$client = new \SoapClient($this->host . ":" . $this->webservice_port . "/admin/services/AdminWebService?wsdl");

        $parmas = [

            'arg0' => "admin_001_006", //interfaceId 

            'arg1' => json_encode( //jsonParam

                [

                    'param' => [

                        "unitType" => 1,

                    ]

                ]

            ),

        ];

        $result = $client->__call('executeInterface', [$parmas]);

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值