xmlСÎÊÌâÇó¾È! - PHP / »ù´¡±à³Ì
webservice ¸øÎÒÒ»¸ö µØÖ·£º http://www.xxxxxxxxxxxxxxx.aspx?... Ö±½ÓÔÚä¯ÀÀÆ÷ÊäÈëÕâ¸öµØÖ· £¬ ÏÔʾµÄÊÇXML¡£ ÎÒÏÖÔÚÏ£ÍûÓÃÎÒ×Ô¼ºµÄPHPÀï°ÑÕâ¸öXMLÊä³öÀ´£¬Ôõô°ì°¡£¿ ÎÒÈç¹ûÕâÑù£º header("Content-Type: application/xml"); print(http://www.xxxxxxxxxxxxxxx.aspx?...); È´»¹ÊÇÎÞ·¨Êä³öÄǸöXML£¬Firefoxϵõ½µÄÊÇ£º XML½âÎö´íÎó£ºÎ´×éÖ¯ºÃ IEϵõ½µÄÊÇ£º ÎÞ·¨ÏÔʾ XML Ò³ ÎÒÏÖÔÚÏ£ÍûÓÃÎÒ×Ô¼ºµÄPHPÀï°ÑÕâ¸öXMLÊä³öÀ´£¬Ôõô°ì°¡£¿
echo file_get_contents("http://www.xxxxxxxxxxxxxxx.aspx?...");ÒýÓà echo file_get_contents("http://www.xxxxxxxxxxxxxxx.aspx?..."); ..... header("Content-Type: application/xml"); echo file_get_contents(http://www.xxxxxxxxxxxxxxx.aspx?...); Êý¾ÝÊÇxml²¢²»´ú±íÊÇwebservice£¬webservice ÊÇ¿ÉÒÔ½»»¥µÄ¡£ Èç¹ûÊÇwebservice ×îºÃÓÃwebservice µÄ·½Ê½Á¬½Ó Ö»ÒªÏÔʾµÄ»°£¬Ö»ÐèÒªheader(location:http://www.xxxxxxxxxxxxxxx.aspx?...); ¾Í¿ÉÒÔÁË Èç¹ûÊDzâÊÔwebservice·µ»Ø»ØÀ´µÄÊý¾Ý£¬ÔòÐèÒª°Ñresponse¹ýÀ´µÄÊý¾Ýת³ÉhmtlÄܹ»ÏÔʾµÄ×Ö·û²ÅÐУ¬Õâ¸öתµÄº¯ÊýÊÇhtmlspecialchars() ÎÒÒ»°ãÓÃÏÂÃæµÄ´úÂë²âÊÔwebservice·µ»ØÀ´µÄÊý¾Ý echo (htmlspecialchars($soap->response,ENT_QUOTES)); Èç¹ûÏÔʾÂÒÂëµÄ»°£¬¼ÇµÃת»»±àÂë ѧϰ£¡£¡
Ïà¹ØÎÊ´ð£º
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url) ²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È« Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
<?xml version="1.0" encoding="utf-8" ?> - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
Private Sub Command1_Click() Dim MyString() As String Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£ ReDim MyString(LOF(1) - 1) Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ xml Ϊ£º <Discover xmlns="urn:schemas-microsoft-com:xml-analysis"> <RequestType>DISCOVER_XML_ME ......
¹¦ÄÜ˵Ã÷:Java servlet °ÑXMLÊý¾ÝѹËõºó·¢Ë͵½PBÓû§¶Ë,PBÊÕµ½Êý¾Ýºó½âѹ³öÀ´. ´«ÊäÒª¾¹ýBase64±àÂë. ÎÊÌâÊÇ:ÄÜÊÕµ½Êý¾Ýµ«Êǽâѹ²»³öÀ´.ÏëÇë½Ì´ó¼Ò»òÕßÓÐʲôºÃµÄ°ì·¨? PB¿ÉÒÔÓÃ"zlibwapi.DLL" ½âѹ ......