Cookies on custom action web services data dip connector

We have a custom action setup to hit a rest web service using the web services data dip connector. We need to pass a cookie along with the request but I not see a way to manipulate cookies or headers on the request that is sent from ININ. Is this possible and if so, how would we go about setting this up? I noticed there are advanced settings on the bridge action, but I was unable to find any documentation as to what could be passed here.

Hi Jonathan,

Unfortunately, there is no way to modify the cookies or headers sent using the Web Services Datadip Connector. At the moment, the best way for you to accomplish this would be to create a Web Service to act as an intermediary step. The Web Service could receive a request from our Web Services Datadip Connector, add whatever headers and cookies it needs, and then forward that payload on to its destination. It would then have to take the reply and use that to reply back to the Web Services Datadip Connector in the specified format.

The development team is currently working on improvements to our datadip connectors. I have made note of your use case of modifying headers and cookies associated with Web Services requests.

Please reply here if you have any follow-up questions!

Jonathan,

I'd like to understand your use case a little better. Can you please walk me through how you'd intend to leverage a cookie in data action? I can certainly see where having access to modify headers be valuable in a REST web service call, but I seem to be overlooking where a cookie would fit into the workflow.

Thanks

Our current api requires a few cookies to be set (for instance 1 is used for session tracking). We have no plans to use this within the call flow, however the backend system would use something like a session cookie for various things such as analytics tracking. We can probably work around this limitation, but it will likely require a code change and / or proxy to simulate the desired behavior.

I have a similar requirement as the OP. I need to set an Authorization HTTP header in the data dip request to the custom web service we built. My question is about the "Web Service" suggestion. Where should that web service reside, inside the PureCloud ecosystem or outside? If it is inside can someone point me to docs that describe how to build such a service.

WSDD docs: https://developer.mypurecloud.com/api/webservice-datadip/

Bridge server docs: https://help.mypurecloud.com/articles/bridge-platform/

Thanks for your response Tim. I am using a DataDip to connect to a web service I built. I need to authenticate the DataDip request using an HTTP Authorization token set on the request that originates from DataDip. I don't see how to make this happen from the docs. Is there a way?

I notice on the Bridge Action -> Configuration -> Advanced tab there is an empty hash. Is this a way to configure custom HTTP headers? What can we developers use this hash for? I looked on the PureCloud docs but didn't see information about this tab. Thanks in advance.

This is the purpose of creating a middleware service. The manner in which PureCloud invokes a WSDD integration service is not customizable, though the request/response payload is via a custom action. In your case, you'll need to build a service that can accept the request from PureCloud and then make requests to your external web service that requires the authorization header. Your middleware service will then handle the response, reformat it if necessary, and send it back to PureCloud as the WSDD response.

You may find this blog/open source example useful: https://developer.mypurecloud.com/blog/2017/05/10/implementing-wsdd-connector/