¹ØÓÚ¡¡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
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
¹«Ë¾Ãû³Æ Ò½ÔªÍø
ְλÃû³Æ PHP¿ª·¢¸ß¼¶¹¤³Ìʦ
ÕÐÆ¸ÈËÊý 1
¹¤×÷µØµã ÉϺ£
нˮ´ýÓö ÃæÒé
µç×ÓÓÊÏä zik@yynet.cn
¹«Ë¾ÍøÖ· http://www.yynet.cn
¹«Ë¾½éÉÜ Ò½ÔªÍø-רעҽ»¼»¥¶¯£¬¼ÜÆðÒ½»¼ ......
Çë½Ìexcel µÄ±àÂëÎÊÌâ
excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕ ......