pb11.5 web开发 webservice中使用byte[]参数

1、webservice中的函数

函数名:uf_bytearray

参数:ref byte abyte[]

函数内容:

int i
for i = 1 to 10
abyte[i] = 250+i
next
return 10

2、创建proxy,参考前的文章

3、调用

函数名:getbyte

函数内容:

byte lbyte[]
int i,count
blob lblob

lblob = blob(lbyte)

count = pb_soap.uf_bytearray(ref lblob)

lbyte=getbytearray(lblob)

for i=1 to count
messagebox("",string(lbyte[i]))
next
return 1

你可能感兴趣的:(webservice)