Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Anbindung Magento2 (https://www.delphipraxis.net/198236-anbindung-magento2.html)

Ovida 16. Okt 2018 15:00

Anbindung Magento2
 
Hallo zusammen,

ich habe eine Schnittstelle zu Magento 1.9, die über die SOAP API V2 von Magento kommuniziert.
Schön ist dabei, dass ich alle vorhandenen Variablen aus Magento auch zur Designzeit sichtbar habe, weil ich die WSDL-Datei mit eingebunden habe.
Soweit so gut.

Beispielcode:
Im Moment melde ich mich zum Beispiel so an der API von Magento an, wobei unter Magento 1.9 einfach ein API-Benutzer mit Passwort notwendig ist:

Code:
function magelogin(username, apiKey: string): loginResponseParam;
var
  myLoginParam: LoginParam;
begin
  myLoginParam := loginParam.Create;
  myLoginParam.username := username;
  myLoginParam.apiKey := apiKey;
  result := mage.login(myLoginParam);
  FreeAndNil(myLoginParam);//.Free;
  mysession_id := result.result;
  FreeAndNil(result);//.Free;
end;
Aufruf:

Code:
mage := GetMage_Api_Model_Server_Wsi_HandlerPortType(True, API_Path, API_ServiceName, API_PortName);
magelogin(API_User, API_Key);


Als Rückgabe erhalte ich dann eine Session-ID, die ich dann bei Calls mitgeben kann.

Jetzt muss ich mich mit Magento 2 auseinander setzen.

Hat jemand ein Working Example, wie ich mit Delphi (10.2) eine Verbindung zu Magento 2.2 hinbekomme ? Am Liebsten auch über SOAP und nicht über REST, weil ich sonst alles umprogrammieren muss.
Ich habe die Credentials im Admin von Magento schon eingetragen, habe allerdings überhaupt keinen Schimmer von Oauth etc. und ob ich das überhaupt brauche und stehe hier völlig auf dem Schlauch.

Am Liebsten hätte ich wirklich ein Working example, mit dem ich dann die Logik nachvollziehen kann.
Kann mir wer helfen ? Ich bin auch bereit, Geld dafür auszugeben, damit ich eine Idee bekomme.

Gruß
Holger

MyRealName 16. Okt 2018 17:38

AW: Anbindung Magento2
 
Hast du denn die WSDL URL nicht ? Dakannst die doch auch wieder in Delphi importieren und los geht's :)

Ovida 17. Okt 2018 05:27

AW: Anbindung Magento2
 
Zitat:

Hast du denn die WSDL URL nicht ? Dakannst die doch auch wieder in Delphi importieren und los geht's
Leider nein, denn ab Magento2 braucht es Authentifizierung, um die WSDL aufzurufen.
Das war in Version 1 noch anders und genau das ist auch mein Problem.

Was ich bekomme, ist eine Liste der Endpunkte, die ich aufrufen kann. Aber für die tatsächliche Funktion muss ich mich dann authentifizieren.
Aufruf wäre z.B. dann der hier:

http://localhost/magento2/index.php/...lt?wsdl_list=1

TiGü 17. Okt 2018 12:03

AW: Anbindung Magento2
 
Wenn das bei dir auf dem localhost läuft, dann wird sich doch die Datei mit der Endung .wsdl per Explorer im Installationsverzeichnis des Magneto Dingsbums finden lassen.

Ovida 21. Okt 2018 16:38

AW: Anbindung Magento2
 
Zitat:

Zitat von TiGü (Beitrag 1415968)
Wenn das bei dir auf dem localhost läuft, dann wird sich doch die Datei mit der Endung .wsdl per Explorer im Installationsverzeichnis des Magneto Dingsbums finden lassen.

Nein... so funktioniert das mit WSDL nicht:roll:

TiGü 22. Okt 2018 08:19

AW: Anbindung Magento2
 
Zitat:

Zitat von Ovida (Beitrag 1416255)
Zitat:

Zitat von TiGü (Beitrag 1415968)
Wenn das bei dir auf dem localhost läuft, dann wird sich doch die Datei mit der Endung .wsdl per Explorer im Installationsverzeichnis des Magneto Dingsbums finden lassen.

Nein... so funktioniert das mit WSDL nicht:roll:

Die meisten WebServices, die ich in in der Hand hatte, haben die WSDL-Datei fix & fertig als Datei rumzuliegen für den interessierten Entwickler.
Wenn das bei Magneto 2.2 immer on-the-fly neu generiert und ausgeliefert wird, wegen der Authentifizierung, dann sei es so.

Das hast du schon selber gefunden?
https://magento.stackexchange.com/qu...-xml-structure

Schokohase 22. Okt 2018 10:09

AW: Anbindung Magento2
 
Also, mit curl kann man sich die Daten holen.
  1. Authorization-Token
    Code:
    curl -X POST "http://localhost/magento2/rest/all/V1/integration/admin/token" -H "accept: application/json" -H "Content-Type: application/json" -d "{  \"username\": \"my_username\", \"password\": \"my_password\"}"
    Als Ergebnis erhält man das Token (als JSON-String). Beispiel:
    Code:
    "yi0cvfpuh5erxunn2ixc6shm5jxj73k7"
  2. WSDL
    Code:
    curl "http://localhost/magento2/soap/default?wsdl&services=storeStoreRepositoryV1" -H "Authorization: Bearer <access-token>"
    Also mit dem obigen Beispiel-Token
    Code:
    curl "http://localhost/magento2/soap/default?wsdl&services=storeStoreRepositoryV1" -H "Authorization: Bearer yi0cvfpuh5erxunn2ixc6shm5jxj73k7"
    sollte dann statt
    XML-Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:m="http%3A%2F%2Flocalhost%2Fmagento2%2Fsoap%2Fdefault%3Fservices%3DstoreStoreRepositoryV1%26wsdl%3D1">
       <env:Body>
          <env:Fault>
             <env:Code>
                <env:Value>env:Sender</env:Value>
             </env:Code>
             <env:Reason>
                <env:Text xml:lang="de">Consumer is not authorized to access %resources</env:Text>
             </env:Reason>
             <env:Detail><m:GenericFault><m:Parameters><m:GenericFaultParameter><m:key>resources</m:key><m:value>storeStoreRepositoryV1</m:value></m:GenericFaultParameter></m:Parameters></m:GenericFault></env:Detail>
          </env:Fault>
       </env:Body>
    </env:Envelope>
    so etwas erscheinen
    XML-Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        xmlns:tns="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="MagentoWSDL" targetNamespace="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
        <types>
            <xsd:schema targetNamespace="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                <xsd:element name="GenericFault" type="tns:GenericFault"/>
                <xsd:complexType name="GenericFaultParameter">
                    <xsd:sequence>
                        <xsd:element name="key" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="value" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="ArrayOfGenericFaultParameter">
                    <xsd:annotation>
                        <xsd:documentation>An array of GenericFaultParameter items.</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:GenericFaultParameter">
                            <xsd:annotation>
                                <xsd:documentation>An item of ArrayOfGenericFaultParameter.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="WrappedError">
                    <xsd:sequence>
                        <xsd:element name="message" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="parameters" type="tns:ArrayOfGenericFaultParameter" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Message parameters.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:natureOfType>array</inf:natureOfType>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="ArrayOfWrappedError">
                    <xsd:annotation>
                        <xsd:documentation>An array of WrappedError items.</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:WrappedError">
                            <xsd:annotation>
                                <xsd:documentation>An item of ArrayOfWrappedError.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="GenericFault">
                    <xsd:sequence>
                        <xsd:element name="Trace" minOccurs="0" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Exception calls stack trace.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Parameters" type="tns:ArrayOfGenericFaultParameter" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Additional exception parameters.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:natureOfType>array</inf:natureOfType>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="WrappedErrors" type="tns:ArrayOfWrappedError" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Additional wrapped errors.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:natureOfType>array</inf:natureOfType>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="FrameworkDataImageContentInterface">
                    <xsd:annotation>
                        <xsd:documentation>Image Content data interface</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="base64EncodedData" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Media data (base64 encoded content)</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="type" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>MIME type</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="name" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Image name</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="ArrayOfString">
                    <xsd:annotation>
                        <xsd:documentation>An array of string items.</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>An item of ArrayOfString.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="FrameworkDataVideoContentInterface">
                    <xsd:annotation>
                        <xsd:documentation>Video Content data interface</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="mediaType" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>MIME type</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="videoProvider" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Provider</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="videoUrl" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Video URL</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="videoTitle" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Title</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="videoDescription" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Video Description</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="videoMetadata" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Metadata</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="CatalogDataProductAttributeMediaGalleryEntryExtensionInterface">
                    <xsd:annotation>
                        <xsd:documentation>ExtensionInterface class for @see \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="videoContent" minOccurs="0" maxOccurs="1" type="tns:FrameworkDataVideoContentInterface">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="CatalogDataProductAttributeMediaGalleryEntryInterface">
                    <xsd:annotation>
                        <xsd:documentation></xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="id" minOccurs="0" maxOccurs="1" type="xsd:int">
                            <xsd:annotation>
                                <xsd:documentation>Gallery entry ID</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:min/>
                                    <inf:max/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="mediaType" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Media type</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="label" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Gallery entry alternative text</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="position" minOccurs="1" maxOccurs="1" type="xsd:int">
                            <xsd:annotation>
                                <xsd:documentation>Gallery entry position (sort order)</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:min/>
                                    <inf:max/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="disabled" minOccurs="1" maxOccurs="1" type="xsd:boolean">
                            <xsd:annotation>
                                <xsd:documentation>If gallery entry is hidden from product page</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:default>false</inf:default>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="types" type="tns:ArrayOfString">
                            <xsd:annotation>
                                <xsd:documentation>Gallery entry image types (thumbnail, image, small_image etc)</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:natureOfType>array</inf:natureOfType>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="file" minOccurs="0" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>File path</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="content" minOccurs="0" maxOccurs="1" type="tns:FrameworkDataImageContentInterface">
                            <xsd:annotation>
                                <xsd:documentation>Media gallery content</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="extensionAttributes" minOccurs="0" maxOccurs="1" type="tns:CatalogDataProductAttributeMediaGalleryEntryExtensionInterface">
                            <xsd:annotation>
                                <xsd:documentation>Existing extension attributes object or create a new one.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:element name="storeStoreRepositoryV1GetListRequest" type="tns:StoreStoreRepositoryV1GetListRequest" nillable="true"/>
                <xsd:complexType name="StoreStoreRepositoryV1GetListRequest">
                    <xsd:annotation>
                        <xsd:documentation>Retrieve list of all stores</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence/>
                </xsd:complexType>
                <xsd:element name="storeStoreRepositoryV1GetListResponse" type="tns:StoreStoreRepositoryV1GetListResponse"/>
                <xsd:complexType name="StoreDataStoreExtensionInterface">
                    <xsd:annotation>
                        <xsd:documentation>ExtensionInterface class for @see \Magento\Store\Api\Data\StoreInterface</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                </xsd:complexType>
                <xsd:complexType name="StoreDataStoreInterface">
                    <xsd:annotation>
                        <xsd:documentation>Store interface</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="id" minOccurs="1" maxOccurs="1" type="xsd:int">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:min/>
                                    <inf:max/>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="code" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="name" minOccurs="1" maxOccurs="1" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>Store name</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:maxLength/>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="websiteId" minOccurs="1" maxOccurs="1" type="xsd:int">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:min/>
                                    <inf:max/>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="storeGroupId" minOccurs="1" maxOccurs="1" type="xsd:int">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:min/>
                                    <inf:max/>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="extensionAttributes" minOccurs="0" maxOccurs="1" type="tns:StoreDataStoreExtensionInterface">
                            <xsd:annotation>
                                <xsd:documentation>Existing extension attributes object or create a new one.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Conditionally</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="ArrayOfStoreDataStoreInterface">
                    <xsd:annotation>
                        <xsd:documentation>An array of StoreDataStoreInterface items.</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:StoreDataStoreInterface">
                            <xsd:annotation>
                                <xsd:documentation>An item of ArrayOfStoreDataStoreInterface.</xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Conditionally</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
                <xsd:complexType name="StoreStoreRepositoryV1GetListResponse">
                    <xsd:annotation>
                        <xsd:documentation>Response container for the storeStoreRepositoryV1GetList call.</xsd:documentation>
                        <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element name="result" type="tns:ArrayOfStoreDataStoreInterface">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                                <xsd:appinfo xmlns:inf="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1">
                                    <inf:natureOfType>array</inf:natureOfType>
                                    <inf:callInfo>
                                        <inf:callName>storeStoreRepositoryV1GetList</inf:callName>
                                        <inf:returned>Always</inf:returned>
                                    </inf:callInfo>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:schema>
        </types>
        <message name="GenericFault">
            <part name="messageParameters" element="tns:GenericFault"/>
        </message>
        <portType name="storeStoreRepositoryV1PortType">
            <operation name="storeStoreRepositoryV1GetList">
                <input message="tns:storeStoreRepositoryV1GetListRequest"/>
                <output message="tns:storeStoreRepositoryV1GetListResponse"/>
                <fault name="GenericFault" message="tns:GenericFault"/>
            </operation>
        </portType>
        <binding name="storeStoreRepositoryV1Binding" type="tns:storeStoreRepositoryV1PortType">
            <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="storeStoreRepositoryV1GetList">
                <soap12:operation soapAction="storeStoreRepositoryV1GetList"/>
                <input>
                    <soap12:body use="literal"/>
                </input>
                <output>
                    <soap12:body use="literal"/>
                </output>
                <fault name="GenericFault"/>
            </operation>
        </binding>
        <service name="storeStoreRepositoryV1Service">
            <port name="storeStoreRepositoryV1Port" binding="tns:storeStoreRepositoryV1Binding">
                <soap12:address location="http://localhost/magento2/soap/default?services=storeStoreRepositoryV1"/>
            </port>
        </service>
        <message name="storeStoreRepositoryV1GetListRequest">
            <part name="messageParameters" element="tns:storeStoreRepositoryV1GetListRequest"/>
        </message>
        <message name="storeStoreRepositoryV1GetListResponse">
            <part name="messageParameters" element="tns:storeStoreRepositoryV1GetListResponse"/>
        </message>
    </definitions>


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:15 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz