The following samples showcase possible responses to specific errors or missing parameters in webservice requests.
Create parcel
Miscellaneous
-
Request with no body
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Fault occurred while processing.</faultstring>
</soap:Fault>
-
Request with empty body
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>java.lang.IllegalArgumentException: wrong number of arguments</faultstring>
</soap:Fault>
-
Incoterm field missing
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>shipment.incoterm</ns2:name>
<ns2:value>SHIPMENT_VALID_ROUTING</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Consignee does not exist
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Consignee Address not found in predefined by manufacturer</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.Consignee.Address</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
Authentication Errors
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Authorization invalid</faultstring>
</soap:Fault>
Shipper Validation
Product validation
-
Product does not exist
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-enumeration-valid: Value 'XXXXXXXX' is not facet-valid with respect to enumeration '[Parcel, Express, Freight]'.
It must be a value from the enumeration.</faultstring>
</soap:Fault>
-
Product is not available
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>No matching product available for shipper for the given input data (weight and addresses).</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.Product</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
Service validation
Parcel Validation
Printing Options Validation
-
TemplateSet does not exist or left empty
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-enumeration-valid:
Value 'XXXXXXXX' is not facet-valid with respect to enumeration '[NONE, ZPL200, ZPL300]'.
It must be a value from the enumeration.</faultstring>
</soap:Fault>
-
LabelFormat does not exist or left empty
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error:
cvc-enumeration-valid: Value 'XXXXXXXX' is not facet-valid with respect to enumeration '[PDF, PNG, Zebra]'.
It must be a value from the enumeration.</faultstring>
</soap:Fault>
-
Printer does not exist
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Printer not found in configuration.</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>PrintingOptions.DefinePrinter.DocumentPrinter</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Label printer does not exist
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Printer not found in configuration.</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>PrintingOptions.DefinePrinter.LabelPrinter</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Default printer field with invalid value
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid field PrintingOptions.UseDefault. Value XXXXXXXX is not a valid value</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>PrintingOptions.UseDefault</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Printing options fields left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>PrintingOptions not defined</faultstring>
<detail>
<ns2:MandatoryFieldMissingFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:fieldname>
<ns2:name>ShipmentRequestData.PrintingOptions</ns2:name>
</ns2:fieldname>
</ns2:MandatoryFieldMissingFault>
</detail>
</soap:Fault>
Consignee Address
-
Zip code invalid or left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>consignee.zip</ns2:name>
<ns2:value>ADDRESS_ZIPCODE_MANDATORY</ns2:value>
</ns2:field>
<ns2:field>
<ns2:name>consignee.zip</ns2:name>
<ns2:value>ADDRESS_VALID_ZIPCODE</ns2:value>
</ns2:field>
<ns2:field>
<ns2:name>routing</ns2:name>
<ns2:value>SHIPMENT_VALID_ROUTING</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
CountryCode left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Mandatory field is not set or invalid</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.Consignee.Address.CountryCode</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
CountryCode field set with invalid or unknown values
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Mandatory field is not set or invalid</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.Consignee.Address.CountryCode</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
NameX/Province/City/Street/Streetnumber/Contact person that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 40</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.Consignee.Address.XXXXXXXX</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Email that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 80</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.Consignee.Address.EMail</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Telephone or mobile number that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Mobile or telephone number length exceeds 40</faultstring>
</soap:Fault>
IdentPIN
-
Pin that's too short or no Pin
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too short. Minimum 4</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.Service.IdentPin.PIN</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Pin that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 4</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.Service.IdentPin.PIN</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Pin with invalid characters
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value contains characters that are not allowed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>pin</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Birthdate field set with past/future values
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>article.identPin.birthdate</ns2:name>
<ns2:value>ARTICLE_ATTRIBUTES_IDENT_BIRTHDATE</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Birthdate field set with an invalid format
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error:
eu.glsgroup.fpcs.soap.util.SOAPRequestValidationException:
Cannot interpret XXXXXXXX as a valid date.</faultstring>
</soap:Fault>
-
Birthdate field left empty
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'date'.</faultstring>
</soap:Fault>
IdentService
HazardousGoods
CashService
-
Reason field left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is mandatory</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Cash.Reason</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Reason field that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 160</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.ShipmentUnit.Service.Cash.Reason</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Incorrect currency
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>shipmentunit.article.cod.wrongcurrency</ns2:name>
<ns2:value>ARTICLE_ATTRIBUTES_CASH</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Amount field with zero or negative value
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>article.attribute.notpositive</ns2:name>
<ns2:value>ARTICLE_ATTRIBUTES_CASH</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Amount field left empty
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: eu.glsgroup.fpcs.soap.util.SOAPRequestValidationException:
Cannot interpret as a valid decimal value.</faultstring>
</soap:Fault>
-
Amount value with invalid characters
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: eu.glsgroup.fpcs.soap.util.SOAPRequestValidationException:
Cannot interpret XXXXXXXX as a valid decimal value.</faultstring>
</soap:Fault>
-
Amount value that's too high
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Shipment validation failed</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>shipmentunit.attribute.cod.toohigh</ns2:name>
<ns2:value>ARTICLES_PRODUCT_MAX_COD</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
ShopDelivery
ShopReturn
InterCompany
-
NameX/Province/City/Street/Streetnumber/Telephone/Mobile that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 40</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.ShipmentService.[Intercompany|Exchange].Address.XXXXXXXX</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Email that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 80</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.ShipmentService.[Intercompany|Exchange].Address.EMail</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
NumberOfLabels field with zero or negative value
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid field Shipment.Service.Intercompany.NumberOfLabels. Value XXXXXXXX is not a valid value</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.Service.Intercompany.NumberOfLabels</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Zip code field that's left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is mandatory</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Intercompany.Address.ZIPCode</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
CountryCode field that's left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is mandatory</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Intercompany.Address.CountryCode</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
Exchange
-
Zip code field that's left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is mandatory</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Exchange.Address.ZIPCode</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
CountryCode field that's left empty
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is mandatory</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Exchange.Address.CountryCode</ns2:name>
<ns2:value/>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
NameX/Province/City/Street/Streetnumber/Telephone/Mobile that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 40</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.ShipmentService.[Intercompany|Exchange].Address.XXXXXXXX</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
-
Email that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 80</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>Shipment.ShipmentService.[Intercompany|Exchange].Address.EMail</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
DeliveryAtWork
Deposit
-
PlaceOfDeposit that's too long
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Value is too long. Maximum is 121</faultstring>
<detail>
<ns2:InvalidFieldValueFault xmlns="http://fpcs.gls-group.eu/v1/ShipmentProcessing/types" xmlns:ns2="http://fpcs.gls-group.eu/v1/Common">
<ns2:field>
<ns2:name>ShipmentRequestData.Shipment.Service.Deposit.PlaceOfDeposit</ns2:name>
<ns2:value>XXXXXXXX</ns2:value>
</ns2:field>
</ns2:InvalidFieldValueFault>
</detail>
</soap:Fault>
AddOnLiability
CustomContent
-
Barcode type invalid or empty
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-enumeration-valid: Value 'XXXXXXXX' is not facet-valid with respect to enumeration '[EAN_128, CODE_39]'.
It must be a value from the enumeration.</faultstring>
</soap:Fault>