[web2py] SOAP & WSDL

2018-01-17 Thread 'FERNANDO VILLARROEL' via web2py-users
Hi all.
Excuse for some off topic.
I need to up a SOAP service so i think to use web2py.
I have wsdl file.
I use wsdl2interface for convert wsdl into Python clasesThis is my wsdl file:
 http://oap/ser - 
Pastebin.com

  
|  
|   
|   
|   ||

   |

  |
|  
|   |  
 http://oap/services/checkHolderBillingSynDonorRequestService.    """
    def checkHolderBillingSynDonorRequest(RequestMessageHeader, 
checkHolderBillingSynDonorRequestBody):        """Parameters:                
``RequestMessageHeader`` -- IRequestMessageHeader        
``checkHolderBillingSynDonorRequestBody`` -- 
ICheckHolderBillingSynDonorRequestBody                Returns: 
checkHolderBillingSynDonorResponse        """
I do not understand the difition of method checkHolderBillingSynDonorRequest
Whats parameter i must receive?The data received will be in xml?What i must 
return?

I have never used soap before.
i will appreciate any tips or help for resolv my problem
Regards

-- 
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.


[web2py] SOAP WSDL request strugle

2017-12-22 Thread Yebach
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.