易截截图软件、单文件、免安装、纯绿色、仅160KB

java调用.net Webservice

一、.net Server端
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.Services.Description;
namespace WebApplication1
{
    /// <summary>
    /// Example1 的摘要说明
    /// </summary>
    /*[WebService(Namespace = "urn:www.routon.com.cn")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]*/
    [WebService(Namespace = "http://www.haituns.com")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class Example1 : System.Web.Services.WebService
    {
       /*[SoapDocumentMethodAttribute(
            Action = "",
            RequestNamespace = "urn:www.routon.com.cn",
            RequestElementName = "sayHello",
            ResponseNamespace = "urn:www.routon.com.cn",
            ResponseElementName = "arithmeticMeanResponse",
            Use = SoapBindingUse.Encoded)
        ]*/
        [SoapRpcMethod(Use = SoapBindingUse.Literal, RequestNamespace =


相关文档:

几道比较基础的Java面试题

相当基础,但是还是蛮不错的。
一、创建一个静态方法,给它传入一个对象,请循环的打印出该对象所在类的类名和所实现的方法名(华为笔试最后一道编程)  
二、假设字符串类似这样的aba和aab就相等,现在随便给你二组字符串,请编程比较他们看是否相等  
三、给你一组字符串如:iu7i8hy4jnb2,让你编 ......

Java学习心得(转自张国宝)


1.    数组有没有length()这个方法? String有没有length()这个方法?
        答:数组没有length()这个方法,有length的属性。
        String有length()这个方法。
2.     String s = new String("xyz") ......

java 和.net的MD5加密不一样?!

由于工作需要,要用.net的程序调用一个java编写的web service接口,接口的一个参数要求md5方式加密。
.net中的md5加密是很容易的,采用msdn中给出的方法:
// Hash an input string and return the hash as
// a 32 character hexadecimal string.
static string getMd5Hash(string input)
{
......

java解析properties的方法

1。使用java.util.Properties类的load()方法
示例: InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);
2。使用java.util.ResourceBundle类的getBundle()方法
示例: ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault()); ......

java小程序(1)

【文章标题】java小程序(1)
【文章作者】曾健生
【作者邮箱】zengjiansheng1@126.com
【作者QQ】190678908
【作者声明】本人水平有限,失误之处,敬请各位指出。本人以前写的一些小程序,分享一下希望对各位学习java有帮助 ^-^
***************************************************************************** ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号