pb调用webservice中,不支持anyType,该怎么解决
1个回答
展开全部
1,pb安装路径下找到pbsoapclient90.pbd,加到程序中;
2,pb-->file--->new---->webservice Proxy Wizard
输入webservice wsdl url ,一般为 url?WSDL;
3,生成代理对象;
4,按例子调用;
soapConnection conn // Define SoapConnection
popservice1soap proxy_obj // Declare proxy
int rVal
string s
conn = create SoapConnection
rVal = Conn.CreateInstance(proxy_obj, "popservice1soap",)
try
s = proxy_obj.helloworld()
// Invoke service
messagebox("", s)
catch ( SoapException e )
messagebox ("ErrDAT* d or", "Cannot invoke Web service")
// error handling
end try
destroy conn
2,pb-->file--->new---->webservice Proxy Wizard
输入webservice wsdl url ,一般为 url?WSDL;
3,生成代理对象;
4,按例子调用;
soapConnection conn // Define SoapConnection
popservice1soap proxy_obj // Declare proxy
int rVal
string s
conn = create SoapConnection
rVal = Conn.CreateInstance(proxy_obj, "popservice1soap",)
try
s = proxy_obj.helloworld()
// Invoke service
messagebox("", s)
catch ( SoapException e )
messagebox ("ErrDAT* d or", "Cannot invoke Web service")
// error handling
end try
destroy conn
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询