vb6 调用 java webservice 错误之解决

webservice 是 Axis1.2.1

vb6中使用soap toolkit调用webservice

 

开始总是报错

 

解决方法:

修改

在服务端中server-config.wsdd<globalConfiguration>标签中

增加<parameter name="dotNetSoapEncFix" value="true"/>

 

vb客户端写法:

1.增加引用Microsoft Soap Type Library v3.0(先安装Soap Toolkit3.0)

2.程序

Dim wsClient As SoapClient30

Set wsClient = New SoapClient30

wsClient.MSSoapInit2 "http://127.0.0.1:7001/test?wsdl","","","",""

wsClient.Hello()

 

你可能感兴趣的:(webservice)