Ich versuche, das Versandetikett von dpd.com zu bekommen. Dafür muss ich Seife verwenden, um die Aufgabe zu erledigen. Ich habe die Login-Authentifizierung abgeschlossen und das AuthToken erhalten. Hier ist der Code dafür.senden Sie Soap-Anfrage für dpd.com in PHP
Nun, das Problem ist, ich möchte Versandetikett erhalten, indem Sie Anfrage senden und dieses AuthToken verwenden. Das Format der Soap-Anfrage ist so etwas.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://dpd.com/common/service/types/Authentication/2.0"
xmlns1="https://public-ws-stage.dpd.com/services/ShipmentService/V3_2/?wsdl">
<soapenv:Header>
<ns:authentication>
<delisId>username</delisId>
<authToken>AuthToken From Above</ authToken>
<messageLanguage>en-us</messageLanguage>
</ns:authentication>
</soapenv:Header>
<soapenv:Body>
<ns1:storeOrders>
<paperFormat>A4</paperFormat>
<order>
<generalShipmentData>
<sendingDepot>'.$depot_num.'</sendingDepot>
<product>CL</product>
<mpsCompleteDeliver>false</mpsCompleteDeliver>
<sender>
<name1>Fritz</name1>
<street>Mustergasse</street>
<houseNo>1</houseNo>
<state>BY</state>
<country>DE</country>
<zipCode>53950</zipCode>
<city>Maibach</city>
</sender>
<recipient>
<name1></name1>
<street></street>
<houseNo></houseNo>
<state></state>
<country></country>
<zipCode></zipCode>
<city></city>
</recipient>
</generalShipmentData>
<parcels>
<parcelLabelNumber></parcelLabelNumber>
</parcels>
<productAndServiceData>
<orderTyp></orderType>
</productAndServiceData>
</order>
</ns1:storeOrdes>
</soapenv:Body>
</soapenv:Envelope>
Aber ich weiß nicht, wie man diese Anfrage sendet und die Antwort in PDFData-Tag erhalten.