Fix the demo so that we can use the soap client again, and changed the function names in the client (the soap function naming scheme just changed)
This commit is contained in:
parent
d04f10c835
commit
8d376b1574
@ -1,14 +1,14 @@
|
||||
from suds.client import Client
|
||||
|
||||
url = 'http://127.0.0.1:8989/api.wsdl'
|
||||
url = 'http://127.0.0.1:8080/ws/api.wsdl'
|
||||
|
||||
client = Client(url, cache=None)
|
||||
|
||||
print client
|
||||
|
||||
print client.service.Multiply(4, 5)
|
||||
print client.service.Helloworld()
|
||||
print client.service.Getperson()
|
||||
p = client.service.Listpersons()
|
||||
p = client.service.Setpersons(p)
|
||||
print client.service.multiply(4, 5)
|
||||
print client.service.helloworld()
|
||||
print client.service.getperson()
|
||||
p = client.service.listpersons()
|
||||
p = client.service.setpersons(p)
|
||||
print p
|
||||
|
@ -80,7 +80,7 @@ root = DemoRoot(webpath='/ws')
|
||||
root.addprotocol('soap',
|
||||
tns='http://example.com/demo',
|
||||
typenamespace='http://example.com/demo/types',
|
||||
baseURL='http://127.0.0.1:8989/ws/',
|
||||
baseURL='http://127.0.0.1:8080/ws/',
|
||||
)
|
||||
|
||||
root.addprotocol('restjson')
|
||||
|
Loading…
x
Reference in New Issue
Block a user