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

java soap + tomcat ¿ª·¢

²»´øjavaBeanµÄSOAPµ÷ÓÃ
Ê×ÏÈ£¬ÏÂÔØsoap.war£¬javamail.jar£¬activation.jar£¬soap.jar£¬xerces.jar£¬È»ºó¾ÍÊÇÅäÖû·¾³£¬ÈçºÎÅäÖþͲ»Ï¸ËµÁË¡£
°Ñsoap.warÈÓµ½tomcatµÄwebappsÏ£¬Æô¶¯tomcat£¬·ÃÎÊhttp://127.0.0.1:8080/soap£¬³öÏÖHello! Welcome to Apache-SOAP. ¾Í˵Ã÷»·¾³´î½¨ºÃÁË¡£
Ê×ÏȽ¨Á¢¸öjavaÏîÄ¿£¬°üÃû½Ðsoap£¬ÀàÃû½ÐSOAPService£¬Õâ¸ö¾ÍÊÇÒªÔ¶³Ìµ÷ÓõÄÀà
SOAPService.java£º
package soap;
public class SOAPService
{
public Person sayHi(String name)
{
return "Hello! " + name;
}
}
È»ºó´ò¿ªsoapµÄ¹ÜÀíÒ³Ã棬http://127.0.0.1:8080/soap/admin
ÔÚ¹ÜÀíÒ³Ãæµã»÷“Deploy”°´Å¥£¬ÅäÖò¿ÊðÕâ¸öÀ࣬Ìîд»ù±¾ÐÅÏ¢ÈçÏ£º
ID                                        urn:HelloWorld_SOAPService
Scope                                  Application
Provider Type                      java
Provider Class                     soap.SOAPService
Use Static Class                  no
Methods                              sayHi
ÅäÖúú󣬱àдsoapµÄµ÷ÓÃÀàSOAPClient
SOAPClient.java
package com.kt.test;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Vector;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.SOAPE


Ïà¹ØÎĵµ£º

JavaỊ̈߳ºÐÂÌØÕ÷ ×èÈû¶ÓÁÐ

JavaỊ̈߳ºÐÂÌØÕ÷-×èÈû¶ÓÁÐ
 
×èÈû¶ÓÁÐÊÇJava5Ïß³ÌÐÂÌØÕ÷ÖеÄÄÚÈÝ£¬Java¶¨ÒåÁË×èÈû¶ÓÁеĽӿÚjava.util.concurrent.BlockingQueue£¬×èÈû¶ÓÁеĸÅÄîÊÇ£¬Ò»¸öÖ¸¶¨³¤¶ÈµÄ¶ÓÁУ¬Èç¹û¶ÓÁÐÂúÁË£¬Ìí¼ÓÐÂÔªËصIJÙ×÷»á±»×èÈûµÈ´ý£¬Ö±µ½ÓпÕλΪֹ¡£Í¬Ñù£¬µ±¶ÓÁÐΪ¿Õʱºò£¬ÇëÇó¶ÓÁÐÔªËصIJÙ×÷ͬÑù»á×èÈûµÈ´ý£¬Ö±µ½ÓпÉÓÃÔªËØΪ ......

JavaỊ̈߳ºÐÂÌØÕ÷ Ìõ¼þ±äÁ¿

JavaỊ̈߳ºÐÂÌØÕ÷-Ìõ¼þ±äÁ¿
 
Ìõ¼þ±äÁ¿ÊÇJava5Ïß³ÌÖкÜÖØÒªµÄÒ»¸ö¸ÅÄ¹ËÃû˼Ò壬Ìõ¼þ±äÁ¿¾ÍÊDZíʾÌõ¼þµÄÒ»ÖÖ±äÁ¿¡£µ«ÊDZØÐë˵Ã÷£¬ÕâÀïµÄÌõ¼þÊÇûÓÐʵ¼Êº¬ÒåµÄ£¬½ö½öÊǸö±ê¼Ç¶øÒÑ£¬²¢ÇÒÌõ¼þµÄº¬ÒåÍùÍùͨ¹ý´úÂëÀ´¸³ÓèÆ京Òå¡£
 
ÕâÀïµÄÌõ¼þºÍÆÕͨÒâÒåÉϵÄÌõ¼þ±í´ïʽÓÐ×ÅÌìÈÀÖ®±ð¡£
 
Ìõ¼þ±äÁ¿¶¼ÊµÏÖÁË ......

JavaÅÅÐò·½·¨´óÈ«

°æȨÉùÃ÷£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂԭʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
http://as112255.blogbus.com/logs/38662785.html
package com.softeem.jbs.lesson4;
 
import java.util.Random;
 
/**
 * ÅÅÐò²âÊÔÀà
 *
 * ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
 * 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐ ......

JavaÈëÃÅ(6)JavaÊý¾ÝÀàÐÍ

¡¡¡¡6.1 »ù±¾Êý¾ÝÀàÐÍ
¡¡¡¡´«ÊÚÐÂÖª
¡¡¡¡ÔÚJavaÓïÑÔÖУ¬Êý¾ÝÀàÐÍ¿ÉÒÔ·ÖΪÁ½´óÀࣺ
¡¡¡¡1£©»ù±¾ÀàÐÍ£»
¡¡¡¡2£©À©Õ¹ÀàÐÍ¡£
¡¡¡¡ÔÚ±¾Ð¡½ÚÖУ¬ÎÒÃǾÍÒ»ÆðÀ´Ñ§Ï°Ò»ÏÂJavaÓïÑԵĻù±¾Êý¾ÝÀàÐÍ¡£Ëü°üÀ¨£ºboolean¡¢char¡¢byte¡¢int¡¢short¡¢long¡¢float¡¢double°ËÖÖ£º
¡¡¡¡ÀàÐÍ ÃèÊö È¡Öµ·¶Î§
¡¡¡¡Boolean ²¼¶ûÐÍ Ö»ÓÐÁ½¸öÖµt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ