DPDCloudService_v1
Klicken Sie hier, um die vollständige Vorgangsliste anzuzeigen.
setOrder
Test
Das Testformular ist nur für Anforderungen vom lokalen Computer verfügbar.SOAP 1.1
Es folgt ein Beispiel für eine SOAP 1.1-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.
POST /services/v1/DPDCloudService.asmx HTTP/1.1 Host: cloud.dpd.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://cloud.dpd.com/setOrder" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <setOrder xmlns="https://cloud.dpd.com/"> <setOrderRequest> <Version>int</Version> <Language>string</Language> <PartnerCredentials> <Name>string</Name> <Token>string</Token> </PartnerCredentials> <UserCredentials> <cloudUserID>int</cloudUserID> <Token>string</Token> </UserCredentials> <OrderAction>startOrder or checkOrderData</OrderAction> <OrderSettings> <ShipDate>dateTime</ShipDate> <LabelSize>PDF_A4 or PDF_A6 or ZPL_A6</LabelSize> <LabelStartPosition>UpperLeft or UpperRight or LowerLeft or LowerRight</LabelStartPosition> </OrderSettings> <OrderDataList> <OrderData> <ShipAddress xsi:nil="true" /> <ParcelShopID>int</ParcelShopID> <ParcelData xsi:nil="true" /> </OrderData> <OrderData> <ShipAddress xsi:nil="true" /> <ParcelShopID>int</ParcelShopID> <ParcelData xsi:nil="true" /> </OrderData> </OrderDataList> </setOrderRequest> </setOrder> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <setOrderResponse xmlns="https://cloud.dpd.com/"> <setOrderResult> <Version>int</Version> <Language>string</Language> <Ack>boolean</Ack> <TimeStamp>dateTime</TimeStamp> <LabelResponse> <LabelPDF>string</LabelPDF> <LabelDataList> <LabelData xsi:nil="true" /> <LabelData xsi:nil="true" /> </LabelDataList> </LabelResponse> <SystemInformation>string</SystemInformation> <ErrorDataList> <ErrorDataType> <ErrorID>int</ErrorID> <ErrorCode>string</ErrorCode> <ErrorMsgShort>string</ErrorMsgShort> <ErrorMsgLong>string</ErrorMsgLong> </ErrorDataType> <ErrorDataType> <ErrorID>int</ErrorID> <ErrorCode>string</ErrorCode> <ErrorMsgShort>string</ErrorMsgShort> <ErrorMsgLong>string</ErrorMsgLong> </ErrorDataType> </ErrorDataList> </setOrderResult> </setOrderResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
Es folgt ein Beispiel für eine SOAP 1.2-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.
POST /services/v1/DPDCloudService.asmx HTTP/1.1 Host: cloud.dpd.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <setOrder xmlns="https://cloud.dpd.com/"> <setOrderRequest> <Version>int</Version> <Language>string</Language> <PartnerCredentials> <Name>string</Name> <Token>string</Token> </PartnerCredentials> <UserCredentials> <cloudUserID>int</cloudUserID> <Token>string</Token> </UserCredentials> <OrderAction>startOrder or checkOrderData</OrderAction> <OrderSettings> <ShipDate>dateTime</ShipDate> <LabelSize>PDF_A4 or PDF_A6 or ZPL_A6</LabelSize> <LabelStartPosition>UpperLeft or UpperRight or LowerLeft or LowerRight</LabelStartPosition> </OrderSettings> <OrderDataList> <OrderData> <ShipAddress xsi:nil="true" /> <ParcelShopID>int</ParcelShopID> <ParcelData xsi:nil="true" /> </OrderData> <OrderData> <ShipAddress xsi:nil="true" /> <ParcelShopID>int</ParcelShopID> <ParcelData xsi:nil="true" /> </OrderData> </OrderDataList> </setOrderRequest> </setOrder> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <setOrderResponse xmlns="https://cloud.dpd.com/"> <setOrderResult> <Version>int</Version> <Language>string</Language> <Ack>boolean</Ack> <TimeStamp>dateTime</TimeStamp> <LabelResponse> <LabelPDF>string</LabelPDF> <LabelDataList> <LabelData xsi:nil="true" /> <LabelData xsi:nil="true" /> </LabelDataList> </LabelResponse> <SystemInformation>string</SystemInformation> <ErrorDataList> <ErrorDataType> <ErrorID>int</ErrorID> <ErrorCode>string</ErrorCode> <ErrorMsgShort>string</ErrorMsgShort> <ErrorMsgLong>string</ErrorMsgLong> </ErrorDataType> <ErrorDataType> <ErrorID>int</ErrorID> <ErrorCode>string</ErrorCode> <ErrorMsgShort>string</ErrorMsgShort> <ErrorMsgLong>string</ErrorMsgLong> </ErrorDataType> </ErrorDataList> </setOrderResult> </setOrderResponse> </soap12:Body> </soap12:Envelope>