VBA调用WCF的MEX如何设置maxArrayLength等参数

beargo 2010-10-22 05:15:08

mexMonikerString = "service:mexAddress='http://127.0.0.1:8889/Service.svc/mex'"
mexMonikerString = mexMonikerString + ", address='http://127.0.0.1:8889/Service.svc'"
mexMonikerString = mexMonikerString + ",binding=WSHttpBinding_IService, bindingNamespace='http://tempuri.org/'"
mexMonikerString = mexMonikerString + ", contract=IService, contractNamespace='http://tempuri.org/'"
' Create the service moniker object
Set mexServiceMoniker = GetObject(mexMonikerString)

基本调用如上.但是当返回值byte[]长度超出1600多(默认值)时就报错...如果在这上面加上它的最大值参数设置..有做过相关的支个招吧.谢过!!
...全文
199 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
beargo 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 11 楼 beargo 的回复:]
引用 10 楼 hujiao199 的回复:
同问。帮顶。

胡兄!看来咱这问题挺麻烦啊!!!
[/Quote]
我顶!!!
beargo 2010-11-04
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 hujiao199 的回复:]
同问。帮顶。
[/Quote]
胡兄!看来咱这问题挺麻烦啊!!!
beargo 2010-11-02
  • 打赏
  • 举报
回复
顶顶顶顶顶顶顶顶顶顶
beargo 2010-11-01
  • 打赏
  • 举报
回复
顶顶顶顶顶顶顶顶顶顶
beargo 2010-10-28
  • 打赏
  • 举报
回复
这就够了。。。下面是执行加上接口方法就行了。这里不是讨论这个问题。。是如何在mexMonikerString 字串加上设置MAXArrayLength的属性参数。。。。
beargo 2010-10-28
  • 打赏
  • 举报
回复
没有做过啊。咋就这么沉了~~!
deyygywxf 2010-10-28
  • 打赏
  • 举报
回复
怎么半截???

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧