Not able to successfully call a webservice created in c# in python.

pratibha.kachi at pratibha.kachi at
Mon Sep 15 13:19:49 CEST 2008

I have created a webservice in C# which I am able to call in win Form
client but when I call it using python it gives http 415 error.

>>> import SOAPpy
>>> server = SOAPpy.SOAPProxy("http://localhost:8731/Design_Time_Addresses/WcfSe
>>> print server.GetData(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python25\lib\", line 1147, in __call__
    return self.__send(self.__name, args)
  File "C:\python25\lib\", line 1437, in __request
  File "C:\python25\lib\", line 1191, in request
xmlrpclib.ProtocolError: <ProtocolError for localhost:8731/
/WcfServiceLibrary1/Service1/WS: 415 Cannot process the message
because the cont
ent type 'text/xml' was not the expected type 'application/soap+xml;

More information about the Python-list mailing list