使用 axis 在 Jboss 中调用 .NET Web 服务

发布于 2024-11-13 09:10:31 字数 220 浏览 1 评论 0原文

我有一个调用 .NET Web 服务的 Java 程序 (.jar),它运行良好。对于另一个需求,我需要从 JBoss 中部署的 Web 应用程序调用此 Web 服务,我重新编写了之前已经测试过的相同程序,但仍然收到此错误消息:RemoteException;嵌套异常是: org.xml.sax.SAXException:SOAP 消息中不允许处理指令

知道我进行 NTLM 身份验证。

帮我

I have a Java program (.jar) that invok a .NET webservice and it works well. For another need, I need to call this webservice from a web application deployed in JBoss, I remade the same program already tested before but still I get this error message: RemoteException; nested exception is:
org.xml.sax.SAXException: Processing instructions are not Allowed Within SOAP messages

Knowing that I do NTLM authentication.

Help me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾铮苏瑾 2024-11-20 09:10:31

这里没什么可说的,但如果我理解正确的话,当您使用 .NET Web 服务单独调用 JAR 时,它可以正常工作,但是当您在服务内使用它时,它可以正常工作。 > 在 JBoss 中,它不起作用。

我推测这里发生了两件事之一:

  1. jar 中的程序非常聪明,并且知道如何进行 NTLM 身份验证。当您在您的帐户下运行该程序时,它可以正常工作。当 JBoss 服务运行时,可能是由无法识别的用户运行,无法使用 NTLM 身份验证,或者可能位于不支持它的平台上。
  2. jar 中的程序有自己的所有依赖项,但这些依赖项与 JBoss 中较高优先级的库冲突,因此调用失败。在这种情况下,您需要将 JAR 与 JBoss 类加载器隔离

要获得更具体的帮助,请编辑您的问题并添加以下信息:

  • JBoss 版本、JBoss JVM 版本、JBoss 运行平台 检查
  • 运行和存在每个版本的应用程序的用户。
  • 在 JBoss 中运行时出现错误的堆栈跟踪

Not much to go on here, but if I understood correctly, when you use your .NET webservice invoking JAR by itself, it works fine, but when you use it inside a service in JBoss, it does not work.

I surmise one of two things is going on here:

  1. The program in the jar is quite clever and knows how to do NTLM authentication. When you run the program under your account, it works fine. When the JBoss service runs, perhaps it is being run by a user that is not recognized, cannot use NTLM authentication or may be on a platform that does not support it.
  2. The program in the jar has all its own dependencies, but these conflict with the higher precedence libraries in JBoss so the call fails. In this case, you need to isolate the JAR from the JBoss class loaders.

To be of more specific help, edit your question and add this information:

  • Version of JBoss, version of JBoss JVM, Platform JBoss is Running On
  • Check the user under which each version of the app is running and present.
  • A Stack Trace Of the Error when Running in JBoss
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文