gpt4 book ai didi

web-services - org.xml.sax.SAXException : Bad envelope tag: definitions

转载 作者:行者123 更新时间:2023-12-04 16:08:23 33 4
gpt4 key购买 nike

我正在尝试使用 apache axix 调用 Web 服务,但我得到了以下异常。请帮我。我正在使用以下技术:JBoss - 6.0接缝 - 2.1.2EJB3,JSF。

Web 服务在 JBoss-4.2.3 中运行良好,但是当我尝试在 JBoss-6.0 中运行时出现错误。

11:48:13,759 ERROR [STDERR] Caused by: org.xml.sax.SAXException: Bad envelope tag:  definitions
11:48:13,760 ERROR [STDERR] at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
11:48:13,760 ERROR [STDERR] at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
11:48:13,760 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
11:48:13,760 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
11:48:13,761 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
11:48:13,761 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
11:48:13,761 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
11:48:13,761 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
11:48:13,762 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
11:48:13,762 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
11:48:13,762 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
11:48:13,762 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
11:48:13,763 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
11:48:13,763 ERROR [STDERR] at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
11:48:13,763 ERROR [STDERR] at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
11:48:13,763 ERROR [STDERR] ... 104 more

最佳答案

这几乎肯定意味着您使用 WSDL 位置而不是资源端点位置设置了服务端点。

关于web-services - org.xml.sax.SAXException : Bad envelope tag: definitions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5548282/

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