[英]using ASMX webservice in remote server
I'm going to use a web service for sending SMS, I made an small test app in my local system (VS2010, ASP.NET), it worked fine, but now I'm going to integrate this web service in my remote server, I'm confused about using this service on the remote server, I don't know exactly what and where I should copy to my server? 我将使用Web服务发送SMS,在本地系统(VS2010,ASP.NET)中制作了一个小型测试应用程序,它运行良好,但现在我要将此Web服务集成到远程服务器中,对于在远程服务器上使用此服务感到困惑,我不知道应该复制什么内容以及在何处复制到服务器? also how should I change my web.config and/or other files in order to support this web service, this is how I use it in my local app: 还应该如何更改web.config和/或其他文件以支持此Web服务,这就是我在本地应用程序中使用它的方式:
com.panelesms.www.Send s = new com.panelesms.www.Send();
long[] rec = null;
byte[] status = null;
string[] to = new string[1];
to[0] = "mynumber";
int returnValue = s.SendSms("username", "pass", to, "sendernumber", "text", false, "", ref rec, ref status);
but com.panelesms.www.Send is not detected on remote server, I think I'm missing something, for example making changes in web.config, or copying some files to server so that com.panelesms.www.Send can be used as a valid type, this is my service address: http://www.panelesms.com/Post/Send.asmx 但是在远程服务器上未检测到com.panelesms.www.Send,我想我缺少一些东西,例如在web.config中进行更改,或将一些文件复制到服务器以便可以使用com.panelesms.www.Send作为有效类型,这是我的服务地址: http : //www.panelesms.com/Post/Send.asmx
You can change the web service proxy address in your web.config file to point to the service http://www.panelesms.com/Post/Send.asmx . 您可以在web.config文件中更改Web服务代理地址,以指向服务http://www.panelesms.com/Post/Send.asmx 。
If you are going to expose it externally, do invest time in protecting your services 如果您打算在外部公开它,请花时间保护您的服务
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.