Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaºÍ.net»¥Ïàµ÷ÓÃwebservice×¢ÒâÊÂÏî

×îºóÔÚÑо¿GWT,ÐèÒªÓõ½.net µÄwebservice,ÍøÉÏËÑÁ˵ã´úÂë,»ù±¾ÉÏÎÊÌâ¶à¶à.
JavaÒªµ÷ÓÃ.netµÄwebserviceÊÇÐèÒªÒ»¸öaxisµÄ°üµÄ. ÐèÒªÏÂÔØ,È»ºóÒýÓÃ.
ÒýÓõÄʱºò,ÐèҪעÒâһЩСÎÊÌâ.
Java ¶Ë
public String ServiceLogon(String user, String pwd) throws ServiceException  
    {  
        String url="http://localhost/WebServices/Service.asmx";  
        Service service = new Service();  
        Call call = (Call)service.createCall();  
        //We have to figure our the namespace. The java doesn't know where is the namespace  
        call.setOperationName(new QName("http://localhost/WebServices/Service.asmx","Logon"));  
          
        call.addParameter(new QName("http://localhost/WebServices/Service.asmx","username"),XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);  
        call.addParameter(new QName("http://localhost/WebServices/Service.asmx","password"),XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);  
        String res = "";  
        try {  
            call.setTargetEndpointAddress(new URL("http://localhost/WebServices/Service.asmx"));  
            res = (String)call.invoke(new Object[]{user,pwd});   
        } catch (MalformedURLException e) {  
            // TODO Auto-generated catch block  
 &n


Ïà¹ØÎĵµ£º

Ê®¸ö×îºÃµÄJavaÐÔÄܹÊÕÏÅųý¹¤¾ß

ÉùÃ÷£ºJavaEyeÐÂÎÅÎÄÕµİæȨÊôÓÚJavaEyeÍøÕ¾ËùÓУ¬ÑϽûÈκÎÍøվתÔر¾ÎÄ£¬·ñÔò±Ø½«×·¾¿·¨ÂÉÔðÈΣ¡
ÍƼöÊ®¸ö×îºÃµÄJavaÐÔÄܹÊÕÏÅųý¹¤¾ß£º
   1.jconsoleÊÇËæ×ÅJDK 1.5¶øÍƳöµÄ¡£ÕâÊÇÒ»¸öJava¼à²âºÍ¹ÜÀí¿ØÖÆ̨-JMX¼æÈݵÄͼÐι¤¾ßÀ´¼à²âJavaÐéÄâ»ú¡£ËüÄܹ»Í¬Ê±¼à²â±¾µØºÍÔ¶³ÌµÄJVMs¡£ÏêÇé¿É²é¿´£ºjconsole¹¤¾ß½ ......

Java Socket ±à³Ì

Ò»£¬ÍøÂç±à³ÌÖÐÁ½¸öÖ÷ÒªµÄÎÊÌâ
Ò»¸öÊÇÈçºÎ׼ȷµÄ¶¨Î»ÍøÂçÉÏһ̨»ò¶ą̀Ö÷»ú£¬ÁíÒ»¸ö¾ÍÊÇÕÒµ½Ö÷»úºóÈçºÎ¿É¿¿¸ßЧµÄ½øÐÐÊý¾Ý´«Êä¡£
ÔÚTCP/IPЭÒéÖÐIP²ãÖ÷Òª¸ºÔðÍøÂçÖ÷»úµÄ¶¨Î»£¬Êý¾Ý´«ÊäµÄ·ÓÉ£¬ÓÉIPµØÖ·¿ÉÒÔΨһµØÈ·¶¨InternetÉϵÄһ̨Ö÷»ú¡£
¶øTCP²ãÔòÌṩÃæÏòÓ¦ÓõĿɿ¿µÄ»ò·Ç¿É¿¿µÄÊý¾Ý´«Êä»úÖÆ£¬ÕâÊÇÍøÂç±à³ÌµÄÖ÷Òª¶Ô ......

Java ±ê×¼ÈÕÖ¾¹¤¾ß Log4j µÄʹÓ㨸½Ô´´úÂ룩

Java ±ê×¼ÈÕÖ¾¹¤¾ß Log4j µÄʹÓ㨸½Ô´´úÂ룩
        Ô´´úÂëÏÂÔØ
        Log4j ÊÇÊÂʵÉ쵀 Java ±ê×¼ÈÕÖ¾¹¤¾ß¡£»á²»»áÓà Log4j ÔÚÒ»¶¨³Ì¶ÈÉÏ¿ÉÒÔ˵ÊǺâÁ¿Ò»¸ö¿ª·¢ÈËÔ±ÊÇ·ñÊÇһλºÏ¸ñµÄ
Java ³ÌÐòÔ±µÄ±ê×¼¡£Èç¹ûÄãÊÇÒ»Ãû Java ³ÌÐòÔ±£¬Èç¹ûÄ㻹 ......

tomcatÁ¬½Ó³ØµÄÅäÖà Java¿ª·¢¼°±à³Ì˼Ïë


<Resource name="jdbc/testDB" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/testDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
< ......

VectorÀàÔÚJava±à³ÌÖеÄÓ¦ÓÃ

VectorÀàÔÚJava±à³ÌÖеÄÓ¦ÓÃ
Vector Àà Ìá ¹© ÁË Êµ ÏÖ ¿É Ôö ³¤ Êý ×é µÄ ¹¦ ÄÜ£¬ Ëæ ×Å ¸ü ¶à Ôª ËØ ¼Ó Èë Æä ÖУ¬
Êý ×é ±ä µÄ ¸ü ´ó¡£ ÔÚ É¾ ³ý Ò» Щ Ôª ËØ Ö® ºó£¬ Êý ×é ±ä С¡£
Vector ÓÐ Èý ¸ö ¹¹ Ôì º¯ Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ