After accessing the webservice interface developed by java, nusoap of version 0.9.5 cannot be connected. let's take a look at the problem. Thank you. Program error: Errorwsdlerror: XMLerrorparsingWSDLfrom192.168.102.126: identifier: EntityRef: expecting & #39 ;;&# 39; the following is the original code: array (& #39; u phpnusoapwebservice interface
Access the webservice interface developed by java for nusoap of version 0.9.5,
The results have never been connected. let's take a look at the problem. Thank you.
Program error:
Error
Wsdl error: XML error parsing WSDL from http: // 192.168.102.126: 8080/eos-default // eos-default/LoginManager on line 32: EntityRef: expecting ';'
The original code is as follows:
Require_once ('../lib/nusoap. php ');
Require_once ('../lib/class. wsdlcache. php ');
$ Params = array ('acoperator' => array (
'Userid' => 'cgc ',
'Password' => '123 ',
)
);
$ Client = new nusoap_client ('http: // 192.168.102.126: 8080/eos-default/LoginManager? Wsdl = org/gocom/abframe/auth/LoginManager. wsdl ', true );
$ Client-> soap_defencoding = 'utf-8 ';
$ Client-> decode_utf8 = false;
$ Client-> xml_encoding = 'utf-8 ';
$ Client-> setHeaders ('tns: UserName/tns: UserName tns: Password/tns: AuthenticationHeader ');
$ Err = $ client-> getError ();
If ($ err ){
Echo 'constructor error'. $ err;
}
$ Result = $ client-> call ('login', $ params, '','', false, true );
If ($ client-> fault ){
Echo 'Fault ';
Print_r ($ result );
} Else {
$ Err = $ client-> getError ();
If ($ err ){
Echo 'error'. $ err;
} Else {
Echo 'result ';
// Print_r ($ result );
}
}
Echo 'request'. htmlspecialchars ($ client-> Request, ENT_QUOTES );
Echo 'response'. htmlspecialchars ($ client-> Response, ENT_QUOTES );
?>