Please take a look at how to retrieve the returned XML value & lt ;? Phpheader ("Content-Type: text/html; & nbsp; charset = utf-8"); error_reporting (E_ALL & nbsp, how to retrieve the returned XML value
Header ("Content-Type: text/html; charset = utf-8 ");
Error_reporting (E_ALL ^ E_NOTICE );
Ob_start ();
Require_once ('Lib/nusoap. php ');
$ Url = "http://wingcyx.gicp.net: 1600/WeChatSrv. asmx? Wsdl ";
$ Client = new nusoap_client ($ url, 'wsdl ','','','','');
$ Client-> soap_defencoding = 'utf-8 ';
$ Client-> decode_utf8 = false;
$ Client-> xml_encoding = 'utf-8 ';
// Convert the parameter to an array for passing
$ Ary = array ('WeChat' => 'wingcyx', 'mobile' => '123 ');
$ Result = $ client-> call ('regmember', $ ary );
$ Result = get_object_vars ($ result );
Echo $ result-> regmemberResult;
?> Share:
------ Solution --------------------
Header ("Content-Type: text/html; charset = utf-8 ");
Error_reporting (E_ALL ^ E_NOTICE );
Ob_start ();
Require_once ('Lib/nusoap. php ');
$ Url = "http://wingcyx.gicp.net: 1600/WeChatSrv. asmx? Wsdl ";
$ Client = new nusoap_client ($ url, 'wsdl ','','','','');
$ Client-> soap_defencoding = 'utf-8 ';
$ Client-> decode_utf8 = false;
$ Client-> xml_encoding = 'utf-8 ';
// Convert the parameter to an array for passing
$ Ary = array ('WeChat' => 'wingcyx', 'mobile' => '123 ');
$ Result = $ client-> call ('regmember', $ ary );
// $ Result = get_object_vars ($ result );
$ Doc = new DOMDocument ();
$ Doc-> loadXML ($ result ['regmemberresult']);
Echo $ doc-> getElementsByTagName ('cardid')-> item (0)-> nodeValue;