- Joined
- Dec 3, 2020
- Messages
- 42
- Reaction score
- 42
Hello everybody,
I am trying to connect 3CX to my ERP system to get customer information for incoming calls. I used the CRM API wizard to generate the attached XML and imported it. When I fill the base URL parameter and test the connection, I get the following message:
When I open the request URL from above in my browser, I get the following result:
I don't see the error here, what is going wrong?
Regards,
Christoph
I am trying to connect 3CX to my ERP system to get customer information for incoming calls. I used the CRM API wizard to generate the attached XML and imported it. When I fill the base URL parameter and test the connection, I get the following message:
Code:
Data at the root level is invalid. Line 1, position 1.
Code:
Started scenario with empty id
Request text: http://b75.xxxx.de:8100/xxxxx/callin/3cx/search/1234567890
Response text: {
"id": "508986-0@1",
"firstname": "",
"lastname": "",
"company": "Christoph Krammer",
"phone": "+49 1234 567890",
"mobile": "+49 111 0000000"
}
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at CrmIntegration.XmlResponseParser.Parse(String responseText)
at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
at CrmIntegration.ScenarioProcessorBase.Execute(ProtocolScenario scenario, CancellationToken token)
at CrmIntegration.CrmProcessor.GetContactInfoFromCrm(String contactNumber, Boolean isInboundCall, String destinationEmail, Boolean createIfNotFound, CancellationToken token)
When I open the request URL from above in my browser, I get the following result:
Code:
<?xml version='1.0' encoding='UTF-8'?>
<PbxContact>
<id>508986-0@1</id>
<firstname />
<lastname />
<company>Christoph Krammer</company>
<phone>+49 1234 567890</phone>
<mobile>+49 111 0000000</mobile>
</PbxContact>
I don't see the error here, what is going wrong?
Regards,
Christoph