Hello,
when defining the _in_message property of a service operation, the operation
cannot be called :
Consider the following server code:
from wsgiref.simple_server import make_server
from soaplib.core import Application
from soaplib.core.server import wsgi
from soaplib.core.model.primitive import String, Integer
from soaplib.core.service import DefinitionBase, soap
class BugService(DefinitionBase):
''' Sample service '''
@soap(Integer,
_public_name="urn:#getBugLabel",
_in_message="getBugLabelMsgIn",
_out_variable_names=("bugLabel",),
_returns=(String))
def getBugLabel(self, bugCode):
if bugCode == 0:
return 'not a bug'
else:
return 'evil bug'
if __name__ == '__main__':
soap_app = Application([BugService], 'http://example.com/bug',
name='BugService')
wsgi_app = wsgi.Application(soap_app)
server = make_server('localhost', 7789, wsgi_app)
server.serve_forever()
The produced WSDL
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap