浅学soap--------3

//person.wsdl   标签
xml version="1.0" ?>
<definitions name="person" targetNamespace="urn:person" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:person" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types xmlns="http://schemas.xmlsoap.org/wsdl/" />

<portType name="personPort">    
<operation name="name">            
    <input message="tns:nameRequest" />        
    <output message="tns:nameResponse" />    
operation>
<operation name="add">
    <input message="tns:addRequest" />
    <output message="tns:addResponse" />
operation>
portType>


<binding name="personBinding" type="tns:personPort">    
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    
<operation name="name">
    <soap:operation soapAction="urn:person#person#name" />
    <input>
        <soap:body use="encoded" namespace="urn:person" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    input>
    <output>
        <soap:body use="encoded" namespace="urn:person" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    output>
operation>

<operation name="add">        
    <soap:operation soapAction="urn:person#person#add" />
    <input>
        <soap:body use="encoded" namespace="urn:person" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    input>
    <output>
        <soap:body use="encoded" namespace="urn:person" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    output>
operation>
binding>


<service name="person">
    <documentation />
    <port name="personPort" binding="tns:personBinding">    
        <soap:address location="http://localhost:80/test/web_service/Service.php" />
            
    port>
service>
<message name="nameRequest">            
message>
<message name="nameResponse">
    <part name="name" type="xsd:string" />
message>
<message name="addRequest">                    
    <part name="a" type="xsd:string" />        
    <part name="b" type="xsd:string" />        
message>
<message name="addResponse">
    <part name="add" type="xsd:string" />    
message>
definitions>
 

 

转载于:https://www.cnblogs.com/Kqingniao/p/6839797.html

你可能感兴趣的:(php)