nusoap-with PHP nusoap to access WebService encountered problems.

Source: Internet
Author: User
Keywords PHP Nusoap WebService Interface
Phpnusoapwebservice interface

Under 0.9.5 version of Nusoap, access to the Java-developed WebService interface,
The result has been not even up, help to see what is 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:ent Ityref:expecting '; '

The following is the original code:

Require_once ('.. /lib/nusoap.php ');
Require_once ('.. /lib/class.wsdlcache.php ');
$params = Array (' acoperator ' = = Array (
' UserID ' = ' CGC ',
' Password ' = ' 000000 ',
)
);
$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: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);
?>

  • Related Article

    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.