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

ʹÓà PHP ¿ª·¢»ùÓÚ Web ·þÎñµÄÓ¦ÓóÌÐò

תÔØ×Ô£ºhttp://www.ibm.com/developerworks/cn/webservices/1003_chenchen_phpws/index.html
PHP SOAP À©Õ¹
SOAP µÄÈ«³ÆΪ¼òµ¥¶ÔÏó·ÃÎÊЭÒé (Simple Object Access Protocol)¡£ËüÊÇÒ»ÖÖ»ùÓÚ XML
µÄ£¬¿ÉÀ©Õ¹µÄͨÐÅЭÒé¡£SOAP ÌṩÁËÒ»ÖÖ±ê×¼£¬Ê¹µÃÔËÐÐÔÚ²»Í¬Æ½Ì¨Éϲ¢Ê¹Óò»Í¬µÄ±à³ÌÓïÑÔ±àдµÄÓ¦ÓóÌÐò¿ÉÒÔ»¥Ïà½øÐÐͨÐÅ¡£SOAP
µÄ¿ÉÀ©Õ¹ÐÔºÍƽ̨ÎÞ¹ØÐÔʹµÃËü±»¹ã·ºÓÃ×÷ Web ·þÎñµÄͨÐÅЭÒé¡£
ÓÉÓÚ Java ÓïÑÔÌṩÁË¶Ô SOAP µÄÁ¼ºÃÖ§³Ö£¬Í¨³£»ùÓÚ Web ·þÎñµÄÓ¦ÓóÌÐòʹÓà Java ÓïÑÔ±àд¡£¶ÔÓÚ¹ã´óµÄ PHP
³ÌÐòÔ±À´Ëµ£¬¿ÉÄÜ»áÓÐÒ»µãССµÄ²»Âú – PHP µÄ½ÏÔç°æ±¾¸ù±¾Ã»ÓÐ¶Ô SOAP µÄÖ±½ÓÖ§³Ö£¬Ö»ÄÜͨ¹ý PEAR(the PHP
Extension and Application Repository) ÖÐµÄ SOAP ¿â»òÕßµÚÈý·½²úÆ· NuSOAP À´¿ª·¢ Web
·þÎñ¡£²»¹ý×î½üµÄ°æ±¾ÒѾ­¸Ä±äÁËÕâÒ»×´¿ö¡£×Ô PHP 5 ¿ªÊ¼ÐÂÔöÁËÄÚÖÃµÄ SOAP À©Õ¹
(ext/soap)£¬´Ó´ËÎÒÃDz»ÐèÒªÏÂÔضîÍâµÄÀ©Õ¹¿â»òÊÇ´úÂë°üÀ´¿ª·¢»ùÓÚ SOAP µÄÓ¦ÓóÌÐòÁË¡£½ÓÏÂÀ´ÈÃÎÒÃÇÀ´¿´¿´ SOAP
À©Õ¹Öж¼ÓÐÄÄЩÄÚÈÝ¡£
PHP 5 ÖÐµÄ SOAP À©Õ¹ (ext/soap)
PHP 5 ×îÔç·¢²¼µÄ°æ±¾ 5.0.0 ÖоÍÒѾ­ÌṩÁË SOAP À©Õ¹£¬²»¹ýµ±Ê±µÄ PHP ÊÖ²áÖÐÉùÃ÷Õâ¸öÀ©Õ¹ÊÇÊÔÑéÐÔ
(experimental) µÄ¡£Êµ¼ÊÉϵ±Ê±µÄ°æ±¾ÒѾ­ÊµÏÖÁ˱ȽÏÍêÉƵŦÄÜ£¬Ò²Ã»ÓбØҪΪ´Ë¶øµ£ÐÄ¡£Ä¿Ç°Õâ¸öÀ©Õ¹»¹ÔÚ²»¶ÏµØÍêÉÆ£¬ÔçÆÚ°æ±¾ÖеĴ󲿷Ö
bug ¶¼ÒѾ­µÃµ½ÁËÐÞÕý£¬Ä¿Ç°×îеİ汾 (5.3.0) ÖÐÒѾ­ÌṩÁ˱ȽÏÍêÕûµÄ¶Ô SOAP µÄÖ§³Ö£¬¶øÇÒÎÒÃÇÓÐÀíÓÉÏàÐÅ£¬ÒÔºóµÄ°æ±¾»¹»á¸üºÃ¡£
SOAP À©Õ¹¿â½á¹¹
ext/soap ÖаüÀ¨Áù¸öÔ¤¶¨ÒåµÄÀ࣬ͨ¹ýÕâЩÀ࣬ÎÒÃÇ¿ÉÒÔ´´½¨ Web ·þÎñ¶Ë (SoapServer Àà )£¬¿Í»§¶Ë
(SoapClient Àà )£¬´¦Àí SOAP ÇëÇóºÍÓ¦´ð (SoapHeader, SoapParam, SoapVar Àà )£¬Õï¶Ï´íÎó
(SoapFault Àà )¡£ÕâЩÀàÖ®¼äµÄÁªÏµÈçͼ 1 Ëùʾ£º

ͼ 1. SOAP À©Õ¹µÄ½á¹¹

SOAP ·þÎñÀà SoapServer
SoapServer ÀàÓÃÀ´¿ª·¢ Web ·þÎñ¶ËÓ¦ÓóÌÐò¡£Õâ¸öÀàÖаüº¬´´½¨£¬ÉèÖúͲÙ×Ý Web ·þÎñµÄº¯Êý¡£ÓÐÁ½ÖÖ·½Ê½¿ÉÒÔÏò
Web ·þÎñÖÐÌí¼Ó²Ù×÷ (Operation)¡£Ò»ÖÖ·½Ê½ÊÇÖ±½ÓÌí¼ÓÒѶ¨ÒåµÄº¯Êý£¬ÁíÒ»ÖÖ·½Ê½ÊÇÌí¼ÓÒѶ¨ÒåºÃµÄÀ࣬´Ó¶ø½«¸ÃÀàµÄ¹«ÓгÉÔ±º¯ÊýÌí¼Óµ½
Web ·þÎñÖС£
ÁíÒ»¸öÐèҪ˵Ã÷µÄÌØÐÔÊÇ£¬PHP Ö§³ÖÁ½ÖÖ Web ·þÎñµÄģʽ£ºWSDL ģʽºÍ non-WSDL ģʽ£¬ÎªÁ˱ãÓÚÀí½â£¬ÎÒÃÇÊ×ÏÈ´Ó
Web ·þÎñµÄÁ½ÖÖʵÏÖģʽ¿ªÊ¼ËµÆð¡£
PHP ÖÐ Web
·þÎñµÄÁ½ÖÖģʽ£ºWSDL ģʽºÍ n


Ïà¹ØÎĵµ£º

ÔÚ PHP ÖÐÑø³É 7 ¸öÃæÏò¶ÔÏóµÄºÃÏ°¹ß

2008 Äê 11 ÔÂ 17 ÈÕ
Èç¹ûÄúÉÐδ´òËãÓà OO Ô­Ôò´´½¨Ó¦ÓóÌÐò£¬ÔòʹÓà PHP µÄÃæÏò¶ÔÏó£¨OO£©µÄÓïÑÔÌØÐÔ£¬Õâ 7 ¸öÏ°¹ß½«°ïÖúÄú¿ªÊ¼ÔÚ¹ý³Ì±à³ÌÓë OO ±à³ÌÖ®¼ä½øÐÐת»»¡£
ÔÚ PHP ±à³ÌÔçÆÚ£¬PHP ´úÂëÔÚ±¾ÖÊÉÏÊÇÏÞÓÚÃæÏò¹ý³ÌµÄ¡£¹ý³Ì´úÂë µÄÌØÕ÷ÔÚÓÚʹÓùý³Ì¹¹½¨Ó¦ÓóÌÐò¿é¡£¹ý³Ìͨ¹ýÔÊÐí¹ý³ÌÖ®¼äµÄµ÷ÓÃÌṩijÖ̶ֳȵÄÖØÓá£
µ ......

php??VC9,VC6,Thread Safe,Non Thread SafeµÄÒâ˼???

VC9,VC6,Thread Safe,Non Thread SafeµÄÒâ˼?
ʱ¼ä:2009-10-07 10:55À´Ô´:ÍøÂç ×÷Õß:CNITonline.comÕûÀí ÎÒҪͶ¸å ×¢²áIT¼ÒÔ°
×î½üÔÚPHP¹ÙÍøÉÏ¿´µ½ÓÖÓÐаæµÄPHPÏÂÔØÁË£¬ÓÚÊÇÉÏÈ¥ÕÒÕÒFor WindowsµÄ°æ±¾£¬¿ÉÊÇÒ»¿´È·ÉµÑÛÁË£¬Ò»¹²¸øÁËËĸö°æ±¾£¬VC9 x86 Non Thread Safe¡¢VC9 x86 Thread Safe¡¢VC6 x86 Non Thread Safe¡¢VC ......

PHP ʵÏÖ¶à·þÎñÆ÷¹²ÏíSESSIONÊý¾Ý

Ò»¡¢ÎÊÌâÆðÔ´
ÉÔ´óһЩµÄÍøÕ¾£¬Í¨³£¶¼»áÓкü¸¸ö·þÎñÆ÷£¬Ã¿¸ö·þÎñÆ÷ÔËÐÐ×Ų»Í¬¹¦ÄܵÄÄ£¿é£¬Ê¹Óò»Í¬µÄ¶þ¼¶ÓòÃû£¬¶øÒ»¸öÕûÌåÐÔÇ¿µÄÍøÕ¾£¬Óû§ÏµÍ³ÊÇͳһµÄ£¬¼´Ò»Ì×
Óû§Ãû¡¢ÃÜÂëÔÚÕû¸öÍøÕ¾µÄ¸÷¸öÄ£¿éÖж¼ÊÇ¿ÉÒԵǼʹÓõġ£¸÷¸ö·þÎñÆ÷¹²ÏíÓû§Êý¾ÝÊDZȽÏÈÝÒ×ʵÏֵģ¬Ö»ÐèÒªÔÚºó¶Ë·Å¸öÊý¾Ý¿â·þÎñÆ÷£¬¸÷¸ö·þÎñÆ÷ͨ¹ýͳһ½Ó
......

PHPÔÚXPÏÂIISºÍApache2·þÎñÆ÷Éϵݲװ

×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ