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

Java µ÷Óà .Net Web Service ÎÊÌâ½â¾ö·½·¨·ÖÏí

Óкܳ¤Ò»¶Îʱ¼äûÓÐд²©¿ÍÁË¡£×î½üÒ»Ä꣬ÊÕµ½²»ÉÙ½»Á÷Óʼþ¶¼ÊǹØÓÚwebservice£¬´ó²¿·Ö¶¼ÊÇËØÒªwebserviceʵÀý¡£
Æäʵ¶Ôwebservice Á˽ⲻÊǺÜÉֻÊǸù¾Ý¹¤×÷ÐèҪȥ½Ó´¥£¬È¥Ñ§Ï°¡£×î½üÏîÄ¿ºÍÆäËûÒ»¸ö.netÏîÄ¿ÐèÒª×öÊý¾Ý½»»¥£¬½»»¥·½Ê½¾Í²ÉÓÃWebservice.
Ìؽ«¿ª·¢ÖÐÓöµ½µÄÎÊÌâ×ܽᲢ·ÖÏí£»
¿ª·¢ÖÐÓöµ½µÄÎÊÌâÓУº
1£©javaºÍ.net µÄĬÈÏnamespaceÎÊÌ⣻
2£©Á½Õß²úÉúµÄSOAPÎļþ¸ñʽ²»Ò»Ö£¬ÓÐÈýÖÖ£¬MicrosoftµÄ£»IBMµÄ£¬Í¨¹ý×¥°ü¹¤¾ß¿ÉÒÔ»ñµÃjava²úÉúµÄSoapÏûÏ¢
3£©Èë²ÎµÄÊý¾ÝÀàÐÍ»áÓ°Ïìµ÷ÓõÄÕýÈ·ÐÔ£»
»·¾³ËµÃ÷
a.java×÷Ϊweb service µÄ¿Í»§¶ËÈ¥µ÷Óà .Net Web ServiceµÄ·þÎñ¶Ë£»
b.²ÉÓà axis  °æ±¾1.4£»
c..net webservice ²ÉÓÃMicrosoft Visual Studio 2008¿ª·¢£»
1. .Net webservice ·þÎñ¶Ë
.net ÌṩµÄwebservice Á´½Ó£ºhttp://******/WebService/AsRptToStdService.asmx£»
ÆäÖвÉÓÃSoap ×÷ΪÏûÏ¢½»»¥¡£
ÐÅÏ¢ÈçÏ£º
Request/ÇëÇó£º
POST /globalequitydata/WebService/AsRptToStdService.asmx HTTP/1.1
Host: szeqdatabeta0.morningstar.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/AsRptToStd"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AsRptToStd xmlns="http://tempuri.org/">
<strCID>string</strCID>
<longRowFileDocumentId>long</longRowFileDocumentId>
<strAsRptFilePath>string</strAsRptFilePath>
</AsRptToStd>
</soap:Body>
</soap:Envelope>
Response/ÏìÓ¦
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AsRptToStdResponse xmlns="http://tempuri.org/">
<AsRptToStdResult>boolean</AsRptTo


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

Java ÀûÓÃÌ×½Ó×ÖSocketʵÏÖ¼òµ¥µÄ·þÎñÆ÷Óë¿Í»§¶ËͨÐÅ

ÎÒÃÇҪʵÏֵľßÌ幦ÄÜÊÇ£º
ÀûÓÃSocketÀàºÍServerSocketÀà±àдһ¸öC/S³ÌÐò£¬ÊµÏÖC/SͨÐÅ¡£
¿Í»§¶ËÏò·þÎñÆ÷¶Ë·¢ËÍTimeÃüÁ·þÎñÆ÷¶Ë½ÓÊܵ½¸Ã×Ö·û´®ºó½«·þÎñÆ÷¶Ëµ±Ç°Ê±¼ä·µ»Ø¸ø¿Í»§¶Ë£»¿Í»§¶ËÏò·þÎñÆ÷¶Ë·¢ËÍExitÃüÁ·þÎñÆ÷¶ËÏò¿Í»§¶Ë·µ»Ø“Bye”ºóÍ˳ö¡£
ÌâÄ¿±È½Ï¼òµ¥µÄ£¬ÎÒÃÇÖ±½ÓÀ´¿´´úÂë°É£º
Ê×ÏÈÊÇ·þÎñÆ÷¶ ......

JAVA DATE×ܽá

1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year); //year Ϊ int
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0          
int day=time.getActualMaximum(Calendar.DAY_OF_MON ......

Javaͨ¹ýSamba·þÎñ²Ù×÷Linux¹²ÏíÎļþ


Ê×ÏÈÔÚLinuxÉÏ´´½¨Ò»¸ö¹²ÏíÎļþ¼Ð
mkdir /home/user/share
ÓÃrootÓû§Æô¶¯samba·þÎñ
service smb start
ÐÞ¸Äsmb.confÎļþ
sudo gedit /etc/samba/smb.conf »òÕß vi /etc/samba/smb.conf
[share]
path = /home/user/share
...
writable = yes
´´½¨¹²ÏíÓû§²¢ÉèÖÃÃÜÂë
sudo useradd smbusr
sudo smbpasswd -a s ......

¡¾Ëæ±Ê¡¿java ÐéÄâ°´¼ü

import java.awt.Robot;
import java.io.IOException;
import java.lang.reflect.Field;
public class TestServer {
Class<?> key;
Robot ro;
{//·Ç¾²Ì¬¿éÓÃÓÚ³õʼ»¯ÀàÀàµÄ·Ç¾²Ì¬³ÉÔ±
try {
key = Class.forName("java.awt.event.KeyEvent");
ro = new Robot();
}
catch (Excep ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ