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

java ·ÃÎÊ¡£net webservice

java·ÃÎÊ¡£netµÄwebservice ¶øÇÒ ·µ»ØÖµÊÇÒ»¸öÀ࣬ÕâÍæÒâÕÛÄ¥ÎÒÒ»Ì죬³öÏÖ¹ýһϵÁеÄÎÊÌ⣬
°üÀ¨ ûÓж¨ÒåSoapAction ²»ÄÜÐòÁл¯ÀàµÈµÈ¡£ ×îºó»¹ÊÇ·þÎñÌṩÉ̸øÁ˸ödemo£¬½â¾öÁË £¬Ô­ÒòÊÇÎÒ·µ»Ø×Ô¶¨ÒåÀàµÄÒ»¸ö±äÁ¿Ã»ÓÐgetº¯Êý£¬¿É³Ü°¡¡£¶øÇÒdemoÀïµÄ´úÂë ÎÒÏëÒ²ÊÇÓÃwsdd2javaÉú³ÉµÄ£¬ÎÒÒÔÇ°Ò²¿´µ½¹ýÕâÖÖģʽµÄʵÏÖ£¬¿´×ŷѾ¢¡£
ÕûÀíÁËһϣ¬ÈçÏ£º
private static String endpoint = "http://***/SmsService.asmx";
    private static String nameSpace = "http://***.org/";
               Service service = new Service();
                call = (Call) service.createCall();
                 // ¶¨Òå·þÎñÆ÷µØÖ·
                call.setTargetEndpointAddress(new java.net.URL(endpoint));
                 // ¶¨ÒåSOAPAction
                call.setUseSOAPAction(true);
                call.setSOAPActionURI(nameSpace + "SendMessage");
                //¶¨Òå·ÃÎÊ·½·¨Ãû³Æ
                call.setOperationName(new QName(nameSpace, "SendMessage"));
                //¶¨Òå·µ»ØÀàÐÍ SendStateΪÐòÁл¯À࣬עÒâÒ»¶¨ÒªºÍ·þÎñÆ÷¶¨ÒåµÄ°üÒ»Ñù
                QName qn = new QName(nameSpace, "SendState");
                 //×¢²á·µ»ØÖµÀà
  


Ïà¹ØÎĵµ£º

ʹÓÃJNI¼¼ÊõʵÏÖJAVA³ÌÐòµ÷ÓÃdll

 JAVAµÄ¿çƽ̨µÄÌØÐÔÉîÊÜjava³ÌÐòÔ±ÃǵÄϲ°®,µ«ÕýÊÇÓÉÓÚËüΪÁËʵÏÖ¿çƽ̨µÄÄ¿µÄ,ʹµÃËüºÍ±¾µØ»úÆ÷µÄ¸÷ÖÖÄÚ²¿ÁªÏµ±äµÃºÜÉÙ,´ó´óÔ¼ÊøÁËËüµÄ¹¦ÄÜ,±ÈÈçÓëһЩӲ¼þÉ豸ͨÐÅ,ÍùÍùÒª»¨·ÑºÜ´óµÄ¾«Á¦È¥Éè¼ÆÁ÷³Ì±àд´úÂëÈ¥¹ÜÀíÉ豸¶Ë¿Ú,¶øÇÒÓÐһЩÉ豸³§ÉÌÌṩµÄÓ²¼þ½Ó¿ÚÒѾ­¾­¹ýÒ»¶¨µÄ·â×°ºÍ´¦Àí,²»ÄÜÖ±½ÓʹÓÃjava³ÌÐòͨ¹ý¶Ë¿Úº ......

JavaÅàѵ×ܽá

1¡¢  Web.xml
1£©  ÅäÖÃhibernate
<context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/dbConnectionContext.xml /WEB-INF/serviceContext.xml</param-value> ......

Javaʼþ»úÖÆ

 Ê¼þÔ´¸ºÔð²úÉúʼþ
ʼþÀࣺ¶¨ÒåʼþµÄÌØÕ÷£»
¼àÌýÆ÷½Ó¿Ú£º¶¨Òå¼àÌýÆ÷Ó¦¸ÃʵÏֵŦÄÜ£»
¼àÌýÆ÷£ºÊµÏÖ¼àÌýÆ÷½Ó¿Ú£¬¼àÌýʼþµÄ·¢Éú²¢×÷³öÏìÓ¦£»
ËùÓеÄʼþÀà±ØÐë¼Ì³ÐJavaʼþ»ùÀ࣬¼´java.util.EventObject£»EventObject(Object source)ÊÇEventObjectΨһµÄ¹¹Ôì·½·¨£¬ÕâÒâζ×ÅËùÓÐʼþ±ØÐëÔÚʵÀý»¯Ê±¾ÍÖ¸¶¨Ê¼þÔ´ ......

ÀûÓÃJava API¶Ô×Ö·û´®½øÐмÓÃܽâÃÜ£¨DES¼ÓÃÜËã·¨£©

 /*Decryptor*/
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
/**
 * Decrypt the password get form Xpress GUI
 */
public class Decryptor{
  
//¼ÓÃÜ    
  ......

java¶ÔXMLÎļþµÄ½âÎö¡¢½ÚµãµÄÔö¼Ó¡¢É¾³ý²Ù×÷×ܽá

ÏÈÌù´úÂë°É
¸Ðл£ºhttp://xranming.blog.163.com/blog/static/24204952009914104148872/
 http://www.diybl.com/course/3_program/java/javajs/20090303/157541.html
1¡¢java´úÂ룺
Ö÷Òª²ÉÓÃdomÀ´½øÐвÙ×÷
java¶Ôxml²Ù×÷ÓÐËÄÖÖ·½·¨£ºhttp://passmatlab.bokee.com/3455905.html
 package test;
import java ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ