Developer forum

Forum » Integration » Integration framework - custom request using Endpoint Management and OAuth

Integration framework - custom request using Endpoint Management and OAuth

Jonas Krarup Dam
Reply

Hi, 

Is there a simple way to send a custom request to BC using Endpoint Management and OAuth? 

We have live integration up and running, and need to send a custom request to the same endpoint that is used for this. 

How can I do this? 

Thanks, Jonas


Replies

 
Jonas Krarup Dam
Reply

I figured it out!

In case anyone else needs this, here is the code:

 

        private static string execute( string request )
        {

            string response = null;
            {
                EndpointService endpointService = new EndpointService();
                var endpoints = endpointService.GetEndpoints();
                var endpoint = endpoints.FirstOrDefault( e => e.UseInLiveIntegration );
                response = endpointService.Execute( endpoint.Id, endpointService.GetDynamicwebServiceSoapBody( request ) );
            }
            return response;
        }

 

You must be logged in to post in the forum