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

CurrentInvoice_Book returns content type HTML instead of XML

0

CurrentInvoice_Book throws an error:

"The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)."

when executing

InvoiceHandle invoiceNumberHandle = eConomic.CurrentInvoice_Book(custInvoice);

This has been working properly for a long time and I asume that the underlying explanation is that the service returns a server error formatted as HTML, but I can't trace the cause of the error.

From the E-conomic UI I can tell that the invoice in question was actually booked.
But why is CurrentInvoice_Book not returning a valid response?

 

created Oct 7, 2014 by Daniel Johannsen
0% Accept Rate

edited Oct 7, 2014 by Daniel Johannsen
Q 1 A 0 C 1

1 Answer

0
Hi Daniel,

Do you still have the problem? What url are you using to communicate with our API?

/Morten
answered Oct 15, 2014 by mortenanders
Hi Morten,
I have not experienced the same behaviour again, so I guess I'm alright for now, but it would be nice to know why the error was thrown.
I use the following URL: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx.
Visma e-conomic A/S
...