简体   繁体   English

Asp.net(c#)和Java EE 5 Web服务

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

We have a asp.net app that talks to a pretty complex Java EE 5 web service. 我们有一个asp.net应用程序,可与非常复杂的Java EE 5 Web服务对话。 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. 我们抛出一个简单的异常而没有任何内部/原始异常,但是我们在.Net端收到此消息。

Additional XML content is present in the fault detail element. Only a single element is allowed.

Works fine with a java client, as in we can get the exception message. 在Java客户端上可以正常工作,因为我们可以获取异常消息。 What can we do? 我们能做些什么?

Nicholas Allen talks about this in his bog post Writing Multiple Detail Elements in Faults : 尼古拉斯·艾伦(Nicholas Allen)在他的沼泽文章“在错误中编写多个细节元素”中谈到了这一点:

On the reverse side, you'll have exactly the same problem with GetDetail because it too is limited to a single object. 相反,GetDetail会遇到完全相同的问题,因为它也仅限于单个对象。 In this case though, you have the replacement directly accessible, GetReaderAtDetailContents, and are more likely to already have been using it. 不过,在这种情况下,您可以直接访问替换项GetReaderAtDetailContents,并且很有可能已经在使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM