- 浏览: 16404 次
- 性别:
- 来自: 北京
最新评论
文章列表
最简单的webservice调用
- 博客分类:
- Java相关
折腾半天,还是xfire的最简单
Client client = new Client(new URL(
"http://testws.com/testWs?wsdl"));
Object[] results = client
.invoke("testMethod", new Object[] {"p1","p2","p3"});
System.out.println(r ...
网上看了好多,感觉还是用urllib2最简单
import urllib,urllib2
def doPost(self,data1,data2):
data = urllib.urlencode({'data1':data1,'data2':data2})
request = urllib2.Request('http://www.xxx.com/test',data)
response = urllib2.urlopen(request)
file = response.read()
if response.code != 200 ...
wordapp = win32com.client.gencache.EnsureDispatch("Word.Application")
try:
wordapp.Documents.Open('11.doc')
wordapp.ActiveDocument.SaveAs('11.html', FileFormat=win32com.client.constants.wdFormatFilteredHTML)
wordapp.ActiveDocument.Cl ...