Testing public Weather API soap
keys = {
      "xmlns:soapenv" => "http://schemas.xmlsoap.org/soap/envelope/",
      "xmlns:weat" => "http://ws.cdyne.com/WeatherWS/",
  }
builder = Nokogiri::XML::Builder.new do |xml|
    xml['soapenv'].Envelope(keys) do
      xml['soapenv'].Header
      xml['soapenv'].Body {
        xml['weat'].GetCityForecastByZIP {
          xml['weat'].ZIP("#{address}")
        }
      }
end
  end
Written by Hamza Ismail Razzak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Tags 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
