求助一个关于WEBSERVICE的问题

hebpay 2012-03-03 02:11:54
某短信接口提供的webservice地址
http://service2.winic.org/Service.asmx

我在本地调试都正常.
但是传到服务器上报错.
代码如下:
using smsInterface.org.winic.service2;


public static class SmsInterface
{
public static string getUserInfo(string uid,string password)
{
Service1 sms = new Service1();
return sms.GetUserInfo(uid, password);
}
}
//============================================================================
using System;

namespace test
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(SmsInterface.getUserInfo("test", "123456"));
}
}
}
//================================================================================
正显示应该是:
-03/Null/Null/Null/Null/Null/Null/Null/Null/Null
//================================================================================
但是现在报错说
Server Error in '/' Application.
--------------------------------------------------------------------------------

服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SoapException: 服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1485877
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +221
smsInterface.org.winic.service2.Service1.GetUserInfo(String uid, String pwd) +123
SmsInterface.ss(String uid, String password) +79
test._Default.Page_Load(Object sender, EventArgs e) +55
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +61
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1966

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1


同样的文件我传到另一个服务器上正常.只有现在的服务器上有问题.怀疑是权限问题.但是找不到原因.

...全文
126 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanzila 2012-04-27
  • 打赏
  • 举报
回复
楼主,我也在烦这个SMS 的WEBSERVICE啊。毕业设计T.T T.T T.T T.T T.T
我想问在调用时,是不是先要注册账户和密码呢?

5,657

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧