Soap error, Encoding: object has no 'RecordId' property

后端 未结 5 1759
情话喂你
情话喂你 2021-01-05 08:00

I am doing a registration form online that connects to a soap web service and should be able to save payment information through it. The PHP is like this

            


        
5条回答
  •  礼貌的吻别
    2021-01-05 08:49

    The best way without having to declare classes is to use the stdClass. To make it work, preserve the name of the fields in your object and object properties.

        $TMemberFee = new stdClass();
        $TMemberV2 = new stdClass();
        ...
        $TMemberV2->RecordID = $id_holder_var;
    
        ...
        $TMemberFee->Member = $TMemberV2;
        ...
    

    This worked for me, I hope it works for you.

提交回复
热议问题