delphi + java µÄ·Ö²¼Ê½Ó¦ÓÃ
½áºÏDelphi
¿Í»§¶Ë×ÀÃ濪·¢µÄÓÅÊƺÍJavaµÄÎȽ¡Ç¿×³ÌØÐÔ£¬²ÉÓÃDelphi
Client + Java ServerµÄϵͳ¼Ü¹¹Ó¦¸ÃÊǺÜÓÐÊг¡µÄ£¬¾¹ýÒ»¶Îʱ¼äµÄʵ¼ÊÏîĿʵ¼ù£¬ÊµÏּܹ¹ÊÇÕâôʵÏֵģ¬¹©ÌÖÂÛ£º
1.ºǫ́ӦÓ÷þÎñ²ã¿É²ÉÓûùÓÚSpring+HibernateµÄÇáÁ¿¼¶J2EEʵÏÖ£¬²¢Ê¹ÓÃApache XML-RPC
Ìṩ¿Í»§¶Ëµ÷Óýӿڣ»
2.ǰ̨²ÉÓà Delphi
XML-RPC
µ÷Ó÷þÎñÆ÷¶ËÒµÎñʵÏÖ½Ó¿Ú£»
3.ºǫ́ºÍǰ̨·Ö±ðʵÏÖXML-¶ÔÏóÐòÁл¯£»
4¡¢¿ÉÑ¡ÓÃSLL£¬¿ÉÖ§³ÖÊý¾ÝѹËõ£»£¨Õâ¸öÐèÒª¶ÔDelphi
XML-RPC
ʵÏÖ×÷һЩÀ©Õ¹£©
ϵͳ¼Ü¹¹ÊµÏÖ»ùÓÚ¼¸µã¿¼ÂÇ£º
1¡¢XML-RPC
ͬSOAP±È½Ï£ºÓÉÓÚDelphi
SOAP¿Í»§¶Ë´æÔÚһЩÐÔÄÜÎÊÌâºÍͬJavaʵÏÖ´æÔÚһЩ¼æÈÝÐÔÎÊÌ⣬Òò´Ë¿¼ÂDzÉÓÃXML-RPC
ʵÏÖ£¬¶øÇÒXML-RPC
ʵÏÖͬSOAPʵÏÖÏà±È½Ï£¬ÐÔÄÜÒªºÃºÜ¶à£»
2¡¢XML-RPC
ͬSOCKET±È½Ï£º²ÉÓÃHTTPÐÒé¿ÉÒÔÓÐЧ´©Í¸²»Í¬ÍøÂç·À»ðǽ£»
3¡¢²ÉÓÃXML¸ñʽ½»»»Êý¾Ý£¬¶ø²»²ÉÓÃXML-RPC
±ê×¼¸ñʽ½»»»Êý¾Ý£¬Ö÷ÒªÊÇÓÉÓÚXML-RPC
¸ñʽ±È½Ï¼òµ¥£¬¸´ÔÓµÄÊý¾Ý¸ñʽºÜÄÑÂú×ãÐèÇó£¬Ö±½ÓʹÓöÔÏóXMLÊý¾ÝÁ÷·½Ê½£¬ÓÐÀûÓÚϵͳÀ©Õ¹£»
ʹÓõĵÚÈý·½Èí¼þÁÐ±í£¨¿ªÔ´²úÆ·£¬¿ÉÓÃÓÚÉÌÒµ¿ª·¢£©
Spring Framework£ºhttp://www.springframework.org
Hibernate ORM£ºhttp://www.hibernate.org
Apache XML-RPC
£ºhttp://ws.apache.org/xmlrpc/
Delphi
XML-RPC
£ºhttp://sourceforge.net/projects/delphixml-rpc/
Delphi
Indy VCL£ºhttp://www.indy.org
Öص㼸¸öÎÊÌâ˵Ã÷£º
1¡¢²ÉÓÃXML-RPC
»úÖÆʵÏÖÊý¾Ý½»»»
2¡¢¿Í»§¶Ë²ÉÓÃCookie»úÖÆʵÏÖ±£´æ¿Í»§¶ËµÇ¼Ïà¹ØÐÅÏ¢£¬Delphi
XML-RPC
ʵÏÖÓ¦ÓÃÁËIndy Cookie VCL£¬Òò´ËÎÒÃDz»ÐèÒªÖظ´·¢Ã÷ÂÖ×Ó
3¡¢Java ¶Ë XML-RPC
ʵÏֱȽ϶࣬Apahce XML-RPC
ÊDz»´íµÄÑ¡Ôñ
4¡¢¿Í»§¶ËºÍ·þÎñÆ÷¶Ë¸÷ʵÏÖÒ»Ìס¡¶ÔÏó££Ø£Í£ÌÐòÁл¯£¯·´ÐòÁл¯£¬¿Í»§¶Ëµ÷ÓÃÇëÇóÇ°£¬½«¶ÔÏóת»»ÎªXMLÊý¾ÝÁ÷²¢·âװΪXML-RPC
¸ñʽÇëÇóÔ¶³Ì·½·¨µ÷Ó㬷þÎñÆ÷¶Ë½âÎöXMLÊý¾ÝÁ÷£¬²¢×ª»»Îª¶ÔÓ¦µÄ¶ÔÏó£¬Ö´ÐÐʵ¼ÊµÄÒµÎñ²Ù×÷£»ÕâÒ»²½ÊǷdz£¹Ø¼üµÄ
¿Í»§¶Ëͨ¹ýXMLHTTP½øÐÐÇëÇó´¦ÀíµÄ¼¼Êõ
£º²ÉÓÃXML-RPC·½Ê½´¦Àí¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½»»¥
¿Í»§¶ËºÍ·þÎñÆ÷¶Ë´«µÝµÄÊý¾Ý¸ñʽ
£º²ÉÓÃXML¸ñʽ½»»»Êý¾Ý
ÈçºÎ´¦ÀíÉÏÏÂÎÄÐÅÏ¢
£º¿Í»§¶Ë²ÉÓÃCookie»úÖÆÀ´±£´æÉÏÏÂÎĹØϵ£¬·þÎñÆ÷¶Ë¿ÉÒÔ²ÉÓÃHTTP Session·½Ê½À´À´±£´æ¿Í»§¶ËÐÅÏ¢£¬ÀàËÆÓÚä¯ÀÀÆ÷
ÈçºÎÉè¼Æ·þÎñÆ÷¶ËµÄ½Ó¿Ú
£ºÊ¹Óà XML-RPC·½Ê½Ìṩ×îÔʼ¡¢×î¼òµ¥µÄRPC·½Ê½µ÷ÓÃ
Èç
Ïà¹ØÎĵµ£º
Ò»¡¢ ÍøÂç²¼¾Ö
һ̨ÖÐÐÄSQL·þÎñÆ÷£¨¼ò³Æ£ºÖÐÐÄ·þÎñÆ÷£©£¬¶ą̀·Ö²¼ÔÚ²»Í¬µØÓòµÄSQL·þÎñÆ÷£¨¼ò³Æ£º±¾µØ·þÎñÆ÷£©£¬¸÷¸ö±¾µØ·þÎñÆ÷ºÍÖÐÐÄ·þÎñÆ÷¶¼ÄÜͨ¹ýinternetʵÏÖÍøÂ绥Á¬¡£
¶þ¡¢ËùÓÃÓïÑÔ¼°Êý¾Ý¿â£ºDelphi +Sql
¶þ¡¢ ͨÐÅÒªÇó
ÿ̨±¾µØ·þÎñÆ ......
ͬ²½³ÌÐò°¸Àý
procedure TGetOrderThread.PostDB(webnr:WideString);
var
Err: String;
SetWebnr:WideString;
xmlDoc: IXMLDocument;
root: IXMLNode;
rowc: IXMLNode;//¼Ç¼Êý
rows: IXMLNodeList;//Ö÷¼Ç¼Áбí
row: IXMLNode;
drows: IXMLNodeList;// ......
ÓÃDelphi×÷µÄ³ÌÐòµÄÔ´´úÂëÖг£¼ûµÄÎļþÀ©Õ¹Ãû£¬²¢¸ø³öÁËÕâЩÎļþÀ©Õ¹ÃûµÄÒâÒ壬ÒÔ±ãÔ´´úÂë¹ÜÀíʱ×÷Ϊ²ÎÕÕ£¬À©Õ¹ÃûÒÔ×ÖĸΪÐò£¨²»ÐèÒª½øÔ´´úÂë¿â²»±íʾ²»ÐèÒª½ø¿â£©¡£
¡¡¡¡~*
¡¡¡¡DelphiÉú³ÉµÄ±¸·ÝÎļþ£¬ÔÚ°æ±¾¿ØÖÆ¿â¼°·¢²¼´úÂëÖв»Ó¦¸Ã³öÏÖÕâЩÎļþ£¬Èç¹ûÐÞ¸ÄÁËij¸öÎļþÈ´ÒòijЩÔÒòûÓб£´æµÄ»°£¬¿ÉÒÔ³¢ÊÔʹÓÃÕâЩÎļþ» ......
ÆÁÄ»µÄ·Ö±æÂÊÓÃÕâ¸ö
x=GetSystemMetrics(SM_CXSCREEN)
y=GetSystemMetrics(SM_CYSCREEN)
ͬÉÏ¡£
.¶øÇÒ»ñµÃÆÁÄ»ÉϵÄÏñËغÃÏñÓ¦¸ÃʹÓÃ
screen.pixelsperinchº¯Êý
int GetDeviceCaps(
  ......
¼¼Êõ½»Á÷,DH½²½â. ×î½üºÍ·ÊÄñ½»Á÷ÁËϹØÓÚ×Ö·û´®·½ÃæµÄ֪ʶ,¶øÕâƪÎÄÕÂÊǺܾÃÒÔǰдµÄ,ÏÖÔÚ·¢³öÀ´°É. ÎÒÃÇдÁ½¶Î´úÂëÀ´¶Ô±ÈÏÂ:
µÚÒ»¸öÓÃCopyº¯Êý:
procedure TForm1.Button1Click(Sender: TObject);
var
a,c:Cardinal;
n:Integer;
D:Double;
i:Integer;
b:string;
begin
c:=0; ......