最近偶多年前用powerbuilder做的系统需要与外部系统提供的“Web Services服务”接口,由于偶几年荒废度日,现在感觉力不从心、无从下手,所以上论坛求助各位达人,主要求助内容:在PB c/s架构下开发的系统如何调用Web Services服务及具体操作步骤。拜托,THANK U!
------解决方案--------------------
网上搜,有很多。。。
查PB 的帮助 索引createinstance
------解决方案--------------------
那用Microsoft.XMLHTTP组件
oleobject xmlhttp
int li_rtn
xmlhttp = create oleobject
li_rtn = xmlhttp.connectToNewObject("Microsoft.XMLHTTP")
//...
xmlhttp.Open("POST",ls_URL, false);
xmlhttp.SetRequestHeader ("Content-Type","text/xml; charset=utf-8");
//..继续设置
xmlhttp.Send(data);
string ls_text
ls_text = xmlhttp.responseText
xmlhttp.DisconnectObject ( )
------解决方案--------------------
那用Microsoft.XMLHTTP组件
oleobject xmlhttp
int li_rtn
xmlhttp = create oleobject
li_rtn = xmlhttp.connectToNewObject("Microsoft.XMLHTTP")
//...
xmlhttp.Open("POST",ls_URL, false);
xmlhttp.SetRequestHeader ("Content-Type","text/xml; charset=utf-8");
//..继续设置
xmlhttp.Send(data);
string ls_text
ls_text = xmlhttp.responseText
xmlhttp.DisconnectObject ( )
------解决方案--------------------
http://blog.csdn.net/caok/article/details/3240249