CDYNE XML Web Services

Contact CDYNE
   
Phone Notify! API'sSMS Notify! API'sData Quality APIsAPI PricingDevelopersCompany
Products
 
 

Code Samples

Easily get started with CDYNE Communication and Data Quality APIs.

Sign up for a trial key with free testing, or open up a full access account to get your Web Service key today.

Code samples for each API are available below to help get you started.


Test

Call any phone number in the U.S. & Canada and read the TextToSay to that phone number.

C#

                                         //http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl added as Web Reference. "WSDL".

                                        WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
                                        WSDL.NotifyReturn NR = new WSDL.NotifyReturn();

                                        //NR = PN.NotifyPhoneBasic("RECIPIENT NUMBER", "TEXT TO SAY", "CALLER ID NUMBER", "CALLER ID NAME", "VOICE ID", "YOUR LICENSE KEY");
                                        NR = PN.NotifyPhoneBasic("17575449510", "Hello, this is a test message.", "18009843710", "Test Call", "2", "YOUR LICENSE KEY");

                                        Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
                                                        "Response Code: " + NR.ResponseCode + "\n" +
                                                        "Response Text: " + NR.ResponseText);
                                        Console.ReadLine();
                                    

VB.NET

                                        'http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl added as Web Reference. "WSDL".

                                        WSDL.PhoneNotify PN = new WSDL.PhoneNotify()
                                        WSDL.NotifyReturn NR = new WSDL.NotifyReturn()

                                        'NR = PN.NotifyPhoneBasic("RECIPIENT NUMBER", "TEXT TO SAY", "CALLER ID NUMBER", "CALLER ID NAME", "VOICE ID", "YOUR LICENSE KEY")
                                        NR = PN.NotifyPhoneBasic("17575449510", "Hello, this is a test message.", "18009843710", "Test Call", "2", "YOUR LICENSE KEY")

                                        Console.WriteLine("QueueID: " & NR.QueueID & Environment.NewLine &
                                                        "Response Code: " & NR.ResponseCode & Environment.NewLine &
                                                        "Response Text: " & NR.ResponseText)
                                        Console.ReadLine()
                                    

VBscript

                                        Dim request, oXMLHttp, url

                                        url = "http://ws.cdyne.com/NotifyWS/PhoneNotify.asmx"

                                        request = "<?xml version='1.0' encoding='utf-8'?>" & _
                                        "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
                                        "<soap:Body>" & _
                                        "<NotifyPhoneBasic xmlns=""http://ws.cdyne.com/NotifyWS/"">" & _
                                        "<PhoneNumberToDial>17575449510" & _
                                        "<CallerID>18009843710</CallerID>" & _
                                        "<CallerIDname>Test</CallerIDname>" & _
                                        "<VoiceID>1</VoiceID>" & _
                                        "<TextToSay>Hello this is a test notification.</TextToSay>" & _
                                        "<LicenseKey>YOUR LICENSE KEY<</LicenseKey>" & _
                                        "</NotifyPhoneBasic>" & _
                                        "</soap:Body>" & _
                                        "</soap:Envelope>"

                                        Set oXMLHttp = CreateObject("MSXML2.ServerXMLHTTP")
                                        oXMLHttp.open "POST", url, False
                                        oXMLHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
                                        oXMLHttp.send request
                                        response = oXMLHttp.responseText

                                        MsgBox oXMLHTTP.responseText
                                    

PHP

                                        <?php
                                        $client = new SoapClient('http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl');
                                        $param = array(
                                        'PhoneNumberToDial' => '1755449510',
                                        'TextToSay' => 'This is a test',
                                        'CallerID' => '18009843710',
                                        'CallerIDname' => 'CDYNE Test',
                                        'VoiceID' => 1,
                                        'LicenseKey' => 'YOUR LICENSE KEY'
                                        );
                                        $result = $client->NotifyPhoneBasic($param);
                                        print_r ($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class NotifyPhoneBasic{     
	                                        public static void main(String[] args) { 	

                                                   try{		
                                                    URL url = new URL("http://ws.cdyne.com/NotifyWS/PhoneNotify.asmx/NotifyPhoneBasic?"
                                                            + "PhoneNumberToDial=15557579510"
                                                            + "&TextToSay=JAVA+phone+notify+test."
                                                            + "&CallerID=17575449510"
                                                            + "&CallerIDname=Test+Call"
                                                            + "&VoiceID=1"
                                                            + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
            
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Send a single, immediate text message from your website or application.

C#

                                        //http://sms2.cdyne.com/sms.svc?wsdl added as Service Reference, "WSDL".

                                        IsmsClient client = new IsmsClient("sms2wsHttpBinding");

                                        SMSResponse resp = client.SimpleSMSsend("RECIPIENT PHONE NUMBER", "MESSAGE CONTENT", new Guid("YOUR LICENSE KEY"));
                                        SMSResponse resp = client.SimpleSMSsend("17575449510", "CDYNE Test Message", new Guid("YOUR LICENSE KEY")); //SINGLE LINE MESSAGE
                                        SMSResponse resp = client.SimpleSMSsend("17575449510", "CDYNE Test Message" + "\n" + "SMS Notify" + "\n" + "New Line Test", new Guid("YOUR LICENSE KEY")); //MULTI-LINE MESSAGE

                                        Console.WriteLine("MessageID: " + resp.MessageID + "\n" + 
		                                                "Error: " + resp.SMSError);
                                        Console.ReadLine();
                                        client.Close();
                                    

VB.NET

                                        'http://sms2.cdyne.com/sms.svc?wsdl added as Service Reference, "WSDL".

                                        Dim client As WSDL.IsmsClient = New WSDL.IsmsClient("sms2wsHttpBinding")

                                        'Dim resp As WSDL.SMSResponse =  client.SimpleSMSsend("RECIPIENT PHONE NUMBER", "MESSAGE CONTENT", new Guid("YOUR LICENSE KEY"))
                                        Dim resp As WSDL.SMSResponse = client.SimpleSMSsend("17575449510", "CDYNE Test Message", new Guid("YOUR LICENSE KEY")) 'SINGLE LINE MESSAGE
                                        'Dim resp As WSDL.SMSResponse = client.SimpleSMSsend("17575449510", "CDYNE Test Message" + Environment.NewLine + "SMS Notify" + "\n" + "New Line Test", new Guid("YOUR LICENSE KEY")) 'MULTI-LINE MESSAGE

                                        Console.WriteLine("MessageID: " & Convert.ToString(resp.MessageID) & Environment.NewLine &
                                                        "Error: " & resp.SMSError)
                                        Console.ReadLine()
                                        client.Close()
                                    

VBscript

                                        Dim oXMLHTTP

                                        Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
                                        Set oDoc = CreateObject("MSXML2.DOMDocument")

                                        'Call oXMLHttp.Open("GET", "http://sms2.cdyne.com/sms.svc/SimpleSMSSend?PhoneNumber=RECIPIENT NUMBER&Message=MESSAGE CONTENT&LicenseKey=YOUR LICENSE KEY", False)
                                        Call oXMLHttp.Open("GET", "http://sms2.cdyne.com/sms.svc/SimpleSMSSend?PhoneNumber=17575449510&Message=CDYNE%20test%20message&LicenseKey=YOUR LICENSE KEY", False)

                                        Call oXMLHttp.setRequestHeader("Content-Type", "text/xml")
                                        Call oXMLHttp.send

                                        MsgBox oXMLHTTP.responseText
                                    

PHP

                                        <?php
                                        $client = new SoapClient('http://sms2.cdyne.com/sms.svc?wsdl'); 
                                        $param = array(
	                                        'PhoneNumber' => '17575449510',
	                                        'LicenseKey' => 'YOUR LICENSE KEY',
	                                        'Message' => 'CDYNE SimpleSMSSend Test Message'
                                        ); 
                                        $result = $client->SimpleSMSsend($param);
                                        print_r($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class SMS{     
	                                        public static void main(String[] args) { 	

                                                   try{		
                                                    URL url = new URL("http://sms2.cdyne.com/sms.svc/SimpleSMSSend?"
                                                            + "PhoneNumber=17575449510"
                                                            + "&Message=JAVA+Test+Message"
                                                            + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
            
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Standarize, Correct and Validate U.S. & Canadian addresses in one step.

C#

                                        //http://pav3.cdyne.com/PavService.svc?wsdl added as Service Reference "WSDL".

                                        WSDL.PavServiceClient PSC = new WSDL.PavServiceClient("pavsoap");
                                        WSDL.Address Res = new WSDL.Address();

                                        //Res = PSC.VerifyAddress("ORGANIZATION/COMPANY NAME", "PRIMARY ADDRESS LINE", "SECONDARY ADDRESS LINE", "URBANIZATION", "CITY", "STATE", "ZIP CODE", "YOUR LICENSE KEY");
                                        Res = PSC.VerifyAddress("CDYNE Corporation", "2125 Smith Avenue", "Suite 300", "", "Chesapeake", "Virginia", "23320", "YOUR LICENSE KEY");

                                        Console.WriteLine(
                                                        "Return Code: " + Res.ReturnCode + "\n" +
                                                        Res.FirmNameOrRecipient + "\n" +
                                                        Res.PrimaryAddressLine + "\n" +
                                                        Res.CityName + ", " + Res.StateAbbreviation + "  " + Res.ZipCode + "\n" +
                                                        Res.Country + "\n" + 
                                                        "County: " + Res.County + "\n" +
                                                        "Urbanization: " + Res.Urbanization);
                                        Console.ReadLine();
                                    

VB.NET

                                        'http://pav3.cdyne.com/PavService.svc?wsdl added as Service Reference "WSDL".

                                        Dim PSC As New PavServiceClient("pavsoap")
                                        Dim PavAdd As New Address()

                                        'PavAdd = PSC.VerifyAddress("ORGANIZATION/COMPANY NAME", "PRIMARY ADDRESS LINE", "SECONDARY ADDRESS LINE", "URBANIZATION", "CITY", "STATE", "ZIP CODE", "YOUR LICENSE KEY")
                                        PavAdd = PSC.VerifyAddress("CDYNE Corporation", "2125 Smith Avenue", "Suite 300", "", "Chesapeake", "Virginia", "23320", "82808e74-2793-4a54-acff-7a352d52e306")

                                        Console.WriteLine(
                                                "Return Code: " & PavAdd.ReturnCode & Environment.NewLine &
                                                PavAdd.FirmNameOrRecipient & Environment.NewLine &
                                                PavAdd.PrimaryAddressLine & Environment.NewLine &
                                                PavAdd.CityName & ", " & PavAdd.StateAbbreviation + "  " + PavAdd.ZipCode + Environment.NewLine +
                                                PavAdd.Country & Environment.NewLine &
                                                "County: " & PavAdd.County & Environment.NewLine &
                                                "Urbanization: " & PavAdd.Urbanization)
                                        Console.ReadLine()
                                    

VBscript

                                        Dim oXMLHTTP

                                        Set oXMLHttp = CreateObject("Microsoft.XMLHTTP")
                                        Set oDoc = CreateObject("MSXML2.DOMDocument")
     
                                        'Call oXMLHttp.Open("GET", "http://pav3.cdyne.com/PavService.svc/VerifyAddress?FirmOrRecipient=ORGANIZATION/COMPANYNAME&PrimaryAddressLine=PRIMARY ADDRESS LINE&SecondaryAddressLine=SECONDARY ADDRESS LINE&Urbanization=URBANIZATION&CityName=CITY&State=STATE&ZipCode=ZIP CODE&LicenseKey=YOUR LICENSE KEY", False)
                                        Call oXMLHttp.Open("GET", "http://pav3.cdyne.com/PavService.svc/VerifyAddress?FirmOrRecipient=CDYNE%20Corporation&PrimaryAddressLine=2125%20Smith%20Avenue&SecondaryAddressLine=Suite%20300&Urbanization=&CityName=Chesapeake&State=VA&ZipCode=23320&LicenseKey=YOUR LICENSE KEY", False)

                                        Call oXMLHttp.setRequestHeader("Content-Type", "text/xml")
                                        Call oXMLHTTP.send

                                        MsgBox oXMLHTTP.responseText
                                    

PHP

                                        <?php
                                        $client = new SoapClient('http://pav3.cdyne.com/PavService.svc?wsdl'); 
                                        $param = array( 
                                        'FirmOrRecipient' => 'CDYNE Corporation' ,
                                        'PrimaryAddressLine' => '2125 Smith Ave' ,
                                        'SecondaryAddressLine' => '' ,
                                        'Urbanization' => '' ,
                                        'CityName' => 'Chesapeake' ,
                                        'State' => 'VA' ,
                                        'ZipCode' => '' ,
                                        'LicenseKey' => 'YOUR LICENSE KEY' 
                                        );
                                        $result = $client->VerifyAddress($param); 
                                        print_r($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class VerifyAddress{     
                                        public static void main(String[] args) { 	
                                                    try{		
                                                    URL url = new URL("http://pav3.cdyne.com/PavService.svc/VerifyAddress?"
                                                           + "FirmOrRecipient=Cdyne+Corporation"
                                                           + "&PrimaryAddressLine=2125+Smith+Ave"
                                                           + "&SecondaryAddressLine="
                                                           + "&Urbanization="
                                                           + "&CityName=Chesapeake"
                                                           + "&State=VA&"
                                                           + "ZipCode=23320"
                                                           + "&LicenseKey=YOUR LICENSE KEY");		
                                        try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                }     
                                            }     
                                        private static void printResult(Source source) {        
                                                            try {            
                                                            ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                            StreamResult sr = new StreamResult(bos);
                                                            Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                            Properties oprops = new Properties();
                                                            oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                            trans.setOutputProperties(oprops);
                                                            trans.transform(source, sr);            
                                                            System.out.println("**** Response ******");            
                                                            System.out.println(bos.toString());   

                                                            bos.close();
                                                            System.out.println();        
                                                    } catch (Exception e) {            
                                                            }    
                                                    }
                                            }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Verify a phone number that provides additional information.

C#

                                        //http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl added as Web Reference, "WSDL".

                                        WSDL.PhoneVerify PV = new WSDL.PhoneVerify();
                                        WSDL.PhoneReturn PR = new WSDL.PhoneReturn();

                                        //PR = PV.CheckPhoneNumber("PHONE NUMBER YOU WOULD LIKE TO CHECK", "YOUR LICENSE KEY");
                                        PR = PV.CheckPhoneNumber("17575449510", "YOUR LICENSE KEY");

                                        Console.WriteLine("Company: " + PR.Company + "\n" +
           	                                        "Valid: " + PR.Valid + "\n" +
          	                                        "Use: " + PR.Use + "\n" +
          	                                        "State: " + PR.State + "\n" +
          	                                        "Switch: " + PR.Switch + "\n" +
          	                                        "RC: " + PR.RC + "\n" +		                                            		                                            
           	                                        "Original Number: " + PR.OriginalNumber + "\n" +
           	                                        "Clean Number: " + PR.CleanNumber + "\n" +
           	                                        "Switch Name: " + PR.SwitchName + "\n" +           	                                        
           	                                        "Switch Type: " + PR.SwitchType + "\n" +
           	                                        "Country: " + PR.Country + "\n" +
           	                                        "CLLI: " + PR.CLLI + "\n" +
           	                                        "Prefix Type: " + PR.PrefixType + "\n" +
           	                                        "LATA: " + PR.LATA + "\n" +
           	                                        "SMS: " + PR.SMS + "\n" +
           	                                        "Email: " + PR.Email + "\n" +
           	                                        "Date Assigned: " + PR.AssignDate + "\n" +
           	                                        "Telecom City: " + PR.TelecomCity + "\n" +
           	                                        "Telecom County: " + PR.TelecomCounty + "\n" +
           	                                        "Telecom State: " + PR.TelecomState + "\n" +
           	                                        "Telecom Zip: " + PR.TelecomZip + "\n" +
           	                                        "Time Zone: " + PR.TimeZone + "\n" +
           	                                        "Latitude: " + PR.Lat + "\n" +
           	                                        "Longitude: " + PR.Long + "\n" +
           	                                        "Wireless: " + PR.Wireless);
                                        Console.ReadLine();
                                    

VB.NET

                                        'http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl added as Web Reference, "WSDL".

                                        Dim PV As New PhoneVerify()
                                        Dim PR As New PhoneReturn()

                                        'PR = PV.CheckPhoneNumber("PHONE NUMBER YOU WOULD LIKE TO CHECK", "YOUR LICENSE KEY")
                                        PR = PV.CheckPhoneNumber("17575449510", "YOUR LICENSE KEY")

                                        Console.WriteLine("Company: " & Environment.NewLine &
                                                        "Valid: " & PR.Valid & Environment.NewLine &
                                                        "Use: " & PR.Use & Environment.NewLine &
                                                        "State: " & PR.State & Environment.NewLine &
            	                                        "Switch: " & PR.Switch & Environment.NewLine &
            	                                        "RC: " & PR.RC & Environment.NewLine &
                                                        "OCN: " & PR.OCN & Environment.NewLine &
            	                                        "Original Number: " & PR.OriginalNumber & Environment.NewLine &
            	                                        "Clean Number: " & PR.CleanNumber & Environment.NewLine &
            	                                        "Switch Name: " & PR.SwitchName & Environment.NewLine &
                                                        "Switch Type: " & PR.SwitchType & Environment.NewLine &
            	                                        "Country: " & PR.Country & Environment.NewLine &
            	                                        "CLLI: " & PR.CLLI & Environment.NewLine &
            	                                        "Prefix Type: " & PR.PrefixType & Environment.NewLine &
                                                        "LATA: " & PR.LATA & Environment.NewLine &
            	                                        "SMS: " & PR.sms & Environment.NewLine &
            	                                        "Email: " & PR.Email & Environment.NewLine &
            	                                        "Date Assigned: " & PR.AssignDate & Environment.NewLine &
            	                                        "Telecom City: " & PR.TelecomCity & Environment.NewLine &
            	                                        "Telecom County: " & PR.TelecomCounty & Environment.NewLine &
            	                                        "Telecom State: " & PR.TelecomState & Environment.NewLine &
            	                                        "Telecom Zip: " & PR.TelecomZip & Environment.NewLine &
            	                                        "Time Zone: " & PR.TimeZone & Environment.NewLine &
            	                                        "Latitude: " & PR.Lat & Environment.NewLine &
            	                                        "Longitude: " & PR.Long & Environment.NewLine &
                                                        "Wireless: " & PR.Wireless)
                                        Console.ReadLine()
                                    

VBscript

                                        Dim request, oXMLHttp, url

                                        url = "http://ws.cdyne.com/phoneverify/phoneverify.asmx"

                                        request = "<?xml version='1.0' encoding='utf-8'?>" & _
                                        "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
                                        "<soap:Body>" & _
                                        "<CheckPhoneNumber xmlns=""http://ws.cdyne.com/PhoneVerify/query"">" & _
                                        "<PhoneNumber>17575449510</PhoneNumber>" & _
                                        "<LicenseKey>YOUR LICENSE KEY</LicenseKey>" & _
                                        "</CheckPhoneNumber>" & _
                                        "</soap:Body>" & _
                                        "</soap:Envelope>"

                                        Set oXMLHttp = CreateObject("MSXML2.ServerXMLHTTP")
                                        oXMLHttp.open "POST", url, False
                                        oXMLHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
                                        oXMLHttp.send request
                                        response = oXMLHttp.responseText

                                        MsgBox oXMLHttp.responseText
                                    

PHP

                                        <?php
                                        $client = new soapclient('http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl'); 
                                        $param = array(	
                                        'PhoneNumber'=>'17575449510',	
                                        'LicenseKey'=>'YOUR LICENSE KEY' 
                                        );
                                        $result = $client->CheckPhoneNumber($param); 
                                        print_r($result);
                                        ?>            
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public class CheckPhoneNumber {

                                            public static void main(String[] args) {
                                                  try{		
                                                    URL url = new URL("http://ws.cdyne.com/phoneverify/phoneverify.asmx/CheckPhoneNumber?"
                                                            + "PhoneNumber=17575449510"
                                                            + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Resolve IP addresses.

C#

                                        //http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL added as Web Reference, "WSDL".

                                        WSDL.IP2Geo ip = new WSDL.IP2Geo();

                                        //WSDL.IPInformation ipr = ip.ResolveIP("IP ADDRESS YOU WOULD LIKE TO CHECK", "YOUR LICENSE KEY");
                                        WSDL.IPInformation ipr = ip.ResolveIP("192.168.1.100", "YOUR LICENSE KEY");

                                        Console.WriteLine("City: " + ipr.City + "\n" +
            	                                        "State: " + ipr.StateProvince + "\n" +
            	                                        "Country: " + ipr.Country + "\n" +
            	                                        "Organization: " + ipr.Organization + "\n" +
            	                                        "Latitude: " + ipr.Latitude + "\n" +
            	                                        "Longitude: " + ipr.Longitude + "\n" +
            	                                        "Area Code: " + ipr.AreaCode + "\n" +
            	                                        "Time Zone: " + ipr.TimeZone + "\n" +
            	                                        "Daylight Savings: " + ipr.HasDaylightSavings + "\n" +
            	                                        "Certainty: " + ipr.Certainty + "%" + "\n" +
                                                        "Region Name: " + ipr.RegionName + "\n" +
            	                                        "Country Code: " + ipr.CountryCode);
                                                    Console.ReadLine();
                                    

VB.NET

                                        'http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL added as Web Reference, "WSDL".

                                        Dim IP As New IP2Geo()

                                        'Dim ipr = IP.ResolveIP("IP ADDRESS YOU WOULD LIKE TO CHECK", "YOUR LICENSE KEY")
                                        Dim ipr = IP.ResolveIP("192.168.1.100", "YOUR LICENSE KEY")

                                        Console.WriteLine("City: " & ipr.City & Environment.NewLine &
            	                                        "State: " & ipr.StateProvince & Environment.NewLine &
            	                                        "Country: " & ipr.Country & Environment.NewLine &
            	                                        "Organization: " & ipr.Organization & Environment.NewLine &
            	                                        "Latitude: " & ipr.Latitude & Environment.NewLine &
            	                                        "Longitude: " & ipr.Longitude & Environment.NewLine &
            	                                        "Area Code: " & ipr.AreaCode & Environment.NewLine &
            	                                        "Time Zone: " & ipr.TimeZone & Environment.NewLine &
            	                                        "Daylight Savings: " & ipr.HasDaylightSavings & Environment.NewLine &
            	                                        "Certainty: " & ipr.Certainty & "%"  & Environment.NewLine &
                                                        "Region Name: " & ipr.RegionName & Environment.NewLine &
            	                                        "Country Code: " & ipr.CountryCode)
                                        Console.ReadLine()
                                    

VBscript

                                        Dim request, oXMLHttp, url

                                        url = "http://ws.cdyne.com/ip2geo/ip2geo.asmx"

                                        request = "<?xml version='1.0' encoding='utf-8'?>" & _
                                        "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
                                        "<soap:Body>" & _
                                        "<ResolveIP xmlns=""http://ws.cdyne.com/"">" & _
                                        "<ipAddress>1921681100</ipAddress>" & _
                                        "<licenseKey>YOUR LICENSE KEY</licenseKey>" & _
                                        "</ResolveIP>" & _
                                        "</soap:Body>" & _
                                        "</soap:Envelope>"

                                        Set oXMLHttp = CreateObject("MSXML2.ServerXMLHTTP")
                                        oXMLHttp.open "POST", url, False
                                        oXMLHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
                                        oXMLHttp.send request
                                        response = oXMLHttp.responseText

                                        MsgBox oXMLHTTP.responseText
                                    

PHP

                                        <?php
                                        $client = new soapclient('http://ws.cdyne.com/ip2geo/ip2geo.asmx?WSDL'); 
                                        $param = array(	
                                        'ipAddress'=>'192.168.1.100',	
                                        'licenseKey'=>'YOUR LICENSE KEY' 
                                        );
                                        $result = $client->ResolveIP($param); 
                                        print_r($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class ResolveIP{     
	
                                            public static void main(String[] args) { 	

                                                   try{		
                                                    URL url = new URL("http://ws.cdyne.com/ip2geo/ip2geo.asmx/ResolveIP?"
                                                            + "ipAddress=1921681100"
                                                            + "&licenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
            
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Validate social security numbers.

C#

                                        //http://di3.cdyne.com/DeathIndexService.svc?wsdl added as Service Reference. "WSDL".

                                        WSDL.DeathIndexServiceClient diService = new DI_WSDL.DeathIndexServiceClient("disoap");

                                        //WSDL.DeathIndexResponse diResponse = diService.DeceasedBySSN("SOCIAL SECURITY NUMBER", "YOUR LICENSE KEY");
                                        WSDL.DeathIndexResponse diResponse = diService.DeceasedBySSN("555-55-5555", "YOUR LICENSE KEY");
                                                    if (diResponse.ReturnCode == 0)
                                                    {
                                                        foreach (DI_WSDL.DeceasedInfo di in diResponse.DeceasedList)
                                                        {
                                                            Console.WriteLine(di.FirstName + " " + di.MiddleName + " " + di.LastName + " " + di.NameSuffix + "\n" +
                    			                                        di.BirthDate + " - " + di.DeathDate + "\n" +
                    			                                        di.SSN + "\n" +
                    			                                        di.Verified + "\n" +
                    			                                        di.ZipLastResidence + "\n" +
                    			                                        di.ZipLumpSumPay);
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Console.WriteLine(diResponse.ReturnCode + " " + diResponse.ErrorText);
                                                        Console.ReadLine();
                                    

VB.NET

                                        'http://di3.cdyne.com/DeathIndexService.svc?wsdl added as Service Reference. "WSDL".

                                        Dim diClient As DeathIndexServiceClient = New WSDL.DeathIndexServiceClient("disoap")
                                        Dim diResposne As New WSDL.DeathIndexResponse

                                        'diResposne = diClient.DeceasedBySSN("SOCIAL SECURITY NUMBER", "YOUR LICENSE KEY")
                                        diResposne = diClient.DeceasedBySSN("555555555", "YOUR LICENSE KEY")
	
	                                        If diResposne.ReturnCode = 0 Then
            	                                        For Each di As DeceasedInfo In diResposne.DeceasedList
               		                                        Console.WriteLine(di.FirstName & " " & di.MiddleName & " " & di.LastName & di.NameSuffix & Environment.NewLine &
               			                                        di.BirthDate & " - " & di.DeathDate & Environment.NewLine &
                			                                        di.SSN & Environment.NewLine &
                			                                        di.Verified & Environment.NewLine &
                			                                        di.ZipLastResidence & Environment.NewLine &
                			                                        di.ZipLumpSumPay)
            		                                        Next
        		                                        Else
	                                        Console.WriteLine(diResposne.ReturnCode & " " & diResposne.ErrorText)
	                                        End If
                                        Console.ReadLine()
                                    

VBscript

                                        Dim oXMLHTTP

                                        Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
                                        Set oXMLHttp = CreateObject("Microsoft.XMLHTTP")
                                        Set oDoc = CreateObject("MSXML2.DOMDocument")

                                        'Call oXMLHttp.Open("GET", "http://di3.cdyne.com/DeathIndexService.svc/DeceasedBySSN?ssn=SOCIAL SECURITY NUMBER&LicenseKey=YOUR LICENSE KEY", False)     
                                        Call oXMLHttp.Open("GET", "http://di3.cdyne.com/DeathIndexService.svc/DeceasedBySSN?ssn=555555555&LicenseKey=YOUR LICENSE KEY", False)
                                        Call oXMLHttp.setRequestHeader("Content-Type", "text/xml")
                                        Call oXMLHTTP.send
    
                                        MsgBox oXMLHTTP.responseText    
                                    

PHP

                                        <?php
                                        $client = new soapclient('http://di3.cdyne.com/DeathIndexService.svc?wsdl'); 
                                        $param = array(	
                                        'ssn'=>'555555555',	
                                        'LicenseKey'=>'YOUR LICENSE KEY' 
                                        );
                                        $result = $client->DeceasedBySSN($param); 
                                        print_r($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class DeceasedBySSN {

                                            public static void main(String[] args) { 	
	
                                            try{		
                                              URL url = new URL("http://di3.cdyne.com/DeathIndexService.svc/DeceasedBySSN?"
                                                      + "ssn=555555555"
                                                      + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
                                            }
                                        }
                                    

C#

                                        //http://di3.cdyne.com/DeathIndexService.svc?wsdl added as Service Reference. "WSDL".

                                        WSDL.DeathIndexServiceClient diService = new DI_WSDL.DeathIndexServiceClient("disoap");

                                        //WSDL.DeathIndexResponse diResponse = diService.SearchDeceasedInfo("LAST NAME", "FIRST NAME", "STATE", "BIRTH YEAR", "YOUR LICENSE KEY");
                                        WSDL.DeathIndexResponse diResponse = diService.SearchDeceasedInfo("Smith", "John", "VA", "1928", "YOUR LICENSE KEY");

                                                    if (diResponse.ReturnCode == 0)
                                                    {
                                                        foreach (DI_WSDL.DeceasedInfo di in diResponse.DeceasedList)
                                                        {
                                                            Console.WriteLine(di.FirstName + " " + di.MiddleName + " " + di.LastName + " " + di.NameSuffix + "\n" +
                    			                                        di.BirthDate + " - " + di.DeathDate + "\n" +
                    			                                        di.SSN + "\n" +
                    			                                        di.Verified + "\n" +
                    			                                        di.ZipLastResidence + "\n" +
                    			                                        di.ZipLumpSumPay);
                                                        }
                                                    }
                                                    else
                                                    {
                                                        Console.WriteLine(diResponse.ReturnCode + " " + diResponse.ErrorText);
                                                        Console.ReadLine();
                                    

VB.NET

                                        'http://di3.cdyne.com/DeathIndexService.svc?wsdl added as Service Reference. "WSDL".

                                        Dim diClient As DeathIndexServiceClient = New WSDL.DeathIndexServiceClient("disoap")
                                        Dim diResposne As New WSDL.DeathIndexResponse

                                        'diResposne = diClient.SearchDeceasedInfo("LAST NAME", "FIRST NAME", "STATE", "BIRTH YEAR",  "YOUR LICENSE KEY")
                                        diResposne = diClient.SearchDeceasedInfo("Smith", "John", "VA", "1954", "YOUR LICENSE KEY")
	
	                                        If diResposne.ReturnCode = 0 Then
            	                                        For Each di As DeceasedInfo In diResposne.DeceasedList
               		                                        Console.WriteLine(di.FirstName & " " & di.MiddleName & " " & di.LastName & di.NameSuffix & Environment.NewLine &
               			                                        di.BirthDate & " - " & di.DeathDate & Environment.NewLine &
                			                                        di.SSN & Environment.NewLine &
                			                                        di.Verified & Environment.NewLine &
                			                                        di.ZipLastResidence & Environment.NewLine &
                			                                        di.ZipLumpSumPay)
            		                                        Next
        		                                        Else
	                                        Console.WriteLine(diResposne.ReturnCode & " " & diResposne.ErrorText)
	                                        End If
                                        Console.ReadLine()                             
                                    

VBscript

                                        Dim oXMLHTTP

                                        Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
                                        Set oXMLHttp = CreateObject("Microsoft.XMLHTTP")
                                        Set oDoc = CreateObject("MSXML2.DOMDocument")
     
                                        'Call oXMLHttp.Open("GET", "http://di3.cdyne.com/DeathIndexService.svc/SearchDeceasedInfo?LastName=LAST NAME&FirstName=FIRST NAME&StateAbbrev=STATE&GreaterThanYear=YEAR OF DEATH&LicenseKey=YOUR LICENSE KEY", False)
                                        Call oXMLHttp.Open("GET", "http://di3.cdyne.com/DeathIndexService.svc/SearchDeceasedInfo?LastName=Smith&FirstName=John&StateAbbrev=VA&GreaterThanYear=1973&LicenseKey=YOUR LICENSE KEY", False)
                                        Call oXMLHttp.setRequestHeader("Content-Type", "text/xml")
                                        Call oXMLHTTP.send
    
                                        MsgBox oXMLHTTP.responseText    
                                    

PHP

                                        <?php
                                        $client = new soapclient('http://di3.cdyne.com/DeathIndexService.svc?wsdl'); 
                                        $param = array(	
                                        'LastName'=>'Smith',	
                                        'FirstName'=>'John',	
                                        'StateAbbrev'=>'VA',	
                                        'GreaterThanYear'=>'1973',	//YEAR OF DEATH
                                        'LicenseKey'=>'YOUR LICENSE KEY'
                                        );
                                        $result = $client->SearchDeceasedInfo($param); 
                                        print_r($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public final class SearchDeceasedInfo {

                                            public static void main(String[] args) { 	
	
                                            try{		
                                              URL url = new URL("http://di3.cdyne.com/DeathIndexService.svc/SearchDeceasedInfo?"
                                                      + "LastName=Smith"
                                                      + "&FirstName=John"
                                                      + "&StateAbbrev=VA"
                                                      + "&GreaterThanYear=1973" //YEAR OF DEATH
                                                      + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    }    
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


Test

Return summary information about a location via the Address.

C#

                                        //http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?WSDL added as Web Reference. "WSDL".

                                        WSDL.DemographixQuery DQ = new WSDL.DemographixQuery();
                                        WSDL.SummaryInformation SI = new SummaryInformation();

                                        //SI = DQ.GetLocationInformationByAddress("STREET ADDRESS", "CITY", "STATE", "23320", "YOUR LICENSE KEY");
                                        SI = DQ.GetLocationInformationByAddress("505 INDEPENDENCE PARKWAY", "CHESAPEAKE", "VA", "23320", "YOUR LICENSE KEY");

                                        Console.WriteLine("Error: " + SI.ErrorString + "\n" +
            	                                        "Place ID: " + SI.PlaceInformation.PlaceID + "\n" +
                                                        "State Abbreviation: " + SI.PlaceInformation.StateAbbrev + "\n" +
                                                        "Median Age: " + SI.MedianAge + "\n" +
                                                        "Median Income: " + SI.MedianIncome + "\n" +
                                                        "Median Rooms in House: " + SI.MedianRoomsInHouse + "\n" +
                                                        "Median House Value: " + SI.MedianHouseValue + "\n" +
                                                        "Median Vehicles per Household: " + SI.MedianVehicles + "\n" +
                                                        "Percentage Never Married: " + SI.MaritalStatusPercentages.NeverMarried + "\n" +
                                                        "Percentage Married: " + SI.MaritalStatusPercentages.Married + "\n" +
                                                        "Percentage Separated: " + SI.MaritalStatusPercentages.Separated + "\n" +
                                                        "Percentage Married (Other): " + SI.MaritalStatusPercentages.MarriedOther + "\n" +
                                                        "Percentage Widowed: " + SI.MaritalStatusPercentages.Widowed + "\n" +
                                                        "Percentage Divorced: " + SI.MaritalStatusPercentages.Divorced + "\n" +
                                                        "Percentage Asian: " + SI.RacePercentages.Asian + "\n" +
                                                        "Percentage Black: " + SI.RacePercentages.Black + "\n" +
                                                        "Percentage Inidan: " + SI.RacePercentages.Indian + "\n" +
                                                        "Percentage Mixed: " + SI.RacePercentages.Mixed + "\n" +
                                                        "Percentage Native Hawaiian: " + SI.RacePercentages.NativeHawaiian + "\n" +
                                                        "Percentage Other: " + SI.RacePercentages.Other + "\n" +
                                                        "Percentage White: " + SI.RacePercentages.White + "\n" +
                                                        "Percentage Female: " + SI.GenderPercentages.Female + "\n" +
                                                        "Percentage Male: " + SI.GenderPercentages.Male);
                                        Console.ReadLine();
                                    

VB.NET

                                        'http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?WSDL added as Web Reference. "WSDL".

                                        Dim DQ As New WSDL.DemographixQuery
                                        Dim SI As New SummaryInformation

                                        'SI = DQ.GetLocationInformationByAddress("STREET ADDRESS", "CITY", "STATE", "23320", "YOUR LICENSE KEY")
                                        SI = DQ.GetLocationInformationByAddress("505 INDEPENDENCE PARKWAY", "CHESAPEAKE", "VA", "23320", "YOUR LICENSE KEY")

                                        Console.WriteLine("Error: " & SI.ErrorString & Environment.NewLine &
                                                        "Place ID: " & SI.PlaceInformation.PlaceID & Environment.NewLine &
                                                        "State Abbreviation: " & SI.PlaceInformation.StateAbbrev & Environment.NewLine &
                                                        "Median Age: " & SI.MedianAge & Environment.NewLine &
                                                        "Median Income: " & SI.MedianIncome & Environment.NewLine &
                                                        "Median Rooms in House: " & SI.MedianRoomsInHouse & Environment.NewLine &
                                                        "Median House Value: " & SI.MedianHouseValue & Environment.NewLine &
                                                        "Median Vehicles per Household: " & SI.MedianVehicles & Environment.NewLine &
                                                        "Percentage Never Married: " & SI.MaritalStatusPercentages.NeverMarried & Environment.NewLine &
                                                        "Percentage Married: " & SI.MaritalStatusPercentages.Married & Environment.NewLine &
                                                        "Percentage Separated: " & SI.MaritalStatusPercentages.Separated & Environment.NewLine &
                                                        "Percentage Married (Other): " & SI.MaritalStatusPercentages.MarriedOther & Environment.NewLine &
                                                        "Percentage Widowed: " & SI.MaritalStatusPercentages.Widowed & Environment.NewLine &
                                                        "Percentage Divorced: " & SI.MaritalStatusPercentages.Divorced & Environment.NewLine &
                                                        "Percentage Asian: " & SI.RacePercentages.Asian & Environment.NewLine &
                                                        "Percentage Black: " & SI.RacePercentages.Black & Environment.NewLine &
                                                        "Percentage Inidan: " & SI.RacePercentages.Indian & Environment.NewLine &
                                                        "Percentage Mixed: " & SI.RacePercentages.Mixed & Environment.NewLine &
                                                        "Percentage Native Hawaiian: " & SI.RacePercentages.NativeHawaiian & Environment.NewLine &
                                                        "Percentage Other: " & SI.RacePercentages.Other & Environment.NewLine &
                                                        "Percentage White: " & SI.RacePercentages.White & Environment.NewLine &
                                                        "Percentage Female: " & SI.GenderPercentages.Female & Environment.NewLine &
                                                        "Percentage Male: " & SI.GenderPercentages.Male)
                                        Console.ReadLine()
                                    

VBscript

                                        Dim request, oXMLHttp, url

                                        url = "http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx"

                                        request = "<?xml version='1.0' encoding='utf-8'?>" & _
                                        "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
                                        "<soap:Body>" & _
                                        "<GetLocationInformationByAddress xmlns=""http://ws.cdyne.com/DemographixWS"">" & _
                                        "<AddressLine1>505 Independence Parkway</AddressLine1>" & _
                                        "<City>Chesapeake</City>" & _
                                        "<StateAbbrev>VA</StateAbbrev>" & _
                                        "<ZipCode>23320</ZipCode>" & _
                                        "<LicenseKey>YOUR LICENSE KEY</LicenseKey>" & _
                                        "</GetLocationInformationByAddress>" & _
                                        "</soap:Body>" & _
                                        "</soap:Envelope>"

                                        Set oXMLHttp = CreateObject("MSXML2.ServerXMLHTTP")
                                        oXMLHttp.open "POST", url, False
                                        oXMLHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
                                        oXMLHttp.send request
                                        response = oXMLHttp.responseText

                                        MsgBox oXMLHTTP.responseText
                                    

PHP

                                        <?php
                                        $client = new SoapClient('http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx?wsdl');
                                        $param = array(
                                        'AddressLine1' => '505 Independence Parkway',
                                        'City' => 'Chesapeake',
                                        'StateAbbrev' => 'VA',
                                        'ZipCode' => '23504',
                                        'LicenseKey' => 'YOUR LICENSE KEY'
                                        );
                                        $result = $client->GetLocationInformationByAddress($param);
                                        print_r ($result);
                                        ?>
                                    

JAVA

                                        import java.io.ByteArrayOutputStream;
                                        import java.io.InputStream;
                                        import java.net.MalformedURLException;
                                        import java.net.URL; 
                                        import java.util.Properties;
                                        import javax.xml.transform.OutputKeys;
                                        import javax.xml.transform.Source;
                                        import javax.xml.transform.Transformer;
                                        import javax.xml.transform.TransformerFactory;
                                        import javax.xml.transform.stream.StreamResult;
                                        import javax.xml.transform.stream.StreamSource;

                                        public class GetLocationInformationByAddress {

                                            public static void main(String[] args) {
       
                                                       try{		
                                                    URL url = new URL("http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx/GetLocationInformationByAddress?"
                                                            + "AddressLine1=505+Independence+Parkway"
                                                            + "&City=Chesapeake"
                                                            + "&StateAbbrev=VA"
                                                            + "&ZipCode=23320"
                                                            + "&LicenseKey=YOUR LICENSE KEY");		
                                            try{			
                                            InputStream in = url.openStream(); 
                                            StreamSource source = new StreamSource(in); 			
                                            printResult(source);	
                                        }catch(java.io.IOException e){			
                                            e.printStackTrace();		
                                        }		
                                        }catch (MalformedURLException e){		
                                            e.printStackTrace();	
                                                    }     
                                            }     
                                            private static void printResult(Source source) {        
                                                    try {            
                                                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                                                    StreamResult sr = new StreamResult(bos);
                                                    Transformer trans = TransformerFactory.newInstance().newTransformer();
                                                    Properties oprops = new Properties();
                                                    oprops.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
                                                    trans.setOutputProperties(oprops);
                                                    trans.transform(source, sr);            
                                                    System.out.println("**** Response ******");            
                                                    System.out.println(bos.toString());   

                                                    bos.close();
                                                    System.out.println();        
                                            } catch (Exception e) {            
                                                    } 
            
                                            }
                                        }
                                    

wsdl spec sheet wiki

Get WSDL

Spec Sheet

Wiki


CDYNE publishes and maintains all information about CDYNE Web Services implementation on our Wiki.

Also for additional information and product updates, please visit CDYNE's Blog.

Please feel free to contact us for any reason. We have a team standing by to help you with any implementation issue.

Copyright 1999-2014. CDYNE Corporation. All rights reserved. | Privacy Policy
Corporate: 800.984.3710 | Contact
CDYNE® is a registered trademark of CDYNE Corporation.