随笔分类 - .Net技术总结
摘要:下载最新的Axis2,在命令行中定位到bin目录下然后执行命令wsdl2java.bat -uri后面加webservice地址如:http://localhost/MyServices/MyServices.asmx?WSDL在bin目录下会生成一个src文件夹,将里面的java源文件拷贝到项目中...
阅读全文
摘要:用VS2012写了一个WebService程序,部署到IIS运行时提示如下错误:HTTP 错误 500.19 - Internal Server Error无法访问请求的页面,因为该页的相关配置数据无效。解决办法:找到应用程序所在目录,右键设置其安全,在用户中加入AuthenticatedUse...
阅读全文
摘要:/// /// 把对象转换为JSON字符串 /// public static string GetJson(T obj) { //记住 添加引用 System.ServiceModel.Web /** * 如果不添加上面的引用,System.Runtime.Serialization.Json...
阅读全文
摘要:public static string ObjToStr(object ob) { if (ob == null) { return string.Empty; } else return ob.ToString(); } public static string GetJsonByDataset...
阅读全文
摘要:系统是windows xp sp3,vs2010。安装了iis 5.1 ,创建了虚拟目录之后copy进去一个web sercices测试下能不能正常工作。出现如下问题:访问 IIS 元数据库失败。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致...
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;usin...
阅读全文
摘要:在文本框的onkeypress事件中加入:onkeypress="if((event.keyCode)==13){event.keyCode=9;js函数名称();}"
阅读全文
摘要:1.EnableIIS's32-bitsupportcscript%SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbsSETW3SVC/AppPools/Enable32bitAppOnWin6412.InstalltheIIS32-bitextensions...
阅读全文
摘要:using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Linq;using System.Web;using System.Web.Services;using...
阅读全文
摘要:dServiceReference.IUpDownFilexxClient=null;xxClient=newdServiceReference.UpDownFileClient(newSystem.ServiceModel.BasicHttpBinding(),newSystem.ServiceM...
阅读全文
摘要:在webservice单元的initialization下加: InvRegistry.RegisterInvokeOptions(TypeInfo(IInvokable接口名称), ioDocument);加编码RIO.HTTPWebNode.UseUTF8InHeader := True;
阅读全文
摘要:public string decodestr(string str, Encoding Ens) { string ss = Ens.GetString(Convert.FromBase64String(str)); return ss; } public string encodestr(st...
阅读全文

浙公网安备 33010602011771号