简体   繁体   English

在远程服务器中使用ASMX Web服务

[英]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.

相关问题 php服务器使用asmx webservice时出现webservice问题 - webservice issue while consuming asmx webservice by php server 在WCF或基于ASMX的Web服务中使用计时器? - Using Timer In WCF Or ASMX based webservice? 我的asmx Web服务在本地工作,但在远程IIS 7上部署时不工作 - My asmx webservice works locally but not when deployed on remote IIS 7 如何使用Ajax从纯HTML调用远程服务器上托管的.asmx Web服务 - How to call .asmx web service hosted on Remote server from plain html using ajax SoapException Server无法在MVC站点中处理ASMX Web服务上的请求 - SoapException Server was unable to process request on ASMX webservice in MVC site Json对象返回无法使用asp.net中的Web服务(.asmx) - Json object return not working using webservice (.asmx) in asp.net 使用SOAP Client 3.0从经典ASP消费ASMX Webservice - Consume ASMX Webservice From Classic ASP Using SOAP Client 3.0 .NET-在C#中使用WebRequest访问Webservice(.asmx)方法? - .NET - Access webservice (.asmx) method using WebRequest in c#? 使用NUnit测试ASMX Web服务并传输会话状态 - Testing ASMX webservice using NUnit and transferring session state 使用javascript从另一个网站/ webapp调用webservice(.asmx) - Call a webservice(.asmx) from another website/webapp using javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM