gpt4 book ai didi

java - AXIS2 轴故障 : this is a soap-encoded endpoint

转载 作者:太空宇宙 更新时间:2023-11-04 10:36:33 24 4
gpt4 key购买 nike

我正在尝试使用 AXIS2 来使用 SOAP WS。我收到以下异常。相同的请求在 Soap UI 中工作正常

org.apache.axis2.AxisFault: this is a soap-encoded endpoint
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:508)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:368)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
at apt.com.webmethods.www.wsdl.customerletters.CustomerLettersStub.getServiceDetailsForCustomerLetters(CustomerLettersStub.java:470)

我在谷歌上似乎找不到关于此异常的信息。我的假设是 Axis2 不能支持默认代码的 GZIP 编码。我需要一些帮助来解决此错误。它真的与编码有关吗?如何向 AXIS2 指定这是一个 gzip 编码字符串?

EDIT1:根据 example found here 更改了代码.

ServiceClient clt=stb._getServiceClient();
clt.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST, true);
clt.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP, true);
OMElement response = clt.sendReceive(ele);

现在出现以下异常:

org.apache.axiom.om.DeferredParsingException: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 8))

最佳答案

事实证明 Axis2 和 JAX-WS 都不支持 RPC/编码端点。我必须恢复到 Axis1.4 才能使其正常工作。

关于java - AXIS2 轴故障 : this is a soap-encoded endpoint,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49398098/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com