Needed to create a proxy to interact from another platform.
(Thanks, Freddy for
http://blogs.msdn.com/b/freddyk/archive/2010/01/30/web-services-infrastructure-and-how-to-create-an-internal-proxy.aspx)
I call a function in a codeunit to process an xml file.
All works fine but only with ridiculous small files.
I found numerous of posts concerning following error
The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader
...and as many replies saying it still does not work.
Anyone who has experience with bindings?
Almost panicking....
Answers
Now getting a bad request error.
Apparantly this has nothing to do with the proxy.
A direct call of the method of the codeunit reference with a larger file does not work either.
Stupid, stupid!
Forgot the "WebServicesMaxMsgSize" in the CustomSettings.
I had been messing with that before, but as it did not help, I had reset it.
Now I got my binding right, I had to change this again.
Still got errors with a very large file.
Seemed to be timed out this time.
All I had to do was to set the timeout on the proxy service
like service.TimeOut = ms;