1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloWorld"
  targetNamespace="urn:HelloWorld"
  xmlns:tns="urn:HelloWorld"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns="http://schemas.xmlsoap.org/wsdl/">
 
 
    <!-- Típusok definíciója -->
    <types>
        <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Hello">
            <xsd:element name="getName" type="xsd:string" />
            <xsd:element name="HelloResponse" type="xsd:string" />
        </xsd:schema>
    </types>
 
    <!-- Üzenetek definíciója -->
    <message name="doHello">
        <!-- doHello üzenet -->
        <part name="yourName" type="tns:getName" />
    </message>
    <message name="doHelloResponse">
        <!-- válaszüzenet a doHello üzenetre  -->
        <part name="return" type="tns:HelloResponse" />
    </message>
 
    <!-- Támogatott műveletek -->
    <portType name="HelloPort">
        <!-- doHello művelet -->
        <operation name="doHello">
            <input message="tns:doHello" />
            <output message="tns:doHelloResponse" />
        </operation>
    </portType>
 
    <!-- Protokoll kötések -->
    <binding name="HelloBinding" type="tns:HelloPort">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
        <operation name="doHello">
            <soap:operation soapAction="urn:HelloAction" />
            <input>
                <soap:body use="encoded" namespace="urn:Hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:Hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </output>
        </operation>
    </binding>
 
    <!-- Szolgáltatás elérhetősége -->
    <service name="HelloService">
        <port name="HelloPort" binding="tns:HelloBinding">
            <soap:address location="http://localhost/hello_server.php" />
        </port>
    </service>
 
</definitions>