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

php soap³õʶ

´ò¿ªphp.iniµÄsoapÀ©Õ¹
server.php
<?php
class math{

/**
* ¼Ó·¨
*
* @param integer $a
* @param integer $b
* @return integer
*
*/
public function add($a, $b){

return $a + $b;
}
}
$server = new SoapServer('http://localhost/math.wsdl',array('soap_version' => SOAP_1_2));
$server->setClass("math");
$server->handle();
?>
client.php
<?php
$client = new SoapClient('http://localhost/math.wsdl');
$result = $client->add(1,3);
echo $result;
?>
ÆäÖÐhttp://localhost/math.wsdlÎļþÓÉzend studioÉú³É


Ïà¹ØÎĵµ£º

PHP³ÌÐòÔ±×îÒ×·¸10ÖÖ´íÎó


PHP³ÌÐòÔ±×îÒ×·¸10ÖÖ´íÎó

PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾­³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ
1.²»×ªÒâhtml entities
 
  Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½ ......

phpѧϰ±Ê¼Ç£¨13£©:PHP+MYSQL¼òµ¥·ÖÒ³

conn.php
<?php
/*
 * Created on 2010-1-6
 * Author:CHAUVET
 * Function:Á¬½Ó×Ö·û´®
 */
 $conn=@mysql_connect("localhost","root","")or die("Á¬½ÓÊý¾Ý¿â³ö´í£¡");
 mysql_select_db("newdb",$conn);
 mysql_query("set names 'gb2312'");
 function ReplaceSom ......

phpÖÐʹÓÃsoapµÄ½¨Á¢¹²Ïí½Ó¿Ú

ÔÚÍøÕ¾ÐèÒª½¨Á¢¹²Ïí½Ó¿ÚµÄʱºò£¬¿ÉÒÔʹÓÃsoap¡£ ÏÂÃæ½éÉÜÏÂÔÚPHPÖÐÈçºÎʹÓÃSOAPµÄÍêÕû¹ý³Ì¡£
1¡¢È·ÈÏPHP»·¾³ÊÇ·ñÖ§³Ösoap,¼ì²éphpÅäÖÃÎļþ£¬°Ñextension=php_soap.dllÇ°µÄ·ÖºÅ(;)È¥µô(windows);ÈôÊÇ×Ô¼º±àÒëÔò±àÒëʱ±ØÐë¼ÓÉÏ --enable-soapÑ¡Ïî¡£
2¡¢½¨Á¢soap·þÎñ¶Ë¡£ ÏÂÃæͨ¹ýʵÀýÀ´ËµÃ÷ÈçºÎ½¨Á¢·þÎñ¶Ë¡£
<?php
cla ......

javaºÍphpÎļþ¶Áд¶Ô±È¾ÙÀý¼°½â¾öÈÃÈËÍ·Í´µÄÂÒÂëÎÊÌâ

JAVAÎļþ¶Áд±ØÐëҪעÒâ±àÂëÎÊÌâ 
 javaµÄÎļþд
Ö±½ÓʹÓÃFileWriter¼´¿É£¬µÚ¶þ¸ö²ÎÊýΪ׷¼ÓдÈ룬ĬÈÏÊǸ²¸Çд¡£Ð´Íê±ØÐëclose²Å»á±£´æдºÃµÄÄÚÈÝ¡£
ĬÈÏÇé¿öÈç¹ûûÓлáн¨Ò»¸öÎļþ
FileWriter fw = null;
try {
fw = new FileWriter("/data/updatetime.dat", true); // true×·¼ÓдÈë
fw.append ......

delphi ±àдµÄcom ¶ÔÏó ÓÃphpµ÷ÓõÄʵÀý

delphi ±àдµÄcom ¶ÔÏó ÓÃphpµ÷ÓÃ
µÄ
ʵÀý
delphi:
function Tmyxml.Get_xml: WideString;
begin
      Get_xml:='wo shi a lei!';
end;
function Tmyxml.Get_xmldata: WideString;
var
xmlStr:string;
begin
  xmlStr := '<?xml   version="1.0" & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ