PB11调用WEBSERVICE报错?
SoapConnection i_conn
i_conn = create soapconnection
n_webservice myproxy
long ret
ret = i_Conn.CreateInstance(myproxy, "n_webservice","http://localhost/webservice/n_webservice.asmx?wsdl")
messagebox('b',string(ret)) //此处返回0
try
string ls_data
// ls_data = myproxy.of_getdata( )
ls_data = myproxy.classname()
messagebox('a',ls_data)
catch (SoapException e)
messagebox('a',e.getmessage())
end try
上面代码中,如果用ls_data = myproxy.classname()可以获取正确内容,但如果用ls_data = myproxy.of_getdata()系统则提示:
The soapclient doesn't support .net proxy
请高手帮解答一下,是哪里有问题?
如果在编译那里选择WSDL engine用easysoap却可以获取数据,用.net却不行,是什么原因,希望有人愿意帮一下我
[解决办法]
pb11就没有这么麻烦了,直接把web service作为数据窗口的数据源就可以了
[解决办法]
你应该用pbwsclient115.pbx或pbwsclient115.pbd而不是
pbsoapclient115.pbx或pbsoapclient115.pbd