C# 如何将我的自定义WCF SOAP服务上载到远程服务器?

C# 如何将我的自定义WCF SOAP服务上载到远程服务器?,c#,web-services,visual-studio,wcf,C#,Web Services,Visual Studio,Wcf,各位!!我有定制的WCFSOAP服务(带有获取字符串的getAnswer方法的聊天机器人)和我的客户机(网站)。我的iSeries设备: namespace WcfServiceLab1 { [ServiceContract] public interface IService1 { [OperationContract] string GetChatbotAnswerUsingDataContract(string question);

各位!!我有定制的WCFSOAP服务(带有获取字符串的getAnswer方法的聊天机器人)和我的客户机(网站)。我的iSeries设备

namespace WcfServiceLab1
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        string GetChatbotAnswerUsingDataContract(string question);
    }
}
namespace WcfServiceLab1
{
    public class Service1 : IService1
    {
        public string GetChatbotAnswerUsingDataContract(string question)
        {
            Chatbot chatbot = new Chatbot();
            return chatbot.GetAnswer(question);
        }
    }
}
[HttpPost]
        public ActionResult Create(string question)
        {
            try
            {
                ViewBag.ChatbotAnswer = obj.GetChatbotAnswerUsingDataContract(question.ToLower());
                ViewBag.YourQuestion = question;
                return View("Index");
            }
            catch
            {
                return View("Index");
            }
        }
服务.svc

namespace WcfServiceLab1
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        string GetChatbotAnswerUsingDataContract(string question);
    }
}
namespace WcfServiceLab1
{
    public class Service1 : IService1
    {
        public string GetChatbotAnswerUsingDataContract(string question)
        {
            Chatbot chatbot = new Chatbot();
            return chatbot.GetAnswer(question);
        }
    }
}
[HttpPost]
        public ActionResult Create(string question)
        {
            try
            {
                ViewBag.ChatbotAnswer = obj.GetChatbotAnswerUsingDataContract(question.ToLower());
                ViewBag.YourQuestion = question;
                return View("Index");
            }
            catch
            {
                return View("Index");
            }
        }
和我的聊天室控制器

namespace WcfServiceLab1
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        string GetChatbotAnswerUsingDataContract(string question);
    }
}
namespace WcfServiceLab1
{
    public class Service1 : IService1
    {
        public string GetChatbotAnswerUsingDataContract(string question)
        {
            Chatbot chatbot = new Chatbot();
            return chatbot.GetAnswer(question);
        }
    }
}
[HttpPost]
        public ActionResult Create(string question)
        {
            try
            {
                ViewBag.ChatbotAnswer = obj.GetChatbotAnswerUsingDataContract(question.ToLower());
                ViewBag.YourQuestion = question;
                return View("Index");
            }
            catch
            {
                return View("Index");
            }
        }
它可以在本地主机上运行,但当我使用FTP在免费主机上上传我的WCF服务并尝试添加服务引用时,VisualStudio没有找到我的服务。在这里:
如何在远程服务器上“安装”wcf服务?我该怎么办?

web服务器运行Apache,因此无法承载WCF服务,当前文件内容正在原始提供,例如,也许我应该尝试使用Microsoft Azure?