{"id":5043,"date":"2022-11-13T16:46:45","date_gmt":"2022-11-13T16:46:45","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=5043"},"modified":"2024-03-29T13:51:53","modified_gmt":"2024-03-29T20:51:53","slug":"lv-soap","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/","title":{"rendered":"LV &#8211; SOAP"},"content":{"rendered":"\n<div style=\"height:28px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\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><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Lead Validation 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=\"\">try\n{\n    \/\/Will Us the endpoing with the \"Primary\" name in the web.config\n    wsClient = new LVSoapServiceClient(\"Primary\");\n    response = wsClient.ValidateLead_V3(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    if (response == null || (response.Error != null &amp;&amp; response.Error.TypeCode == \"3\"))\n    {\n        throw new Exception();\n    }\n}\ncatch\n{\n    wsClient = new LVSoapServiceClient(\"Backup\");\n    response = wsClient.ValidateLead_V3(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<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Lead Validation 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=\"\">ContactInternational wsResponse = null;\nLVSoapServiceLocator locator = new LVSoapServiceLocator();\nlocator.setDOTSLeadValidationInternationalEndpointAddress(\"https:\/\/trial.serviceobjects.com\/LV\/soap.svc\/SOAP\");\nILVSoapService lv = locator.getDOTSLeadValidationInternational();\nDOTSLeadValidationInternationalStub soap = (DOTSLeadValidationInternationalStub)lv;\nsoap.setTimeout(20000);\ntry\n{\n    wsResponse = soap.validateLead_V3(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    if (wsResponse == null ||(wsResponse.getError() != null &amp;&amp; wsResponse.getError().getTypeCode().equals(\"3\")))\n    {\n        throw new Exception();\n    }\n}\ncatch (Exception ex)\n{\n    \/\/Use backup URL here i.e. swsbackup.serviceobjects.com when a production key is purchased\n    locator.setDOTSLeadValidationInternationalEndpointAddress(\"https:\/\/trial.serviceobjects.com\/LV\/soap.svc\/SOAP\");\n    ILVSoapService lvBackup = locator.getDOTSLeadValidationInternational();\n    DOTSLeadValidationInternationalStub soapBackup = (DOTSLeadValidationInternationalStub)lv;\n    soap.setTimeout(20000);\n      \n    wsResponse = soapBackup.validateLead_V3(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":4996,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5043","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>LV - SOAP<\/title>\n<meta name=\"description\" content=\"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the &quot;Primary&quot; name in the web.config wsClient = new\" \/>\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=\"LV - SOAP\" \/>\n<meta property=\"og:description\" content=\"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the &quot;Primary&quot; name in the web.config wsClient = new\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-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-29T20:51:53+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-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/\",\"name\":\"LV - SOAP\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-13T16:46:45+00:00\",\"dateModified\":\"2024-03-29T20:51:53+00:00\",\"description\":\"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the \\\"Primary\\\" name in the web.config wsClient = new\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Lead Validation\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LV &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"LV &#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":"LV - SOAP","description":"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the \"Primary\" name in the web.config wsClient = new","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":"LV - SOAP","og_description":"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the \"Primary\" name in the web.config wsClient = new","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2024-03-29T20:51:53+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-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/","name":"LV - SOAP","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-13T16:46:45+00:00","dateModified":"2024-03-29T20:51:53+00:00","description":"C#Java Lead Validation C# Code Snippet try { \/\/Will Us the endpoing with the \"Primary\" name in the web.config wsClient = new","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/lv-soap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Lead Validation","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/"},{"@type":"ListItem","position":3,"name":"LV &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation\/lv-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"LV &#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\/5043","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=5043"}],"version-history":[{"count":7,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5043\/revisions"}],"predecessor-version":[{"id":10062,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5043\/revisions\/10062"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/4996"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=5043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}