¹ØÓÚ¡¡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ÖÐ×Ô¶¨Òå£È£Ô£Ô£ÐÍ·Ò²²»¶Ô
´íÎó:¿Í»§¶Ë·¢ÏÖÏìÓ¦
Ïà¹ØÎÊ´ð£º
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
$a = $_FILES['userfile']['name'] ;
$test = $a;
$p = split('/',$test);
$p[count($p)-1];
$content = file_get_contents("$p");
$con ......
Çë½Ìexcel µÄ±àÂëÎÊÌâ
excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕ ......
¸Õ½Ó´¥Õâ¸ö¶«Î÷£¬ÏëÎÊһϸ÷λ¸ßÊÖʵ¼ùÕâ¸öÐèÒªÄÄЩ¹¤¾ß£¨ÎÒÓõÄlinux,dreamweaver£©£¿¾ßÌåÔõôʵÏÖ£¿ÇóÒ»¸ö¼òµ¥ÍêÕûµÄÀý×Ó
ÍøÉÏËÑË÷nusoap
È¥¡°w3ѧУ¡±Ñ§ÏÂxml
²»¹ýÍøÉϱȽÏÄÑÕÒÄÇÖÖÍêÕûµÄÀý×Ó£¬Ö»Óмò ......