¹ØÓÚ¡¡php webservice¡¡µÄÎÊÌâ - PHP / »ù´¡±à³Ì
¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
public function Logout()
{
//header('Content-type: text/xml;');
return array("LogoutResult"=>array("1"));
}
}
$server = new SoapServer("WebService.wsdl");
$server->setClass("WebService");
$server->handle();
?>
c#ÈçÏÂ
WebService ws = new WebService();
return dws.Logout();
´íÎó
¿Í»§¶Ë·¢ÏÖÏìÓ¦ÄÚÈÝÀàÐÍΪ¡°text/html¡±£¬µ«Ó¦Îª¡°text/xml¡±¡£
ÇëÇóʧ°Ü£¬´íÎóÐÅϢΪ:
--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://sunity.org/"><SOAP-ENV:Body><ns1:LogoutResponse><ns1:LogoutResult><ns1:anyType>1</ns1:anyType></ns1:LogoutResult></ns1:LogoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
ÕâÖÖÇé¿öÓмû¹ýµÄÂð£¿
¸Äд³ÉÕâÑù
public function Logout()
{
header('Content-type: text/xml;');
return array("LogoutResult"=>array("1"));
}
ҲûÓÃ
²»ÊǸÃÈçºÎÐÞ¸ÄÏìӦͷ
iisÖÐ×Ô¶¨Òå£È£Ô£Ô£ÐÍ·Ò²²»¶Ô
´íÎó:¿Í»§¶Ë·¢ÏÖÏìÓ¦
Ïà¹ØÎÊ´ð£º
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ
²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿
ÔËÐÐÁË/ext_skel --extname=Ä ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//½á¹ûΪ'2006'
......
ÕÐƸ
¹«Ë¾Ãû³Æ ʤÐÐÈí¼þ£¨ÉîÛÚ£©ÓÐÏÞ¹«Ë¾
ְλÃû³Æ PHP³ÌÐòÔ±
ÕÐƸÈËÊý 3-5
¹¤×÷µØµã ÉîÛÚÊÐÁú¸ÚÇøºá¸ÚËÄÁªÐÂÑÇÖ޹㳡ÐÂÐãÔ·B2-201
нˮ´ýÓö 4k-10k
ְλÃèÊö Ö÷Òª¸ºÔð¶ÔÈÕÍâ°üÏîÄ¿µÄÉè¼Æ£¬ ......
Dreamweaver£ººÜºÃÓ㬵«ÊÇÓÐÒ»¸öȱµã£¬²»ÄÜË«»÷Ñ¡Öдø$·ûºÅµÄ±äÁ¿¡£
Kemodo Edit£ºÒ²²»´í£¬µ«ÊÇÓÃÁ˼¸ÌìÏÂÀ´£¬¸Ð¾õÓÃÊó±êµÄÊÖÌ«ÀÛÁË¡£µ«ÄÜË«»÷´ø$·ûºÅµÄ±äÁ¿¡£
Eclipse PHP£ºÌ«´óÁË£¬Æô¶¯Ïà¶ÔÂýµã£¬Õ ......