|
@@ -805,6 +805,8 @@ class commonClass{
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
function ToHtml($xml)
|
|
|
{
|
|
|
$xml = str_replace("&","&",$xml);
|
|
@@ -816,20 +818,50 @@ class commonClass{
|
|
|
$xml = str_replace("\"",""",$xml);
|
|
|
$xml = str_replace('{}','""',$xml);
|
|
|
return $xml;
|
|
|
- }
|
|
|
-
|
|
|
- function SoapToXml($xml)
|
|
|
- {
|
|
|
- //api测试先关闭
|
|
|
- /*$startStr=strrpos($xml,"<![CDATA[");
|
|
|
+ }
|
|
|
+
|
|
|
+ function SoapToXml1($xml)
|
|
|
+ {
|
|
|
+ //api测试先关闭
|
|
|
+ $startStr=strrpos($xml,"<![CDATA[");
|
|
|
$endStr=strpos($xml,"]]>");
|
|
|
$xml=substr($xml,$startStr,$endStr-$startStr);
|
|
|
$xml = str_replace("<![CDATA[>","",$xml);
|
|
|
$xml = str_replace("<![CDATA[","",$xml);
|
|
|
$xml = str_replace("]]]]>","",$xml);
|
|
|
$xml = str_replace("]]>","",$xml);
|
|
|
- $xml = str_replace("<ILLEGAL VALUE>","",$xml); */
|
|
|
- return $xml;
|
|
|
+ $xml = str_replace("<ILLEGAL VALUE>","",$xml);
|
|
|
+ return $xml;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ function SoapToXml2($xml)
|
|
|
+ {
|
|
|
+ //api测试先关闭
|
|
|
+ $xml = str_replace("<![CDATA[< 2.00E+1 ]]]]><![CDATA[>","",$xml);
|
|
|
+ $startStr=strrpos($xml,"<![CDATA[");
|
|
|
+ $endStr=strpos($xml,"]]>");
|
|
|
+ $xml=substr($xml,$startStr,$endStr-$startStr);
|
|
|
+ $xml = str_replace("<![CDATA[","",$xml);
|
|
|
+ $xml = str_replace("<![CDATA[>","",$xml);
|
|
|
+ $xml = str_replace("]]]]>","",$xml);
|
|
|
+ $xml = str_replace("]]>","",$xml);
|
|
|
+ $xml = str_replace("<ILLEGAL VALUE>","",$xml);
|
|
|
+ return $xml;
|
|
|
+ }
|
|
|
+
|
|
|
+ function SoapToXml($xml,$funName)
|
|
|
+ {
|
|
|
+ //api测试先关闭
|
|
|
+ $startStr=strrpos($xml,"<".$funName."Result>");
|
|
|
+ $endStr=strpos($xml,"</".$funName."Result>");
|
|
|
+ $xml=substr($xml,$startStr,$endStr-$startStr);
|
|
|
+ $xml = str_replace("<".$funName."Result>","",$xml);
|
|
|
+ $xml = str_replace("<![CDATA[","",$xml);
|
|
|
+ $xml = str_replace("]]>","",$xml);
|
|
|
+ $xml = str_replace("]]>","",$xml);
|
|
|
+ $xml = str_replace("<ILLEGAL VALUE>","",$xml);
|
|
|
+ return $xml;
|
|
|
}
|
|
|
}
|
|
|
|