Copy link to clipboard
Copied
I am trying to connect from my company server to the Business Catalyst site using the API to download the contacts from the CRM on a regular basis. I followed the instructions on at http://kb.worldsecuresystems.com/850/bc_850.html?bc-partner (Using web services to connect your site to an external customer database) and think I've almost got it, but when I post the request, it returns the following: ERROR: A server error has occurred.
I am using the following code:
POST https://secure.worldsecuresystems.com/catalystwebservice/catalystcrmwebservice.asmx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice/ContactList_Retrieve"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:body>
<ContactList_Retrieve xmlns="http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice">
<username>MyBusinessCatalystAdminUsername</username>
<password>MyPassword</password>
<siteId>MySiteID from my Dashboard</siteId>
<lastUpdateDate>Today's Date</lastUpdateDate>
<recordStart>0</recordStart>
<moreRecords>True</moreRecords>
</ContactList_Retrieve>
</soap:Body>
</soap:Envelope>
I am submitting the request using Microsoft Msxml2.XMLHTTP.3.0 object in ASP. I know the code for submitting works with other web services, so I think there is something I'm missing when submitting this to Business Catalyst.
Please provide any feedback or suggestions you might have so I can get this working.
Thank you,
Colin Anderson
Copy link to clipboard
Copied
You are posting to the wrong URL, post to your website's URL.... https://<YOURWEBSITE>.worldsecuresystems.com
Also what do you date formats look like? You need to send them in the correct format BC wants which is like this 1980-01-01T00:00:00
You also *might* have to start from record 1, can't remember if BC starts at 0 or 1