{"id":5116,"date":"2022-11-13T20:17:40","date_gmt":"2022-11-13T20:17:40","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=5116"},"modified":"2025-09-26T08:59:43","modified_gmt":"2025-09-26T15:59:43","slug":"pa2-soap","status":"publish","type":"page","link":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/","title":{"rendered":"PA2 &#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=\"Python\" tabindex=\"0\">Python<\/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>Phone Append 2 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=\"\">\ufeffusing System;\nusing System.Threading.Tasks;\nusing PA2Reference;\n\nnamespace phone_append_2_dot_net.SOAP\n{\n    \/\/\/ &lt;summary>\n    \/\/\/ Provides functionality to call the ServiceObjects PhoneAppend2 (PA2) SOAP service's PhoneAppend operation,\n    \/\/\/ retrieving phone number information for a contact based on provided inputs with fallback to a backup endpoint for reliability in live mode.\n    \/\/\/ &lt;\/summary>\n    public class PhoneAppendValidation\n    {\n        private const string LiveBaseUrl = \"https:\/\/sws.serviceobjects.com\/PA2\/api.svc\/soap\";\n        private const string BackupBaseUrl = \"https:\/\/swsbackup.serviceobjects.com\/PA2\/api.svc\/soap\";\n        private const string TrialBaseUrl = \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc\/soap\";\n\n        private readonly string _primaryUrl;\n        private readonly string _backupUrl;\n        private readonly int _timeoutMs;\n        private readonly bool _isLive;\n\n        \/\/\/ &lt;summary>\n        \/\/\/ Initializes URLs\/timeout\/IsLive.\n        \/\/\/ &lt;\/summary>\n        public PhoneAppendValidation(bool isLive)\n        {\n            _timeoutMs = 10000;\n            _isLive = isLive;\n\n            _primaryUrl = isLive ? LiveBaseUrl : TrialBaseUrl;\n            _backupUrl = isLive ? BackupBaseUrl : TrialBaseUrl;\n\n            if (string.IsNullOrWhiteSpace(_primaryUrl))\n                throw new InvalidOperationException(\"Primary URL not set.\");\n            if (string.IsNullOrWhiteSpace(_backupUrl))\n                throw new InvalidOperationException(\"Backup URL not set.\");\n        }\n\n        \/\/\/ &lt;summary>\n        \/\/\/ This operation returns the best available phone number match for a given contact, including phone number,\n        \/\/\/ name, address, city, state, postal code, residential status, certainty, and line type.\n        \/\/\/ &lt;\/summary>\n        \/\/\/ &lt;param name=\"FullName\">The full name of the contact. Optional if FirstName and LastName are provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"FirstName\">The first name of the contact. Optional if FullName is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"LastName\">The last name of the contact. Optional if FullName is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"Address\">Address line of the contact. Optional.&lt;\/param>\n        \/\/\/ &lt;param name=\"City\">The city of the contact. Optional if postal code is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"State\">The state of the contact. Optional if postal code is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"PostalCode\">The postal code of the contact. Optional if city and state are provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"LicenseKey\">The license key to authenticate the API request.&lt;\/param>\n        public async Task&lt;PhoneInfoResponse> PhoneAppendAsync(string FullName, string FirstName, string LastName, string Address, string City, string State, string PostalCode, string LicenseKey)\n        {\n            PhoneAppend2Client clientPrimary = null;\n            PhoneAppend2Client clientBackup = null;\n\n            try\n            {\n                \/\/ Attempt Primary\n                clientPrimary = new PhoneAppend2Client();\n                clientPrimary.Endpoint.Address = new System.ServiceModel.EndpointAddress(_primaryUrl);\n                clientPrimary.InnerChannel.OperationTimeout = TimeSpan.FromMilliseconds(_timeoutMs);\n\n                PhoneInfoResponse response = await clientPrimary.PhoneAppendAsync(\n                    FullName, FirstName, LastName, Address, City, State, PostalCode, LicenseKey).ConfigureAwait(false);\n\n                if (_isLive &amp;&amp; !ValidResponse(response))\n                {\n                    throw new InvalidOperationException(\"Primary endpoint returned null or a fatal TypeCode=3 error for PhoneAppend\");\n                }\n                return response;\n            }\n            catch (Exception primaryEx)\n            {\n                try\n                {\n                    clientBackup = new PhoneAppend2Client();\n                    clientBackup.Endpoint.Address = new System.ServiceModel.EndpointAddress(_backupUrl);\n                    clientBackup.InnerChannel.OperationTimeout = TimeSpan.FromMilliseconds(_timeoutMs);\n\n                    return await clientBackup.PhoneAppendAsync(\n                        FullName, FirstName, LastName, Address, City, State, PostalCode, LicenseKey).ConfigureAwait(false);\n                }\n                catch (Exception backupEx)\n                {\n                    throw new InvalidOperationException(\n                        $\"Both primary and backup endpoints failed.\\n\" +\n                        $\"Primary error: {primaryEx.Message}\\n\" +\n                        $\"Backup error: {backupEx.Message}\");\n                }\n                finally\n                {\n                    clientBackup?.CloseAsync().GetAwaiter().GetResult();\n                }\n            }\n            finally\n            {\n                clientPrimary?.CloseAsync().GetAwaiter().GetResult();\n            }\n        }\n\n        private static bool ValidResponse(PhoneInfoResponse response)\n        {\n            return (response?.Error == null || response.Error.TypeCode != \"3\");\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>Phone Append 2 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=\"\">from suds.client import Client\nfrom suds import WebFault\nfrom suds.sudsobject import Object\nfrom typing import Optional\n\nclass PhoneAppendSoap:\n    def __init__(self, license_key: str, is_live: bool = True, timeout_ms: int = 15000):\n        \"\"\"\n        license_key: Service Objects PA2 license key.\n        is_live: Whether to use live or trial endpoints.\n        timeout_ms: SOAP call timeout in milliseconds.\n        \"\"\"\n        self.is_live = is_live\n        self.timeout = timeout_ms \/ 1000.0\n        self.license_key = license_key\n\n        # WSDL URLs\n        self._primary_wsdl = (\n            \"https:\/\/sws.serviceobjects.com\/PA2\/api.svc?wsdl\"\n            if is_live\n            else \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc?wsdl\"\n        )\n        self._backup_wsdl = (\n            \"https:\/\/swsbackup.serviceobjects.com\/PA2\/api.svc?wsdl\"\n            if is_live\n            else \"https:\/\/trial.serviceobjects.com\/PA2\/api.svc?wsdl\"\n        )\n\n    def get_phone_append(\n        self,\n        full_name: Optional[str] = None,\n        first_name: Optional[str] = None,\n        last_name: Optional[str] = None,\n        address: Optional[str] = None,\n        city: Optional[str] = None,\n        state: Optional[str] = None,\n        postal_code: Optional[str] = None\n    ) -> Object:\n        \"\"\"\n        Calls the PhoneAppend SOAP API to retrieve a phone number for a given residential contact.\n\n        Parameters:\n            full_name: The full name of the contact. Optional if first_name and last_name are provided.\n            first_name: The first name of the contact. Optional if full_name is provided.\n            last_name: The last name of the contact. Optional if full_name is provided.\n            address: Address line of the contact. Optional.\n            city: The city of the contact. Optional.\n            state: The state of the contact. Optional.\n            postal_code: The postal code of the contact. Optional.\n            license_key: Your ServiceObjects license key.\n            is_live: Determines whether to use the live or trial servers.\n            timeout_ms: Timeout, in milliseconds, for the call to the service.\n\n        Returns:\n            suds.sudsobject.Object: SOAP response containing phone information or error details.\n\n        Raises:\n            RuntimeError: If both primary and backup endpoints fail or return invalid responses.\n        \"\"\"\n        # Common kwargs for both calls\n        call_kwargs = dict(\n            FullName=full_name,\n            FirstName=first_name,\n            LastName=last_name,\n            Address=address,\n            City=city,\n            State=state,\n            PostalCode=postal_code,\n            LicenseKey=self.license_key,\n        )\n\n        # Attempt primary\n        try:\n            client = Client(self._primary_wsdl)\n            response = client.service.PhoneAppend(**call_kwargs)\n\n            # If response invalid or Error.TypeCode == \"3\", trigger fallback\n            if response is None or (\n                hasattr(response, \"Error\")\n                and response.Error\n                and response.Error.TypeCode == \"3\"\n            ):\n                raise ValueError(\"Primary returned no result or Error.TypeCode=3\")\n\n            return response\n\n        except (WebFault, ValueError, Exception) as primary_ex:\n            # Attempt backup\n            try:\n                client = Client(self._backup_wsdl)\n                response = client.service.PhoneAppend(**call_kwargs)\n                if response is None:\n                    raise ValueError(\"Backup returned no result\")\n                return response\n            except (WebFault, Exception) as backup_ex:\n                msg = (\n                    \"Both primary and backup endpoints failed.\\n\"\n                    f\"Primary error: {str(primary_ex)}\\n\"\n                    f\"Backup error: {str(backup_ex)}\"\n                )\n                raise RuntimeError(msg)<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p><strong>Phone Append 2 NodeJS 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=\"\">import { soap } from 'strong-soap';\n\n\/**\n * &lt;summary>\n * A class that provides functionality to call the ServiceObjects PhoneAppend2 (PA2) SOAP service's PhoneAppend endpoint,\n * retrieving phone number information for a contact based on provided inputs with fallback to a backup endpoint for reliability in live mode.\n * &lt;\/summary>\n *\/\nclass PhoneAppendSoap {\n    \/**\n     * &lt;summary>\n     * Initializes a new instance of the PhoneAppendSoap class with the provided input parameters,\n     * setting up primary and backup WSDL URLs based on the live\/trial mode.\n     * &lt;\/summary>\n     * @param {string} FullName - The full name of the contact. Optional if FirstName and LastName are provided.\n     * @param {string} FirstName - The first name of the contact. Optional if FullName is provided.\n     * @param {string} LastName - The last name of the contact. Optional if FullName is provided.\n     * @param {string} Address - Address line of the contact. Optional.\n     * @param {string} City - The city of the contact. Optional if postal code is provided.\n     * @param {string} State - The state of the contact. Optional if postal code is provided.\n     * @param {string} PostalCode - The postal code of the contact. Optional if city and state are provided.\n     * @param {string} LicenseKey - Your license key to use the service.\n     * @param {boolean} isLive - Value to determine whether to use the live or trial servers.\n     * @param {number} timeoutSeconds - Timeout, in seconds, for the call to the service.\n     * @throws {Error} Thrown if LicenseKey is empty or null.\n     *\/\n    constructor(FullName, FirstName, LastName, Address, City, State, PostalCode, LicenseKey, isLive = true, timeoutSeconds = 15) {\n\n        this.args = {\n            FullName,\n            FirstName,\n            LastName,\n            Address,\n            City,\n            State,\n            PostalCode,\n            LicenseKey\n        };\n\n        this.isLive = isLive;\n        this.timeoutSeconds = timeoutSeconds;\n\n        this.LiveBaseUrl = 'https:\/\/sws.serviceobjects.com\/PA2\/api.svc?wsdl';\n        this.BackupBaseUrl = 'https:\/\/swsbackup.serviceobjects.com\/PA2\/api.svc?wsdl';\n        this.TrialBaseUrl = 'https:\/\/trial.serviceobjects.com\/PA2\/api.svc?wsdl';\n\n        this._primaryWsdl = this.isLive ? this.LiveBaseUrl : this.TrialBaseUrl;\n        this._backupWsdl = this.isLive ? this.BackupBaseUrl : this.TrialBaseUrl;\n    }\n\n    \/**\n     * &lt;summary>\n     * Asynchronously calls the PhoneAppend SOAP endpoint, attempting the primary endpoint\n     * first and falling back to the backup if the response is invalid (Error.TypeCode == '3') in live mode\n     * or if the primary call fails.\n     * &lt;\/summary>\n     * @returns {Promise&lt;Object>} A promise that resolves to an object containing phone number details or an error.\n     * @throws {Error} Thrown if both primary and backup calls fail, with detailed error messages.\n     *\/\n    async invokeAsync() {\n        try {\n            const primaryResult = await this._callSoap(this._primaryWsdl, this.args);\n\n            if (this.isLive &amp;&amp; !this._isValid(primaryResult)) {\n                console.warn(\"Primary returned Error.TypeCode == '3', falling back to backup...\");\n                const backupResult = await this._callSoap(this._backupWsdl, this.args);\n                return backupResult;\n            }\n\n            return primaryResult;\n        } catch (primaryErr) {\n            try {\n                const backupResult = await this._callSoap(this._backupWsdl, this.args);\n                return backupResult;\n            } catch (backupErr) {\n                throw new Error(`Both primary and backup calls failed:\\nPrimary: ${primaryErr.message}\\nBackup: ${backupErr.message}`);\n            }\n        }\n    }\n\n    \/**\n     * &lt;summary>\n     * Performs a SOAP service call to the specified WSDL URL with the given arguments,\n     * creating a client and processing the response into an object.\n     * &lt;\/summary>\n     * @param {string} wsdlUrl - The WSDL URL of the SOAP service endpoint (primary or backup).\n     * @param {Object} args - The arguments to pass to the PhoneAppend method.\n     * @returns {Promise&lt;Object>} A promise that resolves to an object containing the SOAP response data.\n     * @throws {Error} Thrown if the SOAP client creation fails, the service call fails, or the response cannot be parsed.\n     *\/\n    _callSoap(wsdlUrl, args) {\n        return new Promise((resolve, reject) => {\n            soap.createClient(wsdlUrl, { timeout: this.timeoutSeconds * 1000 }, (err, client) => {\n                if (err) return reject(err);\n\n                client.PhoneAppend(args, (err, result) => {\n                    const response = result?.PhoneAppendResult;\n                    try {\n                        if (!response) {\n                            return reject(new Error(\"SOAP response is empty or undefined.\"));\n                        }\n                        resolve(response);\n                    } catch (parseErr) {\n                        reject(new Error(`Failed to parse SOAP response: ${parseErr.message}`));\n                    }\n                });\n            });\n        });\n    }\n\n    \/**\n     * &lt;summary>\n     * Checks if a SOAP response is valid by verifying that it exists and either has no Error object\n     * or the Error.TypeCode is not equal to '3'.\n     * &lt;\/summary>\n     * @param {Object} response - The response object to validate.\n     * @returns {boolean} True if the response is valid, false otherwise.\n     *\/\n    _isValid(response) {\n        return response &amp;&amp; (!response.Error || response.Error.TypeCode !== '3');\n    }\n}\n\nexport { PhoneAppendSoap };<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":5100,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5116","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PA2 - SOAP<\/title>\n<meta name=\"description\" content=\"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PA2 - SOAP\" \/>\n<meta property=\"og:description\" content=\"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-26T15:59:43+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:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/\",\"name\":\"PA2 - SOAP\",\"isPartOf\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-13T20:17:40+00:00\",\"dateModified\":\"2025-09-26T15:59:43+00:00\",\"description\":\"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {\",\"breadcrumb\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Phone Append 2\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PA2 &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"PA2 &#8211; SOAP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PA2 - SOAP","description":"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/","og_locale":"en_US","og_type":"article","og_title":"PA2 - SOAP","og_description":"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {","og_url":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2025-09-26T15:59:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/","url":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/","name":"PA2 - SOAP","isPartOf":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-13T20:17:40+00:00","dateModified":"2025-09-26T15:59:43+00:00","description":"C#PythonNodeJS Phone Append 2 C# Code Snippet \ufeffusing System; using System.Threading.Tasks; using PA2Reference; namespace phone_append_2_dot_net.SOAP {","breadcrumb":{"@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/pa2-soap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Phone Append 2","item":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/"},{"@type":"ListItem","position":3,"name":"PA2 &#8211; Code Snippets and Sample Code","item":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-append-2\/pa2-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"PA2 &#8211; SOAP"}]},{"@type":"WebSite","@id":"https:\/\/www.serviceobjects.com\/docs\/#website","url":"https:\/\/www.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/www.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=5116"}],"version-history":[{"count":12,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5116\/revisions"}],"predecessor-version":[{"id":12306,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5116\/revisions\/12306"}],"up":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5100"}],"wp:attachment":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=5116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}