interface PHP Parameters
. NET does the WCF interface, deploying IIS on Access is possible
I use the PHP soap call test, whether it can pass, it is also possible:
Header (' Content-type:text/plain ');
$client = new SoapClient (' http://testu.sh.jinri.com/Flight.User.SOA/SuggestService.svc?wsdl ');
Echo '
';
echo "provided method \ n";
Print_r ($client
getfunctions ());
echo "Related data structure \ n";
Print_r ($clientGetTypes ());
Echo ';
?>
Results seen on the browser
Call this method in WCF: Getsuggestlist
This method is inside the interface:
Public Getsuggestlistresponse getsuggestlist (getsuggestlistrequest request)
So the argument is an object
I use PHP to invoke the following:
$client = new SoapClient (' http://testu.sh.jinri.com/Flight.User.SOA/SuggestService.svc?wsdl ');
$param = Array (' UserId ' = ' ' 1920x1080 ', ' PageIndex ' = ' 1 ', ' PageSize ' = ' 5 ');
Print_r ($client->getsuggestlist ($param));
But throw such an error:
Fatal error:uncaught SoapFault exception: [A:internalservicefault] object reference not set to an instance of the object. In d:\apmserv5.2.6\www\htdocs\wsdltest\index.php:22 Stack trace: #0 [internal function]: Soapclient->__call (' Getsuggestlist ', array) #1 D:\APMServ5.2.6\www\htdocs\wsdltest\index.php: soapclient->getsuggestlist (Array) #2 {main} thrown ind:\apmserv5.2.6\www\htdocs\wsdltest\index.php on line 22
Ask the great God to help, the whole day, do not know what reason.