UML2PHP5 -> Support::SOAP / WSDL
English version

logo awstats
Diagramme UML
Diagramme UML: héritage
UML2PHP5 permet de générer automatiquement le fichier WSDL (Webservices.wsdl) permettant de décrire un service Web.
Support par UML2PHP5
Contrainte Support
Générer la section types (facultatif) NON
Générer les sections message OUI
Générer les sections portType OUI
Générer les sections binding OUI
Générer la section service OUI
Fichier Webservices.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<!--
	This file has been generated by UML2PHP5			
	UML2PHP5 is free and released under GPL
	Copyright KDO kdo@zpmag.com		
	UML2PHP5 : uml2php5.zpmag.com
-->
<definitions 
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="urn:webservice" 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  name="WebServices" targetNamespace="urn:webservice">

  <message name="getQuoteRequest">
    <part name="symbol" type="xsd:string"/>
  </message>
  <message name="getQuoteResponse">
    <part name="return" type="xsd:float"/>
  </message>
  <message name="getEuroQuoteRequest">
    <part name="symbol" type="xsd:string"/>
  </message>
  <message name="getEuroQuoteResponse">
    <part name="return" type="xsd:string"/>
  </message>
  <message name="sayMessageRequest">
    <part name="msg" type="xsd:string"/>
  </message>
  <message name="sayMessageResponse">
    <part name="return" type="xsd:string"/>
  </message>
  <message name="versionRequest"/>
  <message name="versionResponse">
    <part name="return" type="xsd:string"/>
  </message>
  <message name="getEmailRequest"/>
  <message name="getEmailResponse">
    <part name="return" type="xsd:string"/>
  </message>
  <message name="addRequest">
    <part name="N" type="xsd:int"/>
    <part name="M" type="xsd:int"/>
  </message>
  <message name="addResponse">
    <part name="return" type="xsd:int"/>
  </message>
  
  <portType name="QuotesPortType">
    <operation name="getQuote">
      <input message="tns:getQuoteRequest"/>
      <output message="tns:getQuoteResponse"/>
    </operation>
    <operation name="getEuroQuote">
      <input message="tns:getEuroQuoteRequest"/>
      <output message="tns:getEuroQuoteResponse"/>
    </operation>
    <operation name="sayMessage">
      <input message="tns:sayMessageRequest"/>
      <output message="tns:sayMessageResponse"/>
    </operation>
    <operation name="version">
      <input message="tns:versionRequest"/>
      <output message="tns:versionResponse"/>
    </operation>
  </portType>
  
  <portType name="KDOPortType">
    <operation name="getEmail">
      <input message="tns:getEmailRequest"/>
      <output message="tns:getEmailResponse"/>
    </operation>
    <operation name="add">
      <input message="tns:addRequest"/>
      <output message="tns:addResponse"/>
    </operation>
  </portType>
  
  <binding name="QuotesBinding" type="tns:QuotesPortType">
    <soap:binding style="rpc" 
         transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getQuote">
      <soap:operation soapAction="urn:QuotesAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="getEuroQuote">
      <soap:operation soapAction="urn:QuotesAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="sayMessage">
      <soap:operation soapAction="urn:QuotesAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="version">
      <soap:operation soapAction="urn:QuotesAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
  </binding>

  <binding name="KDOBinding" type="tns:KDOPortType">
    <soap:binding style="rpc" 
         transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getEmail">
      <soap:operation soapAction="urn:KDOAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="add">
      <soap:operation soapAction="urn:KDOAction"/>
      <input>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" 
            namespace="urn:xmethods"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
  </binding>
  
  <service name="Webservice">
    <port name="QuotesPort" binding="tns:QuotesBinding">
      <soap:address location="http://URL/soap_server.php?action=Quotes"/>
    </port>
    <port name="KDOPort" binding="tns:KDOBinding">
      <soap:address location="http://URL/soap_server.php?action=KDO"/>
    </port>
  </service>
</definitions>


Valid XHTML 1.1! Valid CSS! Mozilla Homepage Apache Web Server! PHP: Hypertext Processor MySQL: Open Source Database
Get Firefox!