PAVv3 RUBY

From CDYNE Wiki
Jump to: navigation, search

Verify Address

require 'net/http'
require 'uri'
require "rexml/document"
 
include REXML
 
puts URI.methods
url = URI.parse('http://pav3.cdyne.com/PavService.svc/VerifyAddress?"
&FirmOrRecipient=CDYNE Corporation
&PrimaryAddressLine=505 Independence Parkway
&SecondaryAddressLine=Suite 300
&Urbanization=
&CityName=Chesapeake
&State=Virginia
&ZipCode=23320
&LicenseKey= f01d89fd-5155-5455-5585-e84ab8de8591'
)
 
res = Net::HTTP.get_response(url)
data = res.body
 
souce = data
 
doc = Document.new(data)
doc.write(targetstr = "", 2)
 
puts targetstr
gets targetstr
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key