How does php call webservice? & lt ;? Phprequire_once (... libnusoap. php); $ clientnewsoapclient (localhost: 8080 IBEIntfservicesIBEService? Wsdl, wsdl); ************************ how php calls webservice,
// Require_once ('../lib/nusoap. php ');
// $ Client = new soapclient ('http: // localhost: 8080/IBEIntf/services/IBEService? Wsdl ', 'wsdl ');
/*************************************** ***************************************/
/* File name: soapclient. php
/* Description: WebService interface client routine
/*************************************** ***************************************/
Include ('../lib/nusoap. php ');
// Create a soapclient object whose parameter is server's WSDL
$ Client = new soapclient ('http: // localhost: 8080/IBEIntf/services/IBEService? Wsdl ', 'wsdl ');
// Input parameters in array format
$ AryPara = array ('strusername' => 'username', 'strpassword' => MD5 ('password '));
// Call a remote function
$ AryResult = $ client-> call ('login', $ aryPara );
// Echo $ client-> debug_str;
/*
If (! $ Err = $ client-> getError ()){
Print_r ($ aryResult );
} Else {
Print "ERROR: $ err ";
}
*/
$ Document = $ client-> document;
Echo <
$ Document
SoapDocument;
?>
This is an example of my search on the Internet, but it cannot be run. please help me, my Q1175210752
------ Solution --------------------
In the browser address bar, enter http: // localhost: 8080/IBEIntf/services/IBEService? Wsdl
What do you get?