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

Invoice_GetPdf(InvHandle) results in NetDispatcherFaultExcep

Dear e-conomic

I am using e-conomic SOAP API (and C#) to handle invoices in my application. The reason why I am using SOAP API for this part is that CurrentInvoice id is exposed through SOAP API and not through .Net API. Everything worked fine, but when calling this line of code:
The NetDispatcherFaultException is thrown saying that the formatter threw exception while trying to deserialize the message. Here the exception message:

Is there anything I can do to fix this?

Best regards
created Dec 11, 2012 by javid
0% Accept Rate
Q 3 A 4 C 0

3 Answers

Hi Javid,

I assume you have not been able to change the MaxArrayLength property as suggested by the error message?
answered Dec 11, 2012 by nkn
Hi Nikolaj, thanks for your response.

I am not sure if I have access to the XmlDictionaryReaderQuotas object. I am not creating the XML reader. I am just calling the SOAP web service Invoice_GetPdf(InvoiceHandle handle), which should return a byte[]. The MaxArrayLength property must be set on the XmlDictionaryReaderQuotas object (as far as I can tell from the exception message). Can I set this property? In that case how? Any help is appreciated.

Best regards
answered Dec 11, 2012 by javid
I do have the same problem if there is a solution please let me know.

answered Jan 28, 2013 by gsveen
Visma e-conomic A/S