2009-02-13 2 views

Répondre

4
#use .wsdl file to initialize an RPC driver 
driver = SOAP::WSDLDriverFactory.new('dotnetwebservice.wsdl').create_rpc_driver 

#useful debugging call 
driver.wiredump_dev = STDERR 

#Set the enconding style to ASP.NET 
driver.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace 

#call method defined in .wsdl 
result = driver.serviceMethod() 

Pour plus d'informations: http://dev.ctor.org/soap4r

0

Bon point de départ dans ce fil Ruby communication SOAP client avec webservice Microsoft .NET

here