Spring WS & Spring -integration: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: была предпринята попытка вставить узел, где это не разрешено

Я пытаюсь вызвать веб-службу, использующую Axis 2 и SOAP 1.2, используя Spring Integration и Spring-ws. Я получаю следующую ошибку

Спасибо

Can anyone is having a clue as  i am quite new to web services development.

Похоже на искаженный XML; предлагаю вам погуглить "hierarchy_request_err java"; есть много результатов, которые могут вам помочь. Если вы не можете понять это, опубликуйте XML здесь, и, возможно, кто-то может помочь.


person NAZAR REHMAN    schedule 01.08.2012    source источник
comment
14:53:50,646 DEBUG SimpleWebServiceOutboundGateway:67 — org.springframework.integration.ws.SimpleWebServiceOutboundGateway#102be12 получено сообщение: [Payload= BILUXUSR iBfgVOlz4JLeZo6sAL70fQ== 2012-07-27T12:12:30.260Z http://218.24:8 http://218.24:8 / commfw_billing_reg412 CSC UX 613E8001881C4FFC90CB8E6D46C22362 http://www.csc.com/standards/PC_Surety/AcordCsc1/AccountInquire/AccountInformation UUID: 89f7261c-16d0-4983-9dce-e411495ad5b7 http://20.15.81.224:9080/commfw_billing_reg412/services2/AccountInquire 319DA5F3-A73C-45DE-B54C537BF852653E 09.12.2012 USD MEW-BILL1 ][Headers={timestamp=1343813030646, id=dc39d221-f257-452b-9f26-6ea1b14489a6, ws_standard. /PC_Surety/AcordCsc1/AccountInquire/AccountInformation}] org.springframework.integration.M essageHandlingException: ошибка в обработчике сообщений [org.springframework.integration.ws.SimpleWebServiceOutboundGateway#102be12] в org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:79) в org.springframework.integration.handler.MessageHandlerChain$1 .send(MessageHandlerChain.java:154) в org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) в org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149) в org. springframework.integration.handler.AbstractReplyProductionMessageHandler.sendMessage(AbstractReplyProductionMessageHandler.java:175) at org.springframework.integration.handler.AbstractReplyProductionMessageHandler.sendReplyMessage(AbstractReplyProductionMessageHandler.java:159) at org.springframework.integration.handler.AbstractReplyProductionMessageHandler. java:124) на org.spring framework.integration.handler.AbstractReplyProductionMessageHandler.handleResult(AbstractReplyProductionMessageHandler.java:118) в org.springframework.integration.handler.AbstractReplyProductionMessageHandler.handleMessageInternal(AbstractReplyProductionMessageHandler.java:100) в org.springframework.integration.handler.AbstractMessageHandler.handleMessage(.AbstractReplyProductionMessageHandler.handleMessageHandleMessage(.AbstractReplyProductionMessageHandler.java:100) java:73) в org.springframework.integration.handler.MessageHandlerChain.handleMessageInternal(MessageHandlerChain.java:137) в org.springframework.integration.handler. AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) в org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114) в org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101) в org .springframework.integration.channel.AbstractSubscribeChannel.doSend(AbstractSubscribeChannel.java:61) в org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) в org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel .java:128) в com.csc.billingux.WebServiceClient.sendRequesttoService(WebServiceClient.java:40) в com.csc.billingux.rest.AccountServiceAdapter.accountService(AccountServiceAdapter.java:47) в com.csc.ControllerServlet.doPost( ControllerServlet.java:49) в javax.servlet.http.HttpServlet.service(HttpServlet.java:641) в javax.servlet.http.HttpServlet.service(Http Servlet.java:722) в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) в org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) в org.apache.catalina .core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) в org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) в org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) ) в org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) в org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) в org.apache.catalina.valves.AccessLogValve. invoke(AccessLogValve.java:927) в org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) в org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) в org.apache .coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proc essor.java:1001) в org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) в org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) в java .util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) в java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) в java.lang.Thread.run(Thread.java:662) ) Причина: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: попытка вставить узел в недопустимое место. в org.apache.axiom.om.impl.dom.NodeImpl.insertBefore(NodeImpl.java:261) в org.apache.axiom.om.impl.dom.NodeImpl.appendChild(NodeImpl.java:240) в org.apache .xml.utils.DOMBuilder.append(DOMBuilder.java:179) в org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:326) в org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java :1072) на com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) на com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java :400) на com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626) на com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:3104) по адресу com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriv er.next(XMLDocumentScannerImpl.java:922) по адресу com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) по адресу com.sun.org.apache.xerces.internal.impl. XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) на com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) на com.sun.org.apache.xerces.internal.parsers. XML11Configuration.parse(XML11Configuration.java:808) на com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) на com.sun.org.apache.xerces.internal.parsers. XMLParser.parse(XMLParser.java:119) по адресу com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) по адресу org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl. java:484) в org.springframework.xml.transform.TransformerObjectSupport.transform(TransformerObjectSupport.java: 71) в org.springframework.integration.ws.SimpleWebServiceOutboundGateway$SimpleRequestMessageCallback.doWithMessageInternal(SimpleWebServiceOutboundGateway.java:102) в org.springframework.integration.ws.AbstractWebServiceOutboundGateway$RequestMessageCallback.doWithMessage(AbstractWebServiceOutboundGateway.java:215) в org.springframework.ws .client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:571) в org.springframework.ws.client.core. WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:537) в org.springframework.integration.ws.SimpleWebServiceOutboundGateway.doHandle(SimpleWebServiceOutboundGateway.java:88) в org.springframework.integration.ws.AbstractWebServiceOutboundGateway.handleRequestMessage(AbstractWebServiceOutboundGateway.java:176) в org .springframework.integration.handler.AbstractReplyProductionMessageHandler.handleMessageInternal(AbstractReplyProductionMessageHandler.java:97) в org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) ... еще 37   -  person NAZAR REHMAN    schedule 01.08.2012


Ответы (1)


@ Гэри Рассел Пожалуйста, изучите этот вопрос

person Gary Russell    schedule 01.08.2012