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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pratibha.kachi@gmail.com

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

    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.SOAPProx y("http://localhost:8731/Design_Time_Add resses/WcfSe
    rviceLibrary1/Service1/WS")
    >>print server.GetData( 1)
    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'.>

Working...