User Profile

Collapse

Profile Sidebar

Collapse
Magudamudi
Magudamudi
Last Activity: Nov 11 '11, 06:54 AM
Joined: Jun 29 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Magudamudi
    started a topic How to set proxy while using savon?
    in Ruby

    How to set proxy while using savon?

    Hi,
    While using http we can set the proxy like this
    Code:
    Net::HTTP::Proxy('10.199.99.99',3333,'username','password').start(url.host,url.port)
    When I'm trying to use Savon how to set the proxy?

    My code is
    Code:
     require 'savon'
        client = Savon::Client.new do |wsdl,http|
          wsdl.document = "http://www.webservicex.com/CurrencyConvertor.asmx?wsdl"
    ...
    See more | Go to post

  • Error on web service implementation in ruby on rails

    Hi,

    My code is
    Code:
        require 'soap/wsdlDriver'
        w = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"
        soap = SOAP::WSDLDriverFactory.new(w).create_rpc_driver
        result = soap.ConversionRate(:FromCurrency => "USD", :ToCurrency =>"CAD")
        puts result.conversionRateResult
    This shows the following error

    A...
    See more | Go to post

  • uninitialized constant HelloMessageController::HelloMessageApi

    Hi,
    I practice some examples but i couldn't run it well

    hello_message_c ontroller.rb:
    Code:
    class HelloMessageController < ApplicationController
       
      web_service_api HelloMessageApi
        wsdl_service_name 'hello_message'
            web_service_scaffold :invoke
    
      def hello_message(firstname, lastname)
        return "Hello" + firstname+" "+lastname
    ...
    See more | Go to post

  • Magudamudi
    started a topic How to render the (xml+xsl) file as xls file?
    in Ruby

    How to render the (xml+xsl) file as xls file?

    Hi,

    My aim is to create the Excel file which contains xml data and xsl style.Here is the code to apply the style in xml file.

    Code:
    stylesheet_doc = XML::Document.file("./public/upload/Reference_xslt.xsl")
    stylesheet = LibXSLT::XSLT::Stylesheet.new(stylesheet_doc)
    xml_doc = XML::Document.file("./public/upload/xml_data.xml")
    result = stylesheet.apply(xml_doc)
    ...
    See more | Go to post
No activity results to display
Show More
Working...