Пример #1
0
def ex2():
    service = 'http://chennaiemergency.co.in/sree/s2.php'
    #namespace = 'urn:ChnEmergency'
    #chennai_emergency = SOAPProxy(service, namespace)
    chennai_emergency = SOAPProxy(service)
    latitude = floatType(11)
    longitude = floatType(12.1)
    print 'Police: '
    print chennai_emergency.police(latitude, longitude)
    print '\nFire:'
    print chennai_emergency.fire(latitude, longitude)
    print '\nHospital:'
    print chennai_emergency.hospital(latitude, longitude)
Пример #2
0
def ex4():
    wsdl_file = 'http://chennaiemergency.co.in/sree/s2.php?wsdl'
    server = WSDL.Proxy(wsdl_file)
    latitude = floatType(11)
    longitude = floatType(12.1)
    print server.police(latitude, longitude)