简体   繁体   中英

Deploying WCF Service on Windows Azure

Just to clarify I am working for the first time with azure. I created a Restful WCF Service a few months ago with SQL Server connection. I deployed the WCF on IIS with the database on SQL Server Express 2012. The service works with no problems.

[OperationContract]
[WebGet(UriTemplate = "feed/{ID}/{Rating}/{Feed}", ResponseFormat = WebMessageFormat.Json)]
string feed(string ID, string Rating, string Feed);

Now I must move the WCF service to Azure. The problem is I have no idea how to deploy the WCF to azure and if it is even possible to deploy the WCF to azure. The database have been moved to azure.

The principal is relatively easy depending on whether you want a Azure WebSite or Cloud Role - for Cloud...

  • Ensure you have the Azure SDK installed from the WebPlatform Installer.
  • Add a WCF Cloud Service Role to your project
  • Expand the out the project and right click onto the 'Roles' node selecting 'Add' and then existing project from your solution.
  • Publish the role using your Azure credentials.

These two articles provide an end-to-end tutorial that goes into more depth...

With this one more specific to Azure Websites

HTH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM