def _test():
    import os
    from os.path import abspath, dirname
    from suds.client import Client

    service = 'TestConnectionService'
    service_url = "https://bcssksz-services-test.smals.be:443/SOA4520/TestConnectionServiceService"
    #~ service = 'RetrieveTIGroupsV3'

    url = abspath(dirname(__file__)).replace(os.path.sep, "/")
    if not url.startswith('/'):
        # on a windows machine we need to prepend an additional "/"
        url = '/' + url

    url += '/XSD/%s.wsdl' % service
    url = 'file://' + url
    print "Instantiate Client at", url
    suds_options = dict()
    #~ suds_options.update(location="foo")
    client = Client(url, **suds_options)
    print client

    #~ print client.service.__class__
    #~ m = client.service.__class__.setlocation
    #~ m(client.service,service_url)
    #~ print client.service.__services[0].__class__
    client.service.__services[0].setlocation(service_url)

    #~ if True:
        #~ print client.wsdl
    if False:
        print "Sending request ..."
        result = client.service.sendTestMessage("hello cbss service")
        print "Full result:"
        print result

        print "Ticket ID:"
        print result.informationCBSS.ticketCBSS
dataset/ETHPy150Open lsaffre/lino/lino/utils/xmlgen/cbss/20120305.py/_test/original