Php Magento SOAP API错误

Php Magento SOAP API错误,php,magento,soap,Php,Magento,Soap,对不起,英语不好。 嗨,我在magento的SOAP API中工作。但当我通过SOAP发送数据时,我遇到了一个异常。我有两个麦根托magento1和magento2。当我将此数组直接从magento1发送到SOAP时,它工作正常。我没有任何问题,但在我的场景中,我必须通过CURL将此数据从magento1发送到magento2。而在magento2中,经过一些处理后,我使用soap将这些数据发送给第三方。但我得到了一个异常,我使用相同的代码发送相同的数组,但在magento2中,我得到了这个错误

对不起,英语不好。 嗨,我在magento的SOAP API中工作。但当我通过SOAP发送数据时,我遇到了一个异常。我有两个麦根托magento1magento2。当我将此数组直接从magento1发送到SOAP时,它工作正常。我没有任何问题,但在我的场景中,我必须通过CURL将此数据从magento1发送到magento2。而在magento2中,经过一些处理后,我使用soap将这些数据发送给第三方。但我得到了一个异常,我使用相同的代码发送相同的数组,但在magento2中,我得到了这个错误

[Message] => The string '1473935705' is not a valid AllXsd value.
这是有效值“1473935705”,我正在使用time()函数获取它。 这是我通过SOAP发送的数组

    Array
(
    [Shipments] => Array
        (
            [0] => Array
                (
                    [Shipper] => Array
                        (
                            [Reference1] => 100000076
                            [Reference2] => 
                            [AccountNumber] => 5185
                            [PartyAddress] => Array
                                (
                                    [Line1] => Area 223, Block 12
                                    [Line2] => 
                                    [Line3] => 
                                    [City] => Manama
                                    [StateOrProvinceCode] => Manama
                                    [PostCode] => 00973
                                    [CountryCode] => BH
                                )

                            [Contact] => Array
                                (
                                    [Department] => 
                                    [PersonName] => Ahmed Nagi
                                    [Title] => 
                                    [CompanyName] => Ahmed Nagi
                                    [PhoneNumber1] => 33161479
                                    [PhoneNumber1Ext] => 
                                    [PhoneNumber2] => 
                                    [PhoneNumber2Ext] => 
                                    [FaxNumber] => 
                                    [CellPhone] => 33161479
                                    [EmailAddress] => a.nagi@iWorldConnect.bh
                                    [Type] => 
                                )

                        )

                    [Consignee] => Array
                        (
                            [Reference1] => 100000076
                            [Reference2] => 
                            [AccountNumber] => 5185
                            [PartyAddress] => Array
                                (
                                    [Line1] => Road: 123, Block:801
                                    [Line2] => 
                                    [Line3] => 
                                    [City] => Manama
                                    [StateOrProvinceCode] => Manama
                                    [PostCode] => 00973
                                    [CountryCode] => BH
                                )

                            [Contact] => Array
                                (
                                    [Department] => 
                                    [PersonName] => Samsung Inc
                                    [Title] => 
                                    [CompanyName] => Samsung Inc
                                    [PhoneNumber1] => 1122334
                                    [PhoneNumber1Ext] => 
                                    [PhoneNumber2] => 
                                    [PhoneNumber2Ext] => 
                                    [FaxNumber] => 
                                    [CellPhone] => 1122334
                                    [EmailAddress] => samsung@esoq.com
                                    [Type] => 
                                )

                        )

                    [Reference1] => 100000076
                    [Reference2] => 
                    [Reference3] => 
                    [ForeignHAWB] => 
                    [TransportType] => 0
                    [ShippingDateTime] => 1473935705
                    [DueDate] => 1474540505
                    [PickupLocation] => Reception
                    [PickupGUID] => 
                    [Comments] => 
                    [AccountingInstrcutions] => 
                    [OperationsInstructions] => 
                    [Details] => Array
                        (
                            [Dimensions] => Array
                                (
                                    [Length] => 0
                                    [Width] => 0
                                    [Height] => 0
                                    [Unit] => cm
                                )

                            [ActualWeight] => Array
                                (
                                    [Value] => 0.6
                                    [Unit] => KG
                                )

                            [ProductGroup] => DOM
                            [ProductType] => BLK
                            [PaymentType] => P
                            [PaymentOptions] => 
                            [Services] => 
                            [NumberOfPieces] => 2
                            [DescriptionOfGoods] => iPhone 6S 128GB Gold - 1.0000, iPad Air 2 Wi-Fi Cell 64GB Gold - 1.0000
                            [GoodsOriginCountry] => BH
                            [Items] => Array
                                (
                                    [0] => Array
                                        (
                                            [PackageType] => Box
                                            [Quantity] => 1
                                            [Weight] => Array
                                                (
                                                    [Value] => 0.100
                                                    [Unit] => Kg
                                                )

                                            [Comments] => iPhone 6S 128GB Gold
                                            [Reference] => 
                                        )

                                    [1] => Array
                                        (
                                            [PackageType] => Box
                                            [Quantity] => 1
                                            [Weight] => Array
                                                (
                                                    [Value] => 0.500
                                                    [Unit] => Kg
                                                )

                                            [Comments] => iPad Air 2 Wi-Fi Cell 64GB Gold
                                            [Reference] => 
                                        )

                                )

                            [CashOnDeliveryAmount] => Array
                                (
                                    [Value] => 
                                    [CurrencyCode] => BHD
                                )

                            [CustomsValueAmount] => Array
                                (
                                    [Value] => 
                                    [CurrencyCode] => BHD
                                )

                        )

                )

        )

    [ClientInfo] => Array
        (
            [AccountCountryCode] => BH
            [AccountEntity] => BAH
            [AccountNumber] => 5185
            [AccountPin] => 432432
            [UserName] => testingapi@aramex.com
            [Password] => R123456789$r
            [Version] => v1.0
            [Source] => 31
        )

    [LabelInfo] => Array
        (
            [ReportID] => 9729
            [ReportType] => URL
        )

)

我发现了我正在使用的time()问题。但是当我使用 日期(“c”,时间())工作正常。
在date函数中使用参数“c”,它将返回ISO 8601日期,这是web服务所期望的