Please help me. how does php get data from the WCF service? Serivce interface: MemberService & nbsp; method login (int & nbsp; teamId, string & nbsp; username, string & nbsp; password) php code: $ teamId = 1; $ username = "aa". how can php retrieve data from the WCF service?
Serivce interface: MemberService method login (int teamId, string username, string password)
Php code:
$ TeamId = 1;
$ Username = "aa ";
$ Pasword = "123456 ";
$ Soap = new SoapClient ("http: // localhost/TeamLoggingWebHost/MemberService. svc? Wsdl ");
$ Result = $ soap-> login ($ teamId, $ username, $ password );
I am a newbie who recently learned php and want to get data from the WCF service. I found the information on the Internet and said it was based on the above information. I tried to report an error. It is better to have examples.
------ Solution --------------------
WCF is not SOAP. although WCF can also use SOAP for communication format
Assume that your WCF supports SOAP, the parameter format should be written according to the instructions of the WSDL.
$ Result = $ soap-> login ($ teamId, $ username, $ password );
Such parameter transmission is rare in SOAP.