{"id":6016,"date":"2022-11-15T17:53:41","date_gmt":"2022-11-15T17:53:41","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=6016"},"modified":"2022-12-14T22:08:21","modified_gmt":"2022-12-14T22:08:21","slug":"lvi-soap","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/","title":{"rendered":"LVI &#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\">C#<\/li><li class=\"tab-label\" role=\"tab\">Java<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong><strong><strong>Lead Validation International C# Code Snippet<\/strong><\/strong><\/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=\"\">try\n{\n    wsClient = new LVISoapServiceClient(\"Primary\");\n    response = wsClient.ValidateLeadInternational(FullName.Text, Salutation.Text, FirstName.Text, LastName.Text, BusinessName.Text, BusinessDomain.Text, BusinessEIN.Text, Address1.Text, Address2.Text, Address3.Text, Address4.Text, Address5.Text, Locality.Text, AdminArea.Text, PostalCode.Text, Country.Text, Phone1.Text, Phone2.Text, Email.Text, IPAddress.Text, Gender.Text, DateOfBirth.Text, UTCCaptureTime.Text, OutputLanguage.Text, TestType.Text, LicenseKey.Text);\n     \n    if (response == null || (response.Error != null &amp;&amp; response.Error.TypeCode == \"3\"))\n    {\n        throw new Exception();\n    }\n     \n}\ncatch\n{\n     \n    wsClient = new LVISoapServiceClient(\"Backup\");\n    response = wsClient.ValidateLeadInternational(FullName.Text, Salutation.Text, FirstName.Text, LastName.Text, BusinessName.Text, BusinessDomain.Text, BusinessEIN.Text, Address1.Text, Address2.Text, Address3.Text, Address4.Text, Address5.Text, Locality.Text, AdminArea.Text, PostalCode.Text, Country.Text, Phone1.Text, Phone2.Text, Email.Text, IPAddress.Text, Gender.Text, DateOfBirth.Text, UTCCaptureTime.Text, OutputLanguage.Text, TestType.Text, LicenseKey.Text);\n}\n \nif (response?.Error != null)\n{\n \n    processErrorResponse(response);\n \n}\nelse if (response != null)\n{\n \n    processSuccessfulResponse(response);\n \n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong><strong>Lead Validation International Java Code Snippet<\/strong><\/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=\"\">String FullName,Salutation,FirstName,LastName,\n        BusinessName,BusinessDomain,BusinessEIN,\n        Address1,Address2,Address3,Address4,Address5,\n        Locality,AdminArea,PostalCode,Country,Phone1,\n        Phone2,Email,IPAddress,Gender,DateOfBirth,\n        UTCCaptureTime,OutputLanguage,TestType,LicenseKey;\n \nFullName = request.getParameter(\"iFullName\");\nSalutation = request.getParameter(\"iSalutation\");\nFirstName = request.getParameter(\"iFirstName\");\nLastName = request.getParameter(\"iLastName\");\nBusinessName = request.getParameter(\"iBusinessName\");\nBusinessDomain = request.getParameter(\"iBusinessDomain\");\nBusinessEIN = request.getParameter(\"iBusinessEIN\");\nAddress1 = request.getParameter(\"iAddress1\");\nAddress2 = request.getParameter(\"iAddress2\");\nAddress3 = request.getParameter(\"iAddress3\");\nAddress4 = request.getParameter(\"iAddress4\");\nAddress5 = request.getParameter(\"iAddress5\");\nLocality = request.getParameter(\"iLocality\");\nAdminArea = request.getParameter(\"iAdminArea\");\nPostalCode = request.getParameter(\"iPostalCode\");\nCountry = request.getParameter(\"iCountry\");\nPhone1 = request.getParameter(\"iPhone1\");\nPhone2 = request.getParameter(\"iPhone2\");\nEmail = request.getParameter(\"iEmail\");\nIPAddress = request.getParameter(\"iIPAddress\");\nGender = request.getParameter(\"iGender\");\nDateOfBirth = request.getParameter(\"iDateOfBirth\");\nUTCCaptureTime = request.getParameter(\"iUTCCaptureTime\");\nOutputLanguage = request.getParameter(\"iOutputLanguage\");\nTestType = request.getParameter(\"iTestType\");\nLicenseKey = request.getParameter(\"iLicenseKey\");\n \nContactInternational Response = null;\nILVISoapService Client = new LVISoapService(TrialURL).getDOTSLeadValidationInternational();\ntry{\n    Response = Client.validateLeadInternational(FullName,Salutation,FirstName,LastName,BusinessName,BusinessDomain,BusinessEIN,Address1,Address2,Address3,Address4,Address5,Locality,AdminArea,PostalCode,Country,Phone1,Phone2,Email,IPAddress,Gender,DateOfBirth,UTCCaptureTime,OutputLanguage,TestType,LicenseKey);\n}\ncatch(Exception r)\n{\n    \/\/ Implementing failover logic below as an example.\n    ILVISoapService backupClient = new LVISoapService(FailoverURL).getDOTSLeadValidationInternational();\n    Response = backupClient.validateLeadInternational(FullName,Salutation,FirstName,LastName,BusinessName,BusinessDomain,BusinessEIN,Address1,Address2,Address3,Address4,Address5,Locality,AdminArea,PostalCode,Country,Phone1,Phone2,Email,IPAddress,Gender,DateOfBirth,UTCCaptureTime,OutputLanguage,TestType,LicenseKey);\n}<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":6012,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6016","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>LVI - SOAP<\/title>\n<meta name=\"description\" content=\"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(&quot;Primary&quot;); response =\" \/>\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=\"LVI - SOAP\" \/>\n<meta property=\"og:description\" content=\"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(&quot;Primary&quot;); response =\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-14T22:08:21+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/\",\"name\":\"LVI - SOAP\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-15T17:53:41+00:00\",\"dateModified\":\"2022-12-14T22:08:21+00:00\",\"description\":\"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(\\\"Primary\\\"); response =\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Lead Validation &#8211; International\u00a0\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LVI &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"LVI &#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":"LVI - SOAP","description":"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(\"Primary\"); response =","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":"LVI - SOAP","og_description":"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(\"Primary\"); response =","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2022-12-14T22:08:21+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/","name":"LVI - SOAP","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-15T17:53:41+00:00","dateModified":"2022-12-14T22:08:21+00:00","description":"C#Java Lead Validation International C# Code Snippet try { wsClient = new LVISoapServiceClient(\"Primary\"); response =","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-soap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Lead Validation &#8211; International\u00a0","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/"},{"@type":"ListItem","position":3,"name":"LVI &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"LVI &#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\/6016","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=6016"}],"version-history":[{"count":4,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6016\/revisions"}],"predecessor-version":[{"id":7315,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6016\/revisions\/7315"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6012"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=6016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}