Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Azure: Consuming Third Party Web Service

Tags:

azure

I have searched a lot on this topic but didnt get any satifactory answer.

In Windows Azure how can we consume an external (third party) Web Service from the worker roles? Is it as simple as using a web reference in the solution or is it necessary to use Azure Service Bus?

like image 771
Saurabh R S Avatar asked Feb 23 '23 21:02

Saurabh R S


2 Answers

It's as simple as calling the webservice using whatever method you need (REST, SOAP, etc.). For .NET developers using .asmx or WCF SOAP services, just generate the proxy like you normally would. In this model, there is no difference between what you do onpremises when the cloud is the client.

You would look at using the ServiceBus when you are hosting your own services (as opposed to consuming them), typically behind firewalls onpremises, and you want to give secure access to them or integrate them into cloud scenarios. There are other scenarios and capabilities of course, but that is a main one. If you simply want to consume another web service, the ServiceBus has nothing to do with that.

like image 190
dunnry Avatar answered Mar 05 '23 13:03

dunnry


As long as the 3rd-party web service endpoint is reachable, use it the same way you'd use it from an on-premises server. If you need to connect to a service endpoint behind someone's firewall, then you'd want to consider AppFabric Service Bus.

Just remember that you'll be paying for bandwidth out of the data center (unless the 3rd-party web service is Windows Azure homed, and in the same data center).

like image 30
David Makogon Avatar answered Mar 05 '23 14:03

David Makogon