Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created December 10, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/7acc53954cc1a9960732a5634d7413a5 to your computer and use it in GitHub Desktop.
Save justinyoo/7acc53954cc1a9960732a5634d7413a5 to your computer and use it in GitHub Desktop.
SOAP over Azure API Management, Logic Apps and Functions
public partial class Service1Client : ClientBase<IService1>, IService1
{
public Service1Client()
{
}
// This constructor is of no use for Azure Functions
// because it doesn't use Web.config or App.config
public Service1Client(string endpointConfigurationName)
: base(endpointConfigurationName)
{
}
// This constructor is of no use for Azure Functions
// because it doesn't use Web.config or App.config
public Service1Client(string endpointConfigurationName, string remoteAddress)
: base(endpointConfigurationName, remoteAddress)
{
}
// This constructor is of no use for Azure Functions
// because it doesn't use Web.config or App.config
public Service1Client(string endpointConfigurationName, EndpointAddress remoteAddress)
: base(endpointConfigurationName, remoteAddress)
{
}
// Only this constructor is used for Azure Functions
public Service1Client(Binding binding, EndpointAddress remoteAddress)
: base(binding, remoteAddress)
{
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment