Hello
I have to create a SOAP client (later also a service will be needed). It is
my first time so please bare with me on this one as I do not have a proper
understanding of this.
If I understand the whole process it is smth like this. I send a WSDL
request where URL contains "?wsdl". This way I can see all the methods
provided by the server. This is called GET.
Now after that i can get a definition of an xml "envelope" with which I
filter which results I want. I use POST method to call an URL - without
"?wdsl" send this to some method and it should return xml with data
provided?
Using app SOAPUI i get everything, but I find it impossible to get trough
with any python environment.
I would like to call method getEmployed. This is the envelope
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:cet="http://.dd";>
this way I should receive all the employees
my code
xml = ("""http://schemas.xmlsoap.org/soap/envelope/";
xmlns:cet="http://cetrtapot.si";>
""")
from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault
client = SoapClient (wsdl="https://www.xxx.yy/some/more/url?wsdl";,
location="https://www.xxx.yy";, cacert=None, trace=True)
print client.send('getEmployed',xml=xml)
response = client.getEmployed()
print response
I get either urllib2.URLError:
or error 405.
Any proper explanation and/or example would be good.
thank you
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.