When I try to consume the CompanyInfo webservice, ServiceStudio gives an error.

WSDL: https://ws1.webservices.nl/soap_doclit?wsdl

Error:

Invalid WSDL (Detail: Metadata contains a reference that cannot be resolved: 'https://ws1.webservices.nl/soap_doclit?wsdl'. There is an error in XML document (1, 587). The maximum nametable character count quota (65536) has been exceeded while reading XML data. The nametable is a data structure used to store strings encountered during XML processing - long XML documents with non-repeating element names, attribute names and attribute values may trigger this quota. This quota may be increased by changing the MaxNameTableCharCount property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 587.)


Anyone has an Idea to fix/bypass this problem?

I assume you sent it to Support as well?

Hi Matthias,

I did a quick search on the Internet and found this article.

So I downloaded the wsdl locally and modified the binding (as per the example in the article) by adding the following line <readerQuotas maxNameTableCharCount="2147483647" /> right under the <binding name> and saved the xml.

After this, I was able to consume the webservice in Service Studio using the locally saved wsdl file. The consuming part will take a while since there are a lot of methods to be generated and Service Studio still failed to generate a few of those methods due to Recursion.


Hope this helps!

Regards,

Nordin

Note that for recursion, you can check this article for a workaround.

I had linked that article in my post too, but maybe it wasn't notable enough. 

Thanks Kilian.

Thank you all, I will check this tomorrow