<wsdl:operation name="HelloWorld">
<soap12:operation soapAction="http://www.TestPHP.com/HelloWorld" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetMember">
<soap12:operation soapAction="http://www.TestPHP.com/GetMember" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestPHP">
<wsdl:port name="TestPHPSoap" binding="tns:TestPHPSoap">
<soap:address location="http://soap/goodwsdl/testphp.php" />
</wsdl:port>
<wsdl:port name="TestPHPSoap12" binding="tns:TestPHPSoap12">
<soap12:address location="http://soap/goodwsdl/testphp.php" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
这里有返回的两个字段,一个是返回字符串,这个很好理解
<s:element name="HelloWorld">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="uname" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="upassword" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
伊图教程网[www.etoow.com]
http://www.etoow.com/html/2009-04/1240012647-2.html
<s:element name="HelloWorldResponse">
PHP企业级应用之WebService篇
'http://www.etoow.com/html/2009-04/1240012647-2.html