【问题标题】:Calling MS .Net Webservices with Ruby使用 Ruby 调用 MS .Net Web 服务
【发布时间】:2009-02-13 14:16:54
【问题描述】:

有人做过这个/有一些示例代码吗?

【问题讨论】:

    标签: .net ruby web-services


    【解决方案1】:
    #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()
    

    欲了解更多信息:http://dev.ctor.org/soap4r

    【讨论】:

      【解决方案2】:

      显然 Ruby 有一个内置的wsdl driver

      【讨论】:

        【解决方案3】:

        本主题的良好起点Ruby SOAP 客户端与 Microsoft .NET 网络服务的通信

        here

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2010-10-19
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多