You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Steve Clement <sc...@SDSAMERICA.net> on 2005/10/04 17:29:53 UTC

Newbie needs client xml output

I am trying to work with a WSDL that is hosted on another server. I have
created the client classes using Axis, but when I try to use them, I get
an Axis faul. I think the problem is with the WSDL, but I want to see
the actual xml output I am sending. How do I do this? The tcpmon only
shows the AxisFault trace, and the SOAPMonitor documentation suggests
that it needs to be deployed on the web service itself, and I do not
have access to that.

WSDL: http://xferftp.bigfootinteractive.com/api/Bigfoot.wsdl

Run from a jsp, the AxisFault is
AxisFault faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode: faultString: org.xml.sax.SAXParseException: Content is not
allowed in trailing section. faultActor: faultNode: faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
Content is not allowed in trailing section. at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source) at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dis
patch(Unknown Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at
javax.xml.parsers.SAXParser.parse(Unknown Source) at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:242) at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at
org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at
org.apache.axis.client.Call.invokeEngine(Call.java:2583) at
org.apache.axis.client.Call.invoke(Call.java:2553) at
org.apache.axis.client.Call.invoke(Call.java:2248) at
org.apache.axis.client.Call.invoke(Call.java:2171) at
org.apache.axis.client.Call.invoke(Call.java:1691) at
bigfoot_test.SOAPStub.PROFILE(Unknown Source) at
org.apache.jsp.TestBigfoot_jsp._jspService(TestBigfoot_jsp.java:107) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20) at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683) at java.lang.Thread.run(Thread.java:534)

How can I see the actual SOAP XML? Specifically, how can I determine
what the "Content is not allowed in trailing section" message refers to.


Steve Clement
Sr. Software Engineer
Samsung SDS America, Inc.
105 Challenger Road
Ridgefield Park, NJ 07660
o: 201-229-7051
c: 732-670-9349

NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use,  disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies, including without limitation
electronic or printed versions, of the message.


Re: Newbie needs client xml output

Posted by Kevin Ruland <kr...@ku.edu>.
Steve,

TCPMON should be showing what you send as well as what is returned.

You can also use ethereal to sniff the network.  It needs to be running
on the same segment as either the server or the client code.

Good luck.

Kevin