hallo,

ich versuche mit einem Webservice (einer großen Versandfirma ) zu komunizieren. Dabei kommt die Fehlermeldung "Couldn't parse stream.":
Code:
Couldn't parse stream.
#0 /zendframework/library/Zend/Soap/Client.php(1118): SoapClient->__soapCall('createShipmentD...', Array, NULL, Array, Array)
#1 /Controller/IndexController.php(77): Zend\Soap\Client->__call('createShipmentD...', Array)
#2 /Controller/IndexController.php(77): Zend\Soap\Client->createShipmentDD(Object(CreateShipmentDDRequest))
Der Fehler sagt mir, dass die übergebenen Parameter, an den SOAP Call, nicht konform sind.
Was kann da falsch sein?
Ob die NULL Werte, der Objekte, Strings oder ein echtes NULL sind, scheint egal.

Die Objekte, die den Parameter bilden snd aus -mit wsdl2php aus der WSDL generierten- Klassen erstellt. Aber das hat wohl nichts mit der Fehlermeldung zu tun.
Obwohl mit dem PHP SOAP Client bekomme ich eine andere Fehlermeldung (der Parameter CreateShipmentDDRequest ist immer das selbe) und sie ist vom SOAP Server: org.apache.axis2.databinding.ADBException: Unexpected subelement Notification

Aber die Fehlermeldung vom Zend-SOAP-Client ist doch nicht vom SOAP Server!?!? ...sie deutet doch auf einen Fehler schon in der Datenstruktur des Parameters hin!?!?

Hier der übergebene Parameter "CreateShipmentDDRequest":
Code:
CreateShipmentDDRequest Object
(
    [Version] => Version Object
        (
            [majorRelease] => 1
            [minorRelease] => 0
            [build] => NULL
        )

    [ShipmentOrder] => ShipmentOrderDDType Object
        (
            [SequenceNumber] => 1
            [Shipment] => Shipment Object
                (
                    [ShipmentDetails] => ShipmentDetailsDDType Object
                        (
                            [EKP] => 5000000000
                            [Attendance] => Attendance Object
                                (
                                    [partnerID] => 01
                                )

                            [CustomerReference] => NULL
                            [Description] => nur zum testen
                            [DeliveryRemarks] => NULL
                            [ShipmentItem] => ShipmentItemType Object
                                (
                                    [WeightInKG] => 2
                                    [LengthInCM] => 20
                                    [WidthInCM] => 45
                                    [HeightInCM] => 20
                                    [PackageType] => PK
                                )

                            [Service] => NULL
                            [Notification] => NULL
                            [NotificationEmailText] => NULL
                            [BankData] => NULL
                            [ProductCode] => einProdCode123
                            [ShipmentDate] => 2014-08-23
                            [DeclaredValueOfGoods] => 1
                            [DeclaredValueOfGoodsCurrency] => EUR
                        )

                    [Shipper] => ShipperType Object
                        (
                            [Company] => NameType Object
                                (
                                    [Person] => NULL
                                    [Company] => Company Object
                                        (
                                            [name1] => 
                                            [name2] => NULL
                                        )

                                )

                            [Address] => NativeAddressType Object
                                (
                                    [streetName] => Gamaschenstr
                                    [streetNumber] => 3
                                    [careOfName] => NULL
                                    [Zip] => ZipType Object
                                        (
                                            [germany] => 63748
                                            [england] => NULL
                                            [other] => NULL
                                        )

                                    [city] => Entenhausen
                                    [district] => NULL
                                    [Origin] => CountryType Object
                                        (
                                            [country] => Deutschland
                                            [countryISOCode] => DE
                                            [state] => NULL
                                        )

                                    [floorNumber] => NULL
                                    [roomNumber] => NULL
                                    [languageCodeISO] => NULL
                                    [note] => NULL
                                )

                            [Communication] => CommunicationType Object
                                (
                                    [phone] => 37347446
                                    [email] => dagobert@watschel.com
                                    [fax] => NULL
                                    [mobile] => NULL
                                    [internet] => NULL
                                    [contactPerson] => dagobert Duck
                                )

                            [VAT] => NULL
                        )

                    [Receiver] => ReceiverType Object
                        (
                            [Company] => NameType Object
                                (
                                    [Person] => Person Object
                                        (
                                            [salutation] => NULL
                                            [title] => NULL
                                            [firstname] => Pluto
                                            [middlename] => NULL
                                            [lastname] => Wuff
                                        )

                                    [Company] => NULL
                                )

                            [Address] => NativeAddressType Object
                                (
                                    [streetName] => Baumallee
                                    [streetNumber] => 2
                                    [careOfName] => NULL
                                    [Zip] => ZipType Object
                                        (
                                            [germany] => 83278
                                            [england] => NULL
                                            [other] => NULL
                                        )

                                    [city] => Wuffhausen
                                    [district] => NULL
                                    [Origin] => CountryType Object
                                        (
                                            [country] => Deutschland
                                            [countryISOCode] => DE
                                            [state] => NRW
                                        )

                                    [floorNumber] => NULL
                                    [roomNumber] => NULL
                                    [languageCodeISO] => de
                                    [note] => 
                                )

                            [Packstation] => NULL
                            [Postfiliale] => NULL
                            [Communication] => CommunicationType Object
                                (
                                    [phone] => 2837365376
                                    [email] => pluto@watschel.com
                                    [fax] => NULL
                                    [mobile] => NULL
                                    [internet] => NULL
                                    [contactPerson] => Pluto
                                )

                            [VAT] => NULL
                        )

                    [ExportDocument] => NULL
                    [Identity] => NULL
                    [FurtherAddresses] => NULL
                )

            [Pickup] => NULL
            [LabelResponseType] => URL
            [PRINTONLYIFCODEABLE] => NULL
        )

)