开发者

Asp.net (c#) and a Java EE 5 web service

开发者 https://www.devze.com 2022-12-14 02:26 出处:网络
We have a asp.net app that talks to a pretty complex Java EE 5 web service.Everything works fine except when we throw an exception.We throw a simple exception without any inner/orig exception, but we

We have a asp.net app that talks to a pretty complex Java EE 5 web service. Everything works fine except when we throw an exception. We throw a simple exception without any inner/orig exception, but we get this message on the .Net side.

Additional XML content is present in the fault detail element.开发者_StackOverflow中文版 Only a single element is allowed.

Works fine with a java client, as in we can get the exception message. What can we do?


Maybe this helps you:

http://social.msdn.microsoft.com/Forums/en/wcf/thread/14a2c1a3-d277-41ef-86f8-0ddb18f0beec


Nicholas Allen talks about this in his bog post Writing Multiple Detail Elements in Faults:

On the reverse side, you'll have exactly the same problem with GetDetail because it too is limited to a single object. In this case though, you have the replacement directly accessible, GetReaderAtDetailContents, and are more likely to already have been using it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号