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.
rviceLibrary1/Service1/WS")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\python25\li b\xmlrpclib.py" , line 1147, in __call__
return self.__send(sel f.__name, args)
File "C:\python25\li b\xmlrpclib.py" , line 1437, in __request
verbose=self.__ verbose
File "C:\python25\li b\xmlrpclib.py" , line 1191, in request
headers
xmlrpclib.Proto colError: <ProtocolErro r for localhost:8731/
Design_Time_Add resses
/WcfServiceLibra ry1/Service1/WS: 415 Cannot process the message
because the cont
ent type 'text/xml' was not the expected type 'application/soap+xml;
charset=utf
-8'.>
client but when I call it using python it gives http 415 error.
>>import SOAPpy
>>server = SOAPpy.SOAPProx y("http://localhost:8731/Design_Time_Add resses/WcfSe
>>server = SOAPpy.SOAPProx y("http://localhost:8731/Design_Time_Add resses/WcfSe
>>print server.GetData( 1)
File "<stdin>", line 1, in <module>
File "C:\python25\li b\xmlrpclib.py" , line 1147, in __call__
return self.__send(sel f.__name, args)
File "C:\python25\li b\xmlrpclib.py" , line 1437, in __request
verbose=self.__ verbose
File "C:\python25\li b\xmlrpclib.py" , line 1191, in request
headers
xmlrpclib.Proto colError: <ProtocolErro r for localhost:8731/
Design_Time_Add resses
/WcfServiceLibra ry1/Service1/WS: 415 Cannot process the message
because the cont
ent type 'text/xml' was not the expected type 'application/soap+xml;
charset=utf
-8'.>