时间:2021-07-01 10:21:17 帮助过:4人阅读
soap要求参数格式
string
string
string
string
实际PHP需要这样实现:
array (
'filedlit' => array (
'keyvalue' => array (
'key' => 'a1sd',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as2d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as3d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as4d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'asd',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'asd',
'value' => 'asd'
)
)
);
当然我也构建了 obj版
array('listfiled'=>array (
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' )
));
obj版本服务器无法识别,求解
在实现某个soap的时候遇到了点麻烦,实在无解,求问:
soap要求参数格式
string
string
string
string
实际PHP需要这样实现:
array (
'filedlit' => array (
'keyvalue' => array (
'key' => 'a1sd',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as2d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as3d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'as4d',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'asd',
'value' => 'asd'
),
'keyvalue' => array (
'key' => 'asd',
'value' => 'asd'
)
)
);
当然我也构建了 obj版
array('listfiled'=>array (
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' ),
new KeyValue ( 'asd', 'ccccc' )
));
obj版本服务器无法识别,求解
生成xml格式