Python- Suds.Client.Service issue, printing out identifier instead of method text
Hi there I'm fairly new to Python and to web services and I have started work trying to make use of web service methods within a WSDL through Python.  Now when I run the following code what I get returned is the value "<suds.client.Method instance at 0x02C7FC88>".  I'm aiming to get the return value of the GetMessage method instead (a simple Hello World) but instead get this identifier for the method.  Is there a way to get this return value?

    import logging
    import sys
    from suds.client import Client
    sys.setrecursionlimit(2000)
    url='http://localhost:50774/HostDevServer/HelloWorldService.svc?wsdl'
    client = Client(url)
    example = client.service.GetMessage
    print example

I have also tried the following code 

    import logging
    import sys
    from suds.client import Client
    sys.setrecursionlimit(2000)
    url='http://localhost:50774/HostDevServer/HelloWorldService.svc?wsdl'
    client = Client(url)
    example = client.service.GetMessage()
    print example

and this returns the following error message:

    No handlers could be found for logger "suds.client"

    Traceback (most recent call last):
      File "C:\Python27\exampleForSuds.py", line 7, in <module>
        example = client.service.GetMessage()
      File "build\bdist.win32\egg\suds\client.py", line 542, in __call__
        return client.invoke(args, kwargs)
      File "build\bdist.win32\egg\suds\client.py", line 602, in invoke
        result = self.send(soapenv)
      File "build\bdist.win32\egg\suds\client.py", line 649, in send
        result = self.failed(binding, e)
      File "build\bdist.win32\egg\suds\client.py", line 708, in failed
        raise Exception((status, reason))
    Exception: (415, u'Unsupported Media Type')

I can get around the first error noted of no handlers by adding:

    logging.getLogger('suds.client').setLevel(logging.CRITICAL)

But the rest of the error message will remain.  Is there something I'm missing out?  I've searched for hours now and can't really find much of anything that shows a similar problem.
Python- Suds.Client.Service issue, printing out identifier instead of method text
===

Hi there I'm fairly new to Python and to web services and I have started work trying to make use of web service methods within a WSDL through Python.  Now when I run the following code what I get returned is the value "<suds.client.Method instance at 0x02C7FC88>".  I'm aiming to get the return value of the GetMessage method instead (a simple Hello World) but instead get this identifier for the method.  Is there a way to get this return value?

    import logging
    import sys
    from suds.client import Client
    sys.setrecursionlimit(2000)
    url='http://localhost:50774/HostDevServer/HelloWorldService.svc?wsdl'
    client = Client(url)
    example = client.service.GetMessage
    print example

I have also tried the following code 

    import logging
    import sys
    from suds.client import Client
    sys.setrecursionlimit(2000)
    url='http://localhost:50774/HostDevServer/HelloWorldService.svc?wsdl'
    client = Client(url)
    example = client.service.GetMessage()
    print example

and this returns the following error message:

    No handlers could be found for logger "suds.client"

    Traceback (most recent call last):
      File "C:\Python27\exampleForSuds.py", line 7, in <module>
        example = client.service.GetMessage()
      File "build\bdist.win32\egg\suds\client.py", line 542, in __call__
        return client.invoke(args, kwargs)
      File "build\bdist.win32\egg\suds\client.py", line 602, in invoke
        result = self.send(soapenv)
      File "build\bdist.win32\egg\suds\client.py", line 649, in send
        result = self.failed(binding, e)
      File "build\bdist.win32\egg\suds\client.py", line 708, in failed
        raise Exception((status, reason))
    Exception: (415, u'Unsupported Media Type')

I can get around the first error noted of no handlers by adding:

    logging.getLogger('suds.client').setLevel(logging.CRITICAL)

But the rest of the error message will remain.  Is there something I'm missing out?  I've searched for hours now and can't really find much of anything that shows a similar problem.