ScottBub | 2017-03-02 15:19:32 UTC | #1
Hello,
We are developing a web service that uses the Bridge Server, Data Dip Connector, and Connector Actions. I understand that I can use Postman to test calling to PureCloud, but how do I test that the connector actions are sending the information to the web service?
Do you actually have to publish a call flow and go through the IVR to test the connector actions?
tim.smith | 2017-03-02 15:38:46 UTC | #2
There isn't currently any functionality to have PureCloud send a test message. You'll have to publish a flow and test it by sending a call through it.
ScottBub | 2017-03-02 15:50:46 UTC | #3
Thanks for the response. Is there anywhere on this site where I can submit an idea to get this on the road map?
tim.smith | 2017-03-02 15:55:39 UTC | #4
No, but it's already planned. :)
tim.smith | 2017-03-02 16:02:16 UTC | #5
I was only thinking of having PureCloud initiate the request, but it is possible to trigger the bridge server to make requests to your service without PureCloud initiating it. More info here:
https://developer.mypurecloud.com/forum/t/push-retrieve-information-out-of-purecloud-into-salesforce/791/6
ScottBub | 2017-03-02 16:07:19 UTC | #6
Thanks, guys. I will follow these instructions and see if I have any questions.
juliocezargomes | 2017-03-07 20:10:16 UTC | #7
Tim,
I cannot understand where to define the endpoint, there are two places where you define the endpoint in the connections and actions option. What is the difference between this two options?
Richard.Schott | 2017-03-07 21:01:29 UTC | #8
The connector URL is the base service url, to which other URI's will be appended; the action endpoint can either be a fully qualified URL or a referential URI that gets appended to the connector service URL. For example, if you set the service URL at the connector level to "https://foo.com" and you set the action URL to "/myfancyMethod", the web service call will be delivered to https://foo.com/myfancyMethod. If you enter "https://bar.com/myfancyMethod", the fully qualified URL will override the connector service URL that is configured and send the web service call to https://bar.com/myfancyMethod. This is documented here: https://help.mypurecloud.com/articles/add-bridge-actions-web-services-data-dip-connector/#citem_a182-03ab . Let me know if this is unclear.and we can go into more detail.
juliocezargomes | 2017-03-08 17:23:09 UTC | #9
We have followed the steps described above and now we are getting the following error and using Postman to send the request: "ServerError","Message":"Error during Action execution."}"}].
We have already downloaded the logs (log level as DEBUG) but It shows only this error message.
Is there any way to investigate cause of this error?
Thanks
juliocezargomes | 2017-03-08 17:51:46 UTC | #10
We were able to find an option to generate the logs and we found on the connector logs that we have an
System.Net.WebException: The operation has timed out
Looks like our machine is not accessible from the PureCloud server.. Is there a way to test this connection from purecloud?
regards,
julio
Richard.Schott | 2017-03-17 18:44:30 UTC | #11
Julio, I would first test the your web service directly. Within postman, create a POST call to the endpoint that you have defined for your action using the schema you have defined. Once you've established that you access the web service at the endpoint you have defined, I would then suggest going to the machine running the Bridge Server and doing a simple ping check (or possibly postman call) to the web service from that machine. Obviously the connector is going to require network access to the web service it is attempting to communicate with; if it does not have that access, you will need to begin troubleshooting your network until there is a routable path from the bridge server to your web service.
ScottBub | 2017-03-18 12:55:03 UTC | #12
Hello Richard,
We were able to figure out what the issue was. We ere able to ping the server, but we weren't able to TCPing the server. We have since got it working.
Thank you for the response.
system | 2017-08-28 19:32:33 UTC | #13
This post was migrated from the old Developer Forum.
ref: 995