Answers.Body: <p>See <a href="https://www.civismtp.com/drupal/accountsetup#invalidproxy" rel="nofollow noreferrer">https://www.civismtp.com/drupal/accountsetup#invalidproxy</a> - for how to troubleshoot/debug. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-15T19:19:54.613Z
Answers.Text: Using the debugging script in this, I was able to determine that I needed to comment out a line in the civicrm.settings.php file that was defining the memcache prefix, which apparently didn't need to be done. Once I commented that out the authentication error went away.
Answers.UserDisplayName: Christia
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-10T23:29:49.050Z
Answers.LastActivityDate: 2017-02-10T23:29:49.050Z
Answers.UserDisplayName: KarinG - Semper IT
Answers.Body: <p>The function of the SOAP proxy is somewhere hidden in the CiviSMTP documentation. In their <a href="https://www.civismtp.com/drupal/accountsetup#invalidproxy" rel="nofollow noreferrer">documentation</a>  they write</p>
  
  <blockquote>
    <p>The CiviCRM Soap script comes with CiviCRM installation and can be
    accessed via the web after you have successfully installed and
    activated CiviCRM and CiviMail. This is the URL that we will be
    contacting about bounces, unsubscribes, replies, and etc.</p>
  </blockquote>
  
  <p>So, when an email bounces and is returned to CiviSMTP they call the Soap Proxy to report this to the CiviCRM customer. I expect it sets the email address <em>On Hold</em>.</p>
  
  <p>Issue <a href="https://issues.civicrm.org/jira/browse/CRM-12343" rel="nofollow noreferrer">CRM-12343</a> gives me the impression that the SOAP Proxy is created specially for CiviSMTP.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-13T10:59:15.717Z
Answers.LastActivityDate: 2017-02-13T10:59:15.717Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>What is a SOAP Proxy and why is it invalid?</p>
  
  <p>We use CiviSMTP for our SMTP provider. When I test the settings that were entered by our previous developer in our SMTP provider account settings, I get the following error:</p>
  
  <blockquote>
    <p>Civimail User Check : it appears that the proxy URL that you gave is
    invalid</p>
  </blockquote>
  
  <p>The SOAP proxy URL entered is: <code>https://www.example.com/sites/all/modules/civicrm/extern/soap.php</code></p>
  
  <p>I am not sure what effect, if any, that this is having on our website. I believe it was working correctly until I upgraded CiviCRM from 4.3.8 to 4.7.15.</p>
  
  <p>Edit: I looked at the patch that needs to be applied to 4.7.x versions of CiviCRM but didn't apply it because the code in my version doesn't match what's in the advice for the <a href="https://forum.civicrm.org/index.php?topic=37195.0" rel="nofollow noreferrer">patch here</a>.</p>
  
  <p>Here is the debug output for <a href="http://www.civismtp.com/drupal/files/check_soap.php.txt" rel="nofollow noreferrer">this debugging script</a>:</p>
  
  <pre><code>SoapFault exception: [Client] looks like we got no XML document in /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php:13
  Stack trace:
  #0 /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php(13): SoapClient-&gt;__call('authenticate', Array)
  #1 /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php(13): SoapClient-&gt;authenticate('example_username', 'example_password')
  #2 {main}
  Raw Response:
  &lt;br /&gt;
  &lt;b&gt;Notice&lt;/b&gt;:  Constant CIVICRM_MEMCACHE_PREFIX already defined in &lt;b&gt;/var/www/html/example/docroot/sites/default/civicrm.settings.php&lt;/b&gt; on line &lt;b&gt;26&lt;/b&gt;&lt;br /&gt;
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
  </code></pre>
  
Tags: <drupal><civimail><smtp>
Title: SOAP Proxy URL is invalid
ThreadText: # SOAP Proxy URL is invalid
  
  (Asked by: username_0 on 2017-02-10)
  
  What is a SOAP Proxy and why is it invalid?
  
  We use CiviSMTP for our SMTP provider. When I test the settings that were entered by our previous developer in our SMTP provider account settings, I get the following error:
  
  > Civimail User Check : it appears that the proxy URL that you gave is
  > invalid
  
  The SOAP proxy URL entered is: `https://www.example.com/sites/all/modules/civicrm/extern/soap.php`
  
  I am not sure what effect, if any, that this is having on our website. I believe it was working correctly until I upgraded CiviCRM from 4.3.8 to 4.7.15.
  
  Edit: I looked at the patch that needs to be applied to 4.7.x versions of CiviCRM but didn't apply it because the code in my version doesn't match what's in the advice for the [patch here](https://forum.civicrm.org/index.php?topic=37195.0).
  
  Here is the debug output for [this debugging script](http://www.civismtp.com/drupal/files/check_soap.php.txt):
  
  ```
  SoapFault exception: [Client] looks like we got no XML document in /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php:13
  Stack trace:
  #0 /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php(13): SoapClient->__call('authenticate', Array)
  #1 /var/www/html/example/docroot/sites/all/modules/civicrm/check_soap.php(13): SoapClient->authenticate('example_username', 'example_password')
  #2 {main}
  Raw Response:
  <br />
  <b>Notice</b>:  Constant CIVICRM_MEMCACHE_PREFIX already defined in <b>/var/www/html/example/docroot/sites/default/civicrm.settings.php</b> on line <b>26</b><br />
  <?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
  
  ```
  
  **Tags:** drupal, civimail, smtp
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-02-10. Score: 1 | Accepted answer
  
  See <https://www.civismtp.com/drupal/accountsetup#invalidproxy> - for how to troubleshoot/debug.
  
  > **Comments:**
  > **username_0**: Using the debugging script in this, I was able to determine that I needed to comment out a line in the civicrm.settings.php file that was defining the memcache prefix, which apparently didn't need to be done. Once I commented that out the authentication error went away.  
  
  ---
  
  ### Answer by username_2 on 2017-02-13. Score: 0
  
  The function of the SOAP proxy is somewhere hidden in the CiviSMTP documentation. In their [documentation](https://www.civismtp.com/drupal/accountsetup#invalidproxy) they write
  
  > The CiviCRM Soap script comes with CiviCRM installation and can be
  > accessed via the web after you have successfully installed and
  > activated CiviCRM and CiviMail. This is the URL that we will be
  > contacting about bounces, unsubscribes, replies, and etc.
  
  So, when an email bounces and is returned to CiviSMTP they call the Soap Proxy to report this to the CiviCRM customer. I expect it sets the email address *On Hold*.
  
  Issue [CRM-12343](https://issues.civicrm.org/jira/browse/CRM-12343) gives me the impression that the SOAP Proxy is created specially for CiviSMTP.
  
  
  ---
  
  