Untitled

 avatar
unknown
xml
6 months ago
5.7 kB
45
No Index
<wsdl:definitions
	xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
	targetNamespace="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:s="http://www.w3.org/2001/XMLSchema"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
	<wsdl:types></wsdl:types>

	<wsdl:message name="idcheck">
		<wsdl:part name="userid" type="s:string">
			<s:documentation>Kliento kodas</s:documentation>
		</wsdl:part>
		<wsdl:part name="trans_id" type="s:string">
			<s:documentation>Unikalus transakcijos numeris</s:documentation>
		</wsdl:part>
	</wsdl:message>
	<wsdl:message name="idCheckResponse">
		<wsdl:part name="status" type="s:string"/>
		<wsdl:part name="amount" type="s:int"/>
		<wsdl:part name="errorDescription" type="s:string"/>
		<wsdl:part name="transactionId" type="s:string"/>
		<wsdl:part name="postpaidInvoiceData" type="s:string"/>
	</wsdl:message>

	<wsdl:message name="saleRequest">
		<wsdl:part name="amount" type="s:int">
			<s:documentation>Kliento sumoketa suma</s:documentation>
		</wsdl:part>
		<wsdl:part name="userId" type="s:string">
			<s:documentation>Kliento kodas</s:documentation>
		</wsdl:part>
		<wsdl:part name="posId" type="s:string">
			<s:documentation>Perlo terminalo numeris</s:documentation>
		</wsdl:part>
		<wsdl:part name="transactionId" type="s:string">
			<s:documentation>Unikalus transakcijos numeris</s:documentation>
		</wsdl:part>
	</wsdl:message>
	<wsdl:message name="saleResponse">
		<wsdl:part name="userId" type="s:string"/>
		<wsdl:part name="posId" type="s:string"/>
		<wsdl:part name="transactionId" type="s:string"/>
		<wsdl:part name="status" type="s:string"/>
	</wsdl:message>

	<wsdl:portType name="CustomerSoap">
		<wsdl:operation name="idcheck" parameterOrder="userid trans_id">
			<wsdl:documentation>Patikrina ar egzistuoja klientas ir grazina jo moketina suma</wsdl:documentation>
			<wsdl:input message="tns:idcheck"/>
			<wsdl:output message="tns:idcheckResponse"/>
		</wsdl:operation>
		<wsdl:operation name="sale" parameterOrder="amount userId posId transactionId">
			<wsdl:documentation>Gauna sumoketa suma</wsdl:documentation>
			<wsdl:input message="tns:saleRequest"/>
			<wsdl:output message="tns:saleResponse"/>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="CustomerSoap" type="tns:CustomerSoap">
		<soap:binding transport="https://schemas.xmlsoap.org/soap/https" style="rpc"/>
		<wsdl:operation name="idcheck">
			<soap:operation soapAction="https://www.domainaddress.lt/SOAP_saskaitos/SOAP#idcheck"/>
			<wsdl:input>
				<soap:body use="encoded" encodingStyle="https://schemas.xmlsoap.org/soap/encoding/" namespace="http://schemas.xmlsoap.org/soap/envelope/" parts="userid trans_id"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="encoded" encodingStyle="https://schemas.xmlsoap.org/soap/encoding/" namespace="http://schemas.xmlsoap.org/soap/envelope/" parts="status amount error_desc trans_id idcheckResponse"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="sale">
			<soap:operation soapAction="https://www.domainaddress.lt/SOAP_saskaitos/SOAP#sale"/>
			<wsdl:input>
				<soap:body use="encoded" encodingStyle="https://schemas.xmlsoap.org/soap/encoding/" namespace="http://schemas.xmlsoap.org/soap/envelope/" parts="amount userId posId transactionId"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="encoded" encodingStyle="https://schemas.xmlsoap.org/soap/encoding/" namespace="http://schemas.xmlsoap.org/soap/envelope/" parts="userId posId transactionId status"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="Customer">
		<wsdl:port name="CustomerSoap" binding="tns:CustomerSoap">
			<soap:address location="https://www.domainaddress.lt/SOAP_saskaitos/SOAP/perlas.php"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://schemas.xmlsoap.org/soap/envelope/"
        elementFormDefault="qualified">

    <element name="idcheck">
        <complexType>
            <sequence>
                <element name="userid" type="string"/>
                <element name="trans_id" type="string"/>
            </sequence>
        </complexType>
    </element>
    <element name="idCheckResponse">
        <complexType>
            <sequence>
                <element name="status" type="string"/>
                <element name="amount" type="int"/>
                <element name="errorDescription" type="string"/>
                <element name="transactionId" type="string"/>
                <element name="postpaidInvoiceData" type="string"/>
            </sequence>
        </complexType>
    </element>
    <element name="saleRequest">
        <complexType>
            <sequence>
                <element name="amount" type="int"/>
                <element name="userId" type="string"/>
                <element name="posId" type="string"/>
                <element name="transactionId" type="string"/>
            </sequence>
        </complexType>
    </element>
    <element name="saleResponse">
        <complexType>
            <sequence>
                <element name="userId" type="string"/>
                <element name="posId" type="string"/>
                <element name="transactionId" type="string"/>
                <element name="status" type="string"/>
            </sequence>
        </complexType>
    </element>
</schema>
Editor is loading...
Leave a Comment