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

Axis2 java WebServices¿ª·¢¶þ

¿ª·¢»·¾³  eclipse3.2 £¨Ã»ÓÐÅäÖû·¾³ Çë²Î¿´ÉÏһƪÈÕÖ¾£©
н¨ÏîÄ¿£º
UserCover£¨Ãû³ÆËæ±ã£© ×ö¸ö¼òµ¥µÄ±¨µÀ²¢¼Ç¼µ÷ÓÃserverµÄusername
н¨°ü£ºcom.axis2.test
н¨½Ó¿Ú£º
package com.axis2.test;
public interface UserCover {
public void CoverName(String myname);
public String getUserList();
}

н¨°ü£ºcom.axis2.test.impl
±àдʵÏÖÀࣺ
package com.axis2.test.impl;
import java.util.ArrayList;
import java.util.List;
import com.axis2.test.UserCover;
public class UserCoverService implements UserCover {

public static List<String> userlist = new ArrayList<String>();
public void CoverName(String myname) {
if(myname != null)
userlist.add(myname);

}
public String getUserList() {
String usernames = "";
for(String username:userlist){
usernames += username+"\n";
}
return usernames;
}
}

½ÓÏÂÀ´ÊÇÓÿª·¢Ò»ÖнéÉܵÄeclipse²å¼þ Éú³É·þÎñÇø¶ËºÍ¿Í»§¶ËÎļþ
1.Ê×ÏÈÉú³É·þÎñÆ÷¶ËʹÓõÄaarÎļþ
ͼ½â£º
Ñ¡Ôñ´ËÏîÄ¿µÄclass·¾¶
Èç¹ûÓÐwsdl¿ÉÒÔÑ¡ÔñÖ¸¶¨µÄwsdl ²»Ñ¡Ôñwsdl ·þÎñÆ÷¶ËÔÚµ÷ÓõÄʱºòÒ²ÊÇ»á×Ô¶¯Éú³ÉµÄ £¨ºóÃæÉú³É¿Í»§¶ËµÄʱºò»áÉú³Éwsdl£©
 ²»ÐèÒªÆäËûµÄjar°ü ÕâÀïʲô¶¼²»ÓÃÑ¡ ¼ÌÐøÏÂÒ»²½
Ñ¡Ôñ×Ô¶¯Éú³Éserver.xmlÎļþ
 server nameËæ±ãÆð£¬
classÄÇôΪÌṩ¸ø¿Í»§¶ËµÄserverÀà ¼´¿ªÊ¼±àдµÄUserCoverÀࣨ´ø°üÃû£© ÌîдÍê³Éºóµã»÷load °´Å¥ ¼ÓÔØ´ËÀàÖеķ½·¨
 
 ÕâÀïµÄfilenameΪaarÎļþµÄÃû³Æ Ò²¿ÉÒÔËæ±ãÈ¡£¬³ÌÐòÖÐÒªÓõÄÊÇÉÏÒ»²½ÖеÄserver name¡£¼´ÅäÖÃÔÚserver.xmlÖеÄserver name¡£
Êä³öÎļþ¼ÐÑ¡Ôñ ²¿ÊðµÄaxis2µÄwebĿ¼µÄWEB-INF/servicesĿ¼Ï£¬Èç¹ûûÓÐʹÓÃweb ÈÝÆ÷ ¿ÉʹÓÃaxis½âѹºó×Ô´øµÄÈÝÆ÷ ½«´ËÎļþÊä³öµ½
%AXIS2_HOME%\repository\services
ÏÖÔÚ¿ÉÒÔÆô¶¯tomcat »òÊÇaxis2 
¼ì²âÊÇ·ñ³É¹¦
http://localhost:8080/axis2/services/UserCoverService?wsdl
Èç¹û³É¹¦½«³öÏÖwsdlÎļþµÄÄÚÈÝ ±ÊÕßÏÔʾÄÚÈÝΪ
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns


Ïà¹ØÎĵµ£º

Java´Ó¿ØÖÆÌ¨ÖжÁÈ¡Êý¾ÝÍêÈ«¹¥ÂÔ

0¡¡ÒýÑÔ
´Ó¿ØÖÆÌ¨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔǰµÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆÌ¨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï£¬¸÷¸ö°æ±¾ÖÐÈçºÎ´Ó¿ØÖ ......

Ò»ÖøÃûÈí¼þ¹«Ë¾µÄjava±ÊÊÔËã·¨Ìâ

 Ò»ÖøÃûÈí¼þ¹«Ë¾µÄjava±ÊÊÔËã·¨Ì⣡(2008-11-06 12:49:19)±êÇ©£ºjava ÃæÊÔÌâ it   ·ÖÀࣺJ2SE
Ô­ÌâÈçÏ£ºÓÃ1¡¢2¡¢2¡¢3¡¢4¡¢5ÕâÁù¸öÊý×Ö£¬ÓÃjavaдһ¸ömainº¯Êý£¬´òÓ¡³öËùÓв»Í¬µÄÅÅÁУ¬È磺512234¡¢412345µÈ£¬ÒªÇó£º "4 "²»ÄÜÔÚµÚÈý룬 "3 "Óë "5 "²»ÄÜÏàÁ¬.
ÎÒ¿´ÁË»ØÌù¶¼Ã»Óкܺýâ¾ö£¬Ö÷ÒªÊÇûÓÐÅųýÖ ......

Java Reflection (JAVA·´Éä) Ïê½â

 
    JavaÓïÑÔ·´ÉäÌṩһÖÖ¶¯Ì¬Á´½Ó³ÌÐò×é¼þµÄ¶à¹¦ÄÜ·½·¨¡£ËüÔÊÐí³ÌÐò´´½¨ºÍ¿ØÖÆÈκÎÀàµÄ¶ÔÏó(¸ù¾Ý°²È«ÐÔÏÞÖÆ)£¬ÎÞÐèÌáǰӲ±àÂëÄ¿±êÀà¡£ÕâÐ©ÌØÐÔʹµÃ·´ÉäÌØ±ðÊÊÓÃÓÚ´´½¨ÒԷdz£ÆÕͨµÄ·½Ê½Óë¶ÔÏóЭ×÷µÄ¿â¡£ÀýÈ磬·´Éä¾­³£ÔÚ³ÖÐø´æ´¢¶ÔÏóΪÊý¾Ý¿â¡¢XML»òÆäËüÍⲿ¸ñʽµÄ¿ò¼ÜÖÐʹÓá£Java reflection ·Ç³£ ......

ÓÃJAVAʵÏÖÁË´øÓи´Ñ¡¿òµÄÊ÷Ŀ¼

JDK°æ±¾
        JDK1.4.x
    ¹¦ÄÜ
        ʵÏÖÁË´øÓи´Ñ¡¿òµÄ×ÊÔ´¹ÜÀíÆ÷Ê÷Ŀ¼£¬»¹ÓÐÐèÒª¸Ä½øµÄµØ·½£¬ÎÒÔÚÒÔºó¸üУ¬Èç¹ûÄÇλÅóÓÑÓкõĽ¨Òé»¶Ó­Ìá³ö
   
    »¶Ó­´ó¼ÒÌáÒâ¼û£¬½»Á÷
  ......

ÕÆÎÕJAVAµÄ±ê×¼

 Å¼¶ûÔÚÍøÉÏ·¢ÏÖµÄһƬ¹ØÓÚÕÆÎÕJAVAµÄ±ê×¼£¬¸Ð¾õÓеãÒâ˼£¬ËäÈ»ÔÚһЩ¹ÛµãÉÏÓÐЩƫÆÄ£¬µ«×÷ΪѧϰJAVAµÄÒýµ¼Éпɡ£ÖÁÓÚÔ­´´ÊÇ˭ûÓбØÒª¿¼Ö¤¡£
ʱ³£¿´µ½Ò»Ð©ÈËËµÕÆÎÕÁËJava£¬µ«ÊÇÈÃËûÃÇÓÃJava×öÒ»¸öʵ¼ÊµÄÏîÄ¿¿ÉÄÜÓÖÀ§ÄÑÖØÖØ£¬ÔÚÕâÀ±ÊÕ߸ù¾Ý×Ô¼ºµÄÒ»µãÀí½â¶·µ¨Ìá³ö×Ô¼ºµÄһЩ¶ÔÕÆÎÕJavaÕâ¸ö˵·¨µÄ±ê×¼£¬µ±È»¶ÔÓÚР......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ