java 获取异常错误代码:{http://schemas.xmlsoap.org/soap/envelope/}Client

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5906618/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 13:22:45  来源:igfitidea点击:

Getting Exception faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client

javasoapaxis

提问by jayavardhan

I am using axis1. While applying command cryptic for my soap I am getting an exception like below. Below are the details.

我正在使用轴 1。在为我的肥皂应用神秘命令时,我收到如下异常。以下是详细信息。

[ERROR] 2011-05-06 09:23:56,073 [MyAmeadeusTest] (MyAmeadeusTest.java:crypticCommand:278)
 11|Session|

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString:  11|Session|
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace: 11|Session|
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

Help would be appreciated.

帮助将不胜感激。

回答by Eddie

You need to do one of two things:

你需要做两件事之一:

1) Look on the web server that your SOAP requests are going to. In those logs you'll probably find the Exception being thrown on that side that is turning into the AxisFault.

1) 查看您的 SOAP 请求将要发送到的 Web 服务器。在这些日志中,您可能会发现在变成 AxisFault 的那一侧抛出的异常。

2) Use something like WireShark to trace the HTTP traffic. Although this won't give you a lot of information beyond what you already have, it will prove that the AxisFault is basically a client-side representation of an Exception thrown on the server side.

2) 使用类似 WireShark 的工具来跟踪 HTTP 流量。尽管这不会为您提供除已有信息之外的大量信息,但它将证明 AxisFault 基本上是在服务器端抛出的异常的客户端表示。

The stack trace you get in this instance (i.e., from SoapFaultBuilder) is entirely misleading, as it's the stack trace of the code that is creating a client-side representation of the server error rather than the server-side stack trace showing the actual problem.

您在此实例中获得的堆栈跟踪(即来自 SoapFaultBuilder)完全具有误导性,因为它是代码的堆栈跟踪创建服务器错误的客户端表示,而不是显示实际问题的服务器端堆栈跟踪.