三、python webservice

#!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
import suds

url="http://172.17.2.199:8080/tdzz/FieldProtect.asmx?WSDL";

def WebService(ItemCode) :
  from suds import WebFault
  from suds.client import Client
  client = Client(url)
  print (client.service.GetItemData(ItemCode))

WebService("2101812015103");
input("")

  

posted @ 2016-01-06 14:51  王树羽  阅读(244)  评论(0编辑  收藏  举报