Interrogare un servizio SOAP con Ruby, Python e PHP
Sempre in tema di SOAP, ho avuto la necessità di interrogare un server SOAP con Ruby,Python e PHP. In tutti e tre i casi la faccenda è stata piuttosto semplice, bastano 3/4 righe di codice. Vi propongo questo breve paragone.
RUBY
require ’soap/wsdlDriver’
@SOAPUrl = “http://HOST_URL/ws/ws208913.asmx?WSDL”
@service = SOAP::WSDLDriverFactory.new(@SOAPUrl).create_rpc_driver
@service.function2call(param1, param2)
PYTHON
from SOAPpy import WSDL
server = WSDL.Proxy(‘http://myurl/ws.asmx?WSDL’)
result = server.function2call(param1, [...]

