How does php retrieve data from the WCF service?

Source: Internet
Author: User
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.

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.