Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different namespace causes corrupt wsdl #216

Closed
ugurlu opened this issue Jan 14, 2013 · 1 comment
Closed

Different namespace causes corrupt wsdl #216

ugurlu opened this issue Jan 14, 2013 · 1 comment

Comments

@ugurlu
Copy link

ugurlu commented Jan 14, 2013

Different namespace for the SomeObject does not work. following patch fixes the example

--- a/helloworld_soap.py    2013-01-14 17:45:38.000000000 +0200
+++ b/helloworld_soap.py    2013-01-14 17:47:43.000000000 +0200
@@ -64,9 +64,10 @@ from spyne.model.primitive import Unicode

 from spyne.util.simple import wsgi_soap_application

+TNS = 'spyne.examples.hello.soap'

 class SomeObject(ComplexModel):
-    __namespace__ = 'aaa'
+    __namespace__ = TNS

     i = Integer
     s = Unicode
@@ -97,6 +98,6 @@ if __name__=='__main__':
     logging.info("listening to http://127.0.0.1:7789")
     logging.info("wsdl is at: http://localhost:7789/?wsdl")

-    wsgi_app = wsgi_soap_application([HelloWorldService], 'spyne.examples.hello.soap')
+    wsgi_app = wsgi_soap_application([HelloWorldService], TNS)
     server = make_server('127.0.0.1', 7789, wsgi_app)
     server.serve_forever()
@plq
Copy link
Member

plq commented Jan 14, 2013

While I'm not sure what you mean exactly by "does not work", I'll do better and remove SomeObject altogether :)

Yama icin tesekkur ederim.

@plq plq closed this as completed Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants