{"id":759,"date":"2022-10-13T11:32:35","date_gmt":"2022-10-13T11:32:35","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?post_type=serviceobjects&#038;p=759"},"modified":"2024-03-29T09:37:52","modified_gmt":"2024-03-29T16:37:52","slug":"av3-soap","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/","title":{"rendered":"AV3 &#8211; SOAP"},"content":{"rendered":"\n<div class=\"wp-block-create-block-tabs\"><ul class=\"tab-labels\" role=\"tablist\" aria-label=\"tabbed content\"><li class=\"tab-label active\" role=\"tab\" aria-selected=\"true\" aria-controls=\"C#\" tabindex=\"0\">C#<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Java\" tabindex=\"0\">Java<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"PHP\" tabindex=\"0\">PHP<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"RoR\" tabindex=\"0\">RoR<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Python\" tabindex=\"0\">Python<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"ColdFusion\" tabindex=\"0\">ColdFusion<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"VB\" tabindex=\"0\">VB<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Apex\" tabindex=\"0\">Apex<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"TSQL\" tabindex=\"0\">TSQL<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"NodeJS\" tabindex=\"0\">NodeJS<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 C# Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/Add a service to your application https:\/\/trial.serviceobjects.com\/av3\/api.svc\/\nAV3Client_Primary = new AddressValidation3Client(\"DOTSAddressValidation3\");\nresponse = AV3Client_Primary.GetBestMatches(Business, Address, Address2, City, State, PostalCode, licenseKey);\n         \nif (response.Error != null)\n{\n    \/\/Process Error\n}\nelse\n{\n    \/\/Process Response     \n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 Java Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">BestMatchesResponse bestMatchResponse = null;\nAddress[] addresses = null;\nAV3Error error= null;\n\/\/ Create soap request\nAddressValidation3Locator locator = new AddressValidation3Locator();\n\/\/use ssl\nlocator.setDOTSAddressValidation3EndpointAddress(\"https:\/\/trial.serviceobjects.com\/AV3\/api.svc\/soap\");\nIAddressValidation3 av = locator.getDOTSAddressValidation3();\nDOTSAddressValidation3Stub soap = (DOTSAddressValidation3Stub)av;\nsoap.setTimeout(5000);\/\/ set timeout\n \nbestMatchResponse = soap.getBestMatches(business, address, address2, city, state, postalCode, licenseKey);\naddresses = bestMatchResponse.getAddresses();\nerror = bestMatchResponse.getError();\nif(error != null &amp;&amp; error.getTypeCode() == \"3\")\n{\n    throw new Exception();\n}\n  \n\/\/Process Results\nif(error == null){\n    \/\/DOTS Address Validation Results  \n}\n\/\/Process Errors\nelse{\n    \/\/DOTS Address Validation Error Results\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 PHP Code Snippets<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\/\/ Set these values per web service &lt;as needed>\n$wsdlUrl = \"https:\/\/trial.serviceobjects.com\/AV3\/api.svc?wsdl\";\n \n    $params['Business']     = $Business;\n    $params['Address']      = $Address;\n    $params['Address2']     = $Address2;\n    $params['City']         = $City;\n    $params['State']        = $State;\n    $params['PostalCode']   = $PostalCode;\n    $params['LicenseKey']   = $LicenseKey;\n \n$soapClient = new SoapClient($wsdlUrl, array( \"trace\" => 1 ));\n$result = $soapClient->GetBestMatches($params);\nif (!isset($result->GetBestMatchesResult->Error)) {\n        foreach($result->GetBestMatchesResult->Addresses as $k=>$v) {\n            echo \"&lt;tr>&lt;td>&lt;b>$k&lt;\/b>&lt;\/td>&lt;td>$v&lt;\/td>&lt;\/tr>\";\n        }\n    } else {\n        foreach($result->GetBestMatchesResult ->Error as $k=>$v) {\n            echo \"&lt;tr>&lt;td>&lt;b>$k&lt;\/b>&lt;\/td>&lt;td>$v&lt;\/td>&lt;\/tr>\";\n        }\n    }\n?><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 RoR SOAP Code Snippets<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"r\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">  #Formats inputs into a hash to pass to Soap Client\n    #Hash Keys must be named as they are shown here.\n    message =   {\n                \"BusinessName\" => @request.businessname,\n                \"Address\" => @request.address1,\n                \"Address2\" => @request.address2,\n                \"City\" => @request.city,\n                \"State\" => @request.state,\n                \"PostalCode\" => @request.postalcode,\n                \"LicenseKey\" => @request.licensekey,\n                }\n    #Implemented to make the code more readable when accessing the hash        \n    @av3response = :get_best_matches_response\n    @av3result = :get_best_matches_result\n    @av3info = :addresses\n    @av3address = :address\n    @av3error = :error\n \n    #Set Primary and Backup URLs here as needed\n    dotsAV3Primary = \"https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl\"\n    dotsAV3Backup = \"https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl\"\n \n    begin\n        #initializes the soap client. The convert request keys global is necessary to receive a response from the service.\n        client = Savon.client(  wsdl: dotsAV3Primary,\n                                element_form_default: :qualified,\n                                convert_request_keys_to: :camelcase\n                             )\n        #Calls the operation with given inptus and converts response to a hash.\n        response = client.call(:get_best_matches, message: message).to_hash\n \n        #Checks to see what results came back from the service\n        processresults(response)           \n         \n    #If an error occurs during the call, this will use backup url and attempt to retrieve data.\n    rescue Savon::Error => e\n        begin\n        backupclient = Savon.client(    wsdl: dotsAV3Backup,\n                                        element_form_default: :qualified,\n                                        convert_request_keys_to: :camelcase\n                                   )\n \n        #Sets the response to the backclient call to the operation and converts response to a hash.\n        response = backupclient.call(:get_best_matches, message: message).to_hash\n        processresults(response)\n \n        #If backup url failed, this will display the error received from the server\n        rescue Savon::Error =>error\n            @status = error\n            @displaydata = {\"error\" => \"A Big Error Occured\"}\n        end\n    end\nend\nprivate\ndef processresults(response)   \n        #Processes Error Response from soap Client     \n        #Processes Valid response from soap client \nend<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation US 3 Python Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mBusinessName = BusinessName.get()\nif mBusinessName is None or mBusinessName == \"\":\n    mBusinessName = \" \"\nmAddress1 = Address1.get()\nif mAddress1 is None or mAddress1 == \"\":\n    mAddress1 = \" \"\nmAddress2 = Address2.get()\nif mAddress2 is None or mAddress2 == \"\":\n    mAddress2 = \" \"\nmCity = City.get()\nif mCity is None or mCity == \"\":\n    mCity = \" \"\nmState = State.get()\nif mState is None or mState == \"\":\n    mState = \" \"\nmZip = Zip.get()\nif mZip is None or mZip == \"\":\n    mZip = \" \"\nmLicenseKey = LicenseKey.get()\nif mLicenseKey is None or mLicenseKey == \"\":\n    mLicenseKey = \" \"\n \n#Set the primary and backup URLs as needed\nprimaryURL = 'https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl'\nbackupURL = 'https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl'\n \n#This block of code calls the web service and prints the resulting values to the screen\ntry:\n    client = Client(primaryURL)\n    client.service\n    result = client.service.GetBestMatches(BusinessName=mBusinessName, Address=mAddress1, Address2=mAddress2, City=mCity, State=mState, PostalCode=mZip, LicenseKey=mLicenseKey)\n    #Handel response and check for errors\n \n #Tries the backup URL if the primary URL failed\nexcept:\n    try:\n        client = Client(backupURL)\n        client.service\n        result = client.service.GetBestMatches(BusinessName=mBusinessName, Address=mAddress1, Address2=mAddress2, City=mCity, State=mState, PostalCode=mZip, LicenseKey=mLicenseKey)\n        #Handel response and check for errors\n \n    #If the backup call failed then this will display an error to the screen\n    except:\n        Label(swin.window, text='Error').pack()\n        print (result)<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 ColdFusion Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!---Invoke Live webservice---> \n&lt;cftry>\n &lt;cfinvoke webservice=\"https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl\"\n     method=\"getBestMatches\"\n     returnvariable=\"aBestMatchesResponse\">\n      \n     &lt;cfinvokeargument name=\"businessName\" value=\"#trim(BusinessName)#\"\/>  \n     &lt;cfinvokeargument name=\"address\" value=\"#trim(Address)#\"\/>           \n     &lt;cfinvokeargument name=\"address2\" value=\"#trim(Address)#\"\/>\n     &lt;cfinvokeargument name=\"city\" value=\"#trim(City)#\"\/>\n     &lt;cfinvokeargument name=\"state\" value=\"#trim(State)#\"\/>\n     &lt;cfinvokeargument name=\"postalCode\" value=\"#trim(PostalCode)#\"\/>\n     &lt;cfinvokeargument name=\"licenseKey\" value=\"#trim(LicenseKey)#\"\/>\n &lt;\/cfinvoke>\n &lt;cfcatch>\n &lt;!---Fail Over to backup WSDL---> \n     &lt;cfinvoke webservice=\"https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl\"\n     method=\"getBestMatches\"\n     returnvariable=\"aBestMatchesResponse\">\n     &lt;cfinvokeargument name=\"businessName\" value=\"#trim(BusinessName)#\"\/>  \n     &lt;cfinvokeargument name=\"address\" value=\"#trim(Address)#\"\/>           \n     &lt;cfinvokeargument name=\"address2\" value=\"#trim(Address)#\"\/>\n     &lt;cfinvokeargument name=\"city\" value=\"#trim(City)#\"\/>\n     &lt;cfinvokeargument name=\"state\" value=\"#trim(State)#\"\/>\n     &lt;cfinvokeargument name=\"postalCode\" value=\"#trim(PostalCode)#\"\/>\n     &lt;cfinvokeargument name=\"licenseKey\" value=\"#trim(LicenseKey)#\"\/>\n &lt;\/cfinvoke>\n  &lt;\/cfcatch>          \n &lt;\/cftry><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 VB Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"vhdl\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Try\n    Dim ws As New AV3.AddressValidation3Client\n    Dim response As AV3.BestMatchesResponse\n    response = ws.GetBestMatches(BusinessName.Text, Address1.Text, Address2.Text, City.Text, State.Text, PostalCode.Text, LicenseKey.Text)\n    If (response.Error Is Nothing) Then\n        ProcessValidResponse(response)\n    Else\n        ProcessErrorResponse(response.Error)\n    End If\n \nCatch er As Exception\n    ''Set the Primary and Backup Service References as necessary\n    Try\n        Dim wsbackup As New AV3.AddressValidation3Client\n        Dim response As AV3.BestMatchesResponse\n        response = wsbackup.GetBestMatches(BusinessName.Text, Address1.Text, Address2.Text, City.Text, State.Text, PostalCode.Text, LicenseKey.Text)\n        If (response.Error Is Nothing) Then\n            ProcessValidResponse(response)\n        Else\n            ProcessErrorResponse(response.Error)\n        End If\n    Catch ex As Exception\n        resultsLabel.Visible = True\n        resultsLabel.Text = ex.Message\n    End Try\nEnd Try<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 Apex Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wwwServiceobjectsCom.BestMatchesResponse result;\ntry{\nwwwServiceobjectsCom.DOTSAddressValidation3 client = new wwwServiceobjectsCom.DOTSAddressValidation3();\nclient.endpoint_x = 'https:\/\/trial.serviceobjects.com\/AV3\/api.svc\/soap';\nresult = client.GetBestMatches([BusinessName],[Address],[Address2],[City],[State],[PostalCode],[LicenseKey]);\n}\ncatch(Exception ex){\n \/\/If the first request failed try the failover endpoint\nwwwServiceobjectsCom.DOTSAddressValidation3 backupClient = new wwwServiceobjectsCom.DOTSAddressValidation3();\n\/\/The backup environment will be provided to you upon purchasing a production license key\nbackupClient.endpoint_x = 'https:\/\/trial.serviceobjects.com\/AV3\/api.svc\/soap';\nresult = backupClient.GetBestMatches(([BusinessName],[Address],[Address2],[City],[State],[PostalCode],[LicenseKey]);\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 TSQL Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> SET @requestBody ='&lt;s:Envelope xmlns:s=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">'+\n                   '&lt;s:Body>'+\n                   '&lt;GetBestMatches xmlns=\"https:\/\/www.serviceobjects.com\">'+\n                   '&lt;BusinessName>'+ @businessname + '&lt;\/BusinessName>'+\n                   '&lt;Address>' + @address + '&lt;\/Address>'+\n                   '&lt;Address2>' + @address2 + '&lt;\/Address2>'+\n                   '&lt;City>' + @city + '&lt;\/City>&lt;State>' + @state + '&lt;\/State>'+\n                   '&lt;PostalCode>' + @postalcode + '&lt;\/PostalCode>'+\n                   '&lt;LicenseKey>' + @key + '&lt;\/LicenseKey>'+\n                   '&lt;\/GetBestMatches>'+\n                   '&lt;\/s:Body>'+\n                   '&lt;\/s:Envelope>'\nSET @requestLength = LEN(@requestBody)\n    --If a production key is purchased, this will execute the failover\nIF @isLiveKey = 1\nBEGIN\n    EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n    EXEC sp_OAMethod @obj, 'Open', NULL, 'POST', 'https:\/\/trial.serviceobjects.com\/AV3\/api.svc\/soap', false\n    EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'HOST', 'trial.serviceobjects.com'\n    EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'Content-Type', 'text\/xml; charset=UTF-8'\n    EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'SOAPAction', '\"https:\/\/www.serviceobjects.com\/IAddressValidation3\/GetBestMatches\"'\n    EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'Content-Length', @requestLength\n    EXEC sp_OAMethod @obj, 'send', NULL, @requestBody\n    EXEC sp_OAGetProperty @obj, 'Status', @responseCode OUTPUT\n    EXEC sp_OAGetProperty @obj, 'StatusText', @statusText OUTPUT\n    EXEC sp_OAGetProperty @obj, 'responseText', @response OUTPUT\n             \n    --Checks the Response for a fatal error or if null.\n    IF @response IS NULL\n    BEGIN\n        EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n        EXEC sp_OAMethod @obj, 'Open', NULL, 'POST', 'https:\/\/trial.serviceobjects.com\/AV3\/api.svc\/soap', false\n        EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'HOST', 'trial.serviceobjects.com'\n        EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'Content-Type', 'text\/xml; charset=UTF-8'\n        EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'SOAPAction', '\"https:\/\/www.serviceobjects.com\/IAddressValidation3\/GetBestMatches\"'\n        EXEC sp_OAMethod @obj, 'setRequestHeader', NULL, 'Content-Length', @requestLength\n        EXEC sp_OAMethod @obj, 'send', NULL, @requestBody\n        EXEC sp_OAGetProperty @obj, 'Status', @responseCode OUTPUT\n        EXEC sp_OAGetProperty @obj, 'StatusText', @statusText OUTPUT\n        EXEC sp_OAGetProperty @obj, 'responseText', @response OUTPUT\n    END\nEND<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Address Validation 3 NodeJS Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> var args = {BusinessName: 'BusinessName',\n            Address: 'Address',\n            Address2: 'Address2',\n            City: 'City',\n            State: 'State',\n            PostalCode: 'PostalCode',\n            LicenseKey: 'Your-License-Key'};\nsoap.createClient(primaryUrl, function(err, client) {\n     \n    client.GetBestMatches(args, function(err, result) {\n        \/\/This is where you will handle the service results. Your business logic will determine\n        \/\/how the validated information is used.\n        \/\/The exact output can be found in our documentation:\n        \/\/https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/\n        if(err != null || result == null)\n        {\n            \/\/There was an error that occurred that wasn't part of the normal service response\n            return;\n        }\n        else{\n            \/\/Check for an error object\n            if(result.GetBestMatchesResult.Error != null)\n            {\n                \/\/An error object was returned by the service and you will want to use\n                \/\/the following failover logic.\n                \/\/If it was a Service Objects Fatal exception we recommend trying\n                \/\/a backup server.\n                if(result.GetBestMatchesResult.Error.TypeCode == \"3\")\n                {\n                    \/\/The actual backup url will be provided when you purchase a license key\n                    var backupUrl = 'https:\/\/trial.serviceobjects.com\/av3\/api.svc?wsdl';\n                    soap.createClient(backupUrl, function(failoverErr, backupClient) {\n     \n                        backupClient.GetBestMatches(args, function(failoverErr, failoverResult) {\n                            \/\/Handle the failoverErr or failoverResult objects.\n                            return;\n                        });\n                    });\n                }\n                else{\n                    \/\/The Error object isn't of the type \"Service Objects Fatal\" so\n                    \/\/there is no need to use the failover logic. There was some Error of\n                    \/\/type Authorization, User Input, or Domain Specific.\n                    response.writeHead(200, \"OK\", {'Content-Type': 'text\/html'});\n                    response.end(JSON.stringify(result));\n                    return;\n                }\n            }\n            else{\n                \/\/You have a non Error response.\n                \/\/All of the data will reside within result.GetBestMatchesResult\n                \/\/As an easy to see what the service returns I am returning a JSON\n                \/\/serialized version as the response.\n                response.writeHead(200, \"OK\", {'Content-Type': 'text\/html'});\n                response.end(JSON.stringify(result));\n                return;\n            }\n        }\n        });\n});<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":524,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-759","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AV3 - SOAP<\/title>\n<meta name=\"description\" content=\"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AV3 - SOAP\" \/>\n<meta property=\"og:description\" content=\"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-29T16:37:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/\",\"name\":\"AV3 - SOAP\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-10-13T11:32:35+00:00\",\"dateModified\":\"2024-03-29T16:37:52+00:00\",\"description\":\"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Address Validation &#8211; US 3\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AV3 &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"AV3 &#8211; SOAP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AV3 - SOAP","description":"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"AV3 - SOAP","og_description":"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2024-03-29T16:37:52+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/","name":"AV3 - SOAP","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-10-13T11:32:35+00:00","dateModified":"2024-03-29T16:37:52+00:00","description":"C#JavaPHPRoRPythonColdFusionVBApexTSQLNodeJS Address Validation 3 C# Code Snippet \/\/Add a service to your application","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/av3-soap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Address Validation &#8211; US 3","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/"},{"@type":"ListItem","position":3,"name":"AV3 &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-address-validation-us-3\/av3-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"AV3 &#8211; SOAP"}]},{"@type":"WebSite","@id":"https:\/\/test.serviceobjects.com\/docs\/#website","url":"https:\/\/test.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/test.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":20,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/759\/revisions"}],"predecessor-version":[{"id":10049,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/759\/revisions\/10049"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/524"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}