API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Can't create Delivery Location!

0

                $DeliveryId = $client-DeliveryLocation_Create(array(
                    'debtorHandle' = $debtorHandle
                ))-DeliveryLocation_CreateResult;
               
                $DeliveryHandle = $client-Debtor_GetDeliveryLocations(array(
                    'debtorHandle' = $debtorHandle
                ))-Debtor_GetDeliveryLocationsResult;
            // stdClass Object ( DeliveryLocationHandle = stdClass Object ( Id = 11 ) )
            // Data from bellow
                print_r($DeliveryHandle);
               
                $DLA = $client-DeliveryLocation_SetAddress(array(
                    'deliveryLocationHandle' = $DeliveryHandleDeliveryLocationHandle,
                    'value' = $_POSTregstreet_s  \n  $_POSTregstreet2_s,
                ))-DeliveryLocation_SetAddressResponse;
               
            // WHY DOES THIS NOT PRINT ANY DATA, AND WHY DOES IT CRASH MY PHP!?
                print_r($DLA);


Why dosent this work?
I get no errorcode.
It just runs fine untill it should print the DLA, then it stops proccesing the PHP.
I know this beacuse the desgin gets screwd up, and i don't see a reg succes msg.
I get a debtor i e-c, and i get a EMPTY DeliveryLocation.
So it's the SetAddress part that's screws up.
created Jun 26, 2012 by Madman
0% Accept Rate
Q 5 A 13 C 0

Visma e-conomic A/S
...