<?xml version="1.0"?>
<definitions name="AdresType"
         targetNamespace="http://www.fluidimagination.com/sams/addressType.wsdl"
        xmlns:tns=http://www.fluidimagination.com/sams/addressType.wsdl
        xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
        <xsd:schema
         targetNamespace="http://www.fluidimagination.com/sams/addressType.wsdl"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:complexType name="kasaType">
                <xsd:all>
                    <xsd:element name="pkwiu" type="pkwiuType"/>
                    <xsd:element name="isbn" type="isbnType"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:simpleType name="pkwiuType">
                <xsd:restriction base="xsd:string">
                    <xsd:pattern value="[0-9]{12}"/>
                </xsd:restriction>
            </xsd:simpleType>
            <xsd:simpleType name="isbnType">
                <xsd:restriction base="xsd:string">
                    <xsd:pattern value="([0-9]-){13}"/>
                </xsd:restriction>
            </xsd:simpleType>
        </xsd:schema>
    </types>
    <!-- Komunikat z dwoma kodami -->
    <message name="zakup">
        <part name="kodProduktu" type="tns:kasaType"/>
    </message>
</definitions>
