2

I have a simple ASP.Net Web API set up that triggers a process. I would like to call this API from SSIS. I am able to call a web service but am not sure how to call an API link since there is no WSDL.

Is there a way to do this without having to use AxtiveX scripting?

John S
  • 7,909
  • 21
  • 77
  • 145

2 Answers2

4

I haven't tried this before, but you could create a Script Task and use WebClient Class by referencing System.Web. If you take a look at Calling Web Api service from a .NET 2.0 client, you should be able to amend this to call your Web API.

This is a stab in the dark, and I might get downvoted, but it might be a starting point.

EDIT: I did some more digging around, and found a similar question here, it's not calling a Web API, but it is making a HTP Request etc How to make an HTTP request from SSIS?

Community
  • 1
  • 1
Christian Phillips
  • 18,399
  • 8
  • 53
  • 82
1

Another stab in the dark here, since I haven't tried this either...

Use ChristianDev's method to retrieve the XML and store it in a variable to use with the XML source.

Metaphor
  • 6,157
  • 10
  • 54
  • 77