问题
I have to write soap wsdl server in php. Requirement: request:two parameters say startDate & endDate response: as follows
<students>
<student FirstName='Mr. A' LastName='B' />
<student FirstName='Mr. B' LastName='C' />
</students>
Can any one help me writing wsdl file & soap server for the above requirement. I tried many ways but failing for last 4 days.
Please help in writing WSDL file & SOAP Server which communicates with WSDL file, if possible a test client to verify.
Thanks in Advance
回答1:
Try the SoapServer
class:
http://www.php.net/manual/en/class.soapserver.php
Keep in mind that this class is not always available: http://www.php.net/manual/en/soap.installation.php
Using Google I found a few tutorials explaining how to set up a SOAP web service:
- http://devzone.zend.com/25/php-soap-extension/
- http://www.phpeveryday.com/articles/Web-Services-WSDL-Creating-SOAP-Server-P477.html
Please help in writing WSDL file & SOAP Server which communicates with WSDL file, if possible a test client to verify.
IMHO quite high expectations on a simple Q&A site...
来源:https://stackoverflow.com/questions/8212349/wsdl-soap-server-not-returning-xml