Nusoap-problems encountered when using php's NuSoap to access webservice.

Source: Internet
Author: User
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 );
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.