Discussions
Capturing web services errors with WCF
We are finding that when using WCF to make web service calls, we are unable to retrive any error codes that may be generated by Netsuite. When stepping through the code, the error is being created and is returned correctly, but will then fail and return a FormatException to the calling code. So far we have observed this on a SESSION_TIMED_OUT error and an INVALID_LOGIN_CREDENTIALS error, however we believe that this will be common across all errors. Both of these return the following error:
System.FormatException : Additional XML content is present in the fault detail element. Only a single element is allowed.