JavaÓë.NET µÄWeb ServicesÏ໥µ÷ÓÃ
Ò»:¼ò½é
¡¡¡¡±¾ÎĽéÉÜÁËJavaÓë.NET¿ª·¢µÄWeb ServicesÏ໥µ÷Óõļ¼Êõ¡£±¾ÎÄ°üÀ¨Á½¸ö²¿·Ö£¬µÚÒ»²¿·Ö½éÉÜÁËÈçºÎÓÃ.NET×ö¿Í»§¶Ëµ÷ÓÃJavaдµÄWeb Services,µÚ¶þ²¿·Ö½éÉÜÁËÈçºÎÓÃJava×ö¿Í»§¶Ëµ÷ÓÃ.NET¿ª·¢µÄWeb Services¡£
¶þ:ÏîÄ¿ÐèÒªµÄ¹¤¾ß
¡¡¡¡Windows2000 Server(IIS)
¡¡¡¡Jbuilder9.0( º¬ÓÐTomcat , axis)
¡¡¡¡JDK1.4+Java Web Services Develop
¡¡¡¡VS.Net 2003
¡¡¡¡±¸×¢:Èç¹ûûÓÐJBuilderµÄ»°¾ÍÐèÒª×Ô¼ºÏÂÔØ°²×°Tomcat4.1 ÒÔ¼° AxisµÄ¿ª·¢°ü£¬²¢×öÏàÓ¦ÅäÖá£ÓÉÓÚÍøÉÏÓкܶàÕâÑùµÄÎÄÕ£¬ÕâÀï¾Í²»Ò»Ò»ËµÃ÷ÁË¡£
Èý:ÓÃ.NET×ö¿Í»§¶Ëµ÷ÓÃJavaдµÄWeb Services
¡¡¡¡1. Éú³ÉÒ»¸öJava Web Services
¡¡¡¡Ê¹ÓÃJBuilder Éú³ÉÒ»¸öWeb ServicesÊǷdz£¼òµ¥µÄ£¬ÎÒÍêÈ«ÊÇ°´ÕÕËüµÄ°ïÖú×öµÄ£¬Ö»ÒªÒ»²½²½×öÏÂÈ¥¾Í¿ÉÒÔÁË¡£¾ßÌå·¾¶ÊÇDeveloping Web Services -> tutorials : Web Services(Axis) -> Creating a simple Web Services
¡¡¡¡2. ·¢²¼Õâ¸öWeb Services²¢µÃµ½ËüµÄWSDL
¡¡¡¡Web ServicesÉú³ÉºÃÖ®ºó£¬F9ÔËÐÐÕâ¸öÏîÄ¿¡£È»ºó£¬µ¥»÷Viewä¯ÀÀÏÖÓеÄWeb ·þÎñ£¬µ¥»÷Bean1µÄWSDLÁ¬½Ó£¬ÎÒÃÇ¿ÉÒÔÔÚä¯ÀÀÆ÷Öв쿴ËüµÄWSDLÃèÊö¡£ÔÚä¯ÀÀÆ÷µØÖ·À¸¸´ÖÆWSDLµØÖ·£¬ÎªÏÂÒ»²½Ê¹ÓÃ.NET¿ª·¢¿Í»§¶Ëµ÷ÓóÌÐò×ö×¼±¸¡£
¡¡¡¡3. ÓÃVS.NETÉú³ÉÒ»¸ö.NETµÄ¿Í»§¶Ë
¡¡¡¡Ð½¨Ò»¸öÏîÄ¿(WinForm,ASP.net¶¼¿ÉÒÔ)£¬ÎÒÔÚÕâÀïʹÓõÄÊÇÒ»¸öAsp.NetÏîÄ¿¡£ÔÚÆðʼҳÃæÉÏ·ÅÖÃÒ»¸öÎı¾ÊäÈë¿òÓÃÀ´ÏÔʾµ÷ÓÃWeb ServicesµÄ½á¹û£¬·ÅÖÃÒ»¸ö°´Å¥£¬ÓÃÀ´µ¥»÷µ÷ÓÃWeb Services¡£È»ºó£¬Ñ¡ÔñÌí¼ÓWeb ÒýÓã¬ÔÚWSDLÒ»À¸ÖаѸղŵõ½µÄWSDLµØÖ·¸´ÖƹýÀ´£¬Web ÒýÓõÄÃû³ÆÊäÈëJavaService£¬µ¥»÷Ìí¼ÓÒýÓð´Å¥¾Í¿ÉÒÔÁË¡£´Ëʱ£¬ÎÒÃÇ¿ÉÒ
Ïà¹ØÎĵµ£º
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
×î½ü×öÒ»¸öÏîÄ¿£¬ÒªÓõ½·ÖÒ³¹¦ÄÜ£¬²Î¿¼Á˺ܶ෽·¨£¬ÓеIJ»ºÏÊÊ£¬ÓеIJ»Ï²»¶£¬ÓÚÊÇ×Ô¼ºÔÚËûÃǵĻù´¡ÉÏÕûÁËÒ»¸ö£»Ë¼Â·ÊÇÕâÑùµÄ£ºÏÈ°ÑÐèÒª·ÖÒ³µÄÊý¾Ý»òÊǼǼ¶¼²éѯ³öÀ´ ´æÈëÒ»¸ö¼¯ºÏÀàÀïÈçList»òÊÇVector£¬È»ºóÀûÓÃÆäsublist(int findex,int eindex)·½·¨£¬»ñÈ¡ÐèÒª·ÖÒ³µÄÊý¾Ý»ò¼Ç¼,¹ØÓ ......
import java.io.File;
import java.io.FileNotFoundException;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class ResolveXmlFile {
public void resolverXml() throws DocumentException, FileNotFoundExcept ......
Java ·´ÉäÊÇJavaÓïÑÔµÄÒ»¸öºÜÖØÒªµÄÌØÕ÷£¬ËüʹµÃJava¾ßÌåÁË“¶¯Ì¬ÐÔ”¡£
ÔÚJavaÔËÐÐʱ»·¾³ÖУ¬¶ÔÓÚÈÎÒâÒ»¸öÀ࣬ÄÜ·ñÖªµÀÕâ¸öÀàÓÐÄÄЩÊôÐԺͷ½·¨£¿¶ÔÓÚÈÎÒâÒ»¸ö¶ÔÏó£¬ÄÜ·ñµ÷ÓÃËüµÄÈÎÒâÒ»¸ö·½·¨£¿´ð°¸Êǿ϶¨µÄ¡£ÕâÖÖ¶¯Ì¬»ñÈ¡ÀàµÄÐÅÏ¢ÒÔ¼°¶¯Ì¬µ÷ÓöÔÏóµÄ·½·¨µÄ¹¦ÄÜÀ´×ÔÓÚJava ÓïÑԵķ´É䣨Reflection£©»úÖÆ ......