I create the structure AccountAssignment
client = suds.client.Client(url)
accountAssignment = client.factory.create('AccountAssignment')
print accountAssignment
I get the following result:
(AccountAssignment){
Key = None
AccountNo = None
TaxCode = None
Debit = None
Credit = None
Turnover = None
Text = None
FCDebit = None
FCCredit = None
FCTurnover = None
SummaryAccount = None
Balance = None
BankNo = None
BanksortingCode = None
BankAccountNo = None
DepositFormNo = None
DepositFormDate = None
ChequeNumber = None
ExpiryDate = None
GroupMovementType = None
AssociatedCompany = None
Comment1 = None
Comment2 = None
Comment3 = None
AdditionalDate1 = None
AdditionalDate2 = None
}
Then I am able to set the desired values and send that structure to the appropriate method. The problem is, that there are two elements missing in the structure. The AccountAssignment should look like this:
(AccountAssignment){
Key = None
AccountNo = None
TaxCode = None
Debit = None
Credit = None
Turnover = None
Text = None
FCDebit = None
FCCredit = None
FCTurnover = None
SummaryAccount = None
Balance = None
BankNo = None
BanksortingCode = None
BankAccountNo = None
DepositFormNo = None
DepositFormDate = None
ChequeNumber = None
ExpiryDate = None
GroupMovementType = None
AssociatedCompany = None
Comment1 = None
Comment2 = None
Comment3 = None
AdditionalDate1 = None
AdditionalDate2 = None
DebitSpecified = None ** how to add this?
CreditSpecified = None ** how to add this?
}
I tried to add the missing elements with a MessagePlugin and its method marshalled(). The result is, that the elements are added just before sending, which is too late. I need to set values to the two missing elements, so the elements have to be present before I call the sending-method. I also experimented with InitPlugin and DocumentPlugin, with no luck. Any ideas?