[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception Error on Premature end of file on Http_post_xml
Hello Behzad,
Your SOAP message is invalid and makes no sense, and I strongly suspect
that is the cause of the problem. Where did you get this SOAP message from?
Your e-mail actually contained two SOAP messages, one that was just part
of the text of the message, and another from the HTTPAPI debug file.
They were different from one another, but both were invalid.
Here's the one from the debug file (which I assume is the one you're
actually using) I have reformatted the spacing to make it easier to read:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<soapenv:process>
<soapenv:gorcid>0000000167</soapenv:gorcid>
</soapenv:process>
</soapenv:Body>
</soapenv:Envelope>
You'll notice that EVERY SINGLE TAG is prefixed by the namespace from
the SOAP envelope. That doesn't make any sense! Your SOAP message
can't be all envelope! There has to be some data as well.
I suspect that the 'process' and 'gorcid' tags are supposed to be data,
since they aren't part of the SOAP specification to my knowledge.
But there's no way the web service is going to recognize them as data,
since they are prefixed by the SOAP name space. Please change them to
be prefixed by the correct name space.
To everyone out there:
PLEASE PLEASE PLEASE stop trying to make up your own soap messages. Use
the WSDL, and a computer program that's designed to calculate the SOAP
message from the WSDL. (SoapUI is my preferred choice, but there are others)
Behzad Hosseinzadeh wrote:
>> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Head
>> e
>> r
>>
> /><soapenv:Body><soapenv:process><soapenv:gorcid>0000000167</soapenv:go
>> r
>> cid></soapenv:process></soapenv:Body></soapenv:Envelope>
>>
>> recvresp(): entered
>>
>> HTTP/1.1 500 Internal Server Error
>>
>> Connection: close
>>
>> Date: Thu, 08 Oct 2009 02:57:20 GMT
>>
>> Server: Microsoft-IIS/6.0
>>
>> server: DEV1.3
>>
>> PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by
>> "abuse@xxxxxxxxx" on "2008.11.19T20:45-0600" exp "2020.11.19T12:00-
>> 0600"
>> r (v 0 s 0 n 0 l 0))
>>
>> Set-Cookie: CFID=2005731;expires=Sat, 01-Oct-2039 02:57:20 GMT;path=/
>>
>> Set-Cookie:
>> CFTOKEN=c93162777f0e1b44-3214493B-188B-41B5-
>> E8D03047EC5C2DAE;expires=Sat
>> , 01-Oct-2039 02:57:20 GMT;path=/
>>
>> Set-Cookie: JSESSIONID=5030b638c539d5bd760def653de132d545f1;path=/
>>
>> Content-Type: text/xml; charset=utf-8
>>
>>
>>
>>
>>
>> SetError() #13: HTTP/1.1 500 Internal Server Error
>>
>> recvdoc parms: identity 0
>>
>> header_load_cookies() entered
>>
>> cookie_parse() entered
>>
>> cookie = CFID=2005731;expires=Sat, 01-Oct-2039 02:57:20 GMT;path=/
>>
>> cookie attr cfid=2005731
>>
>> cookie attr expires=Sat, 01-Oct-2039 02:57:20 GMT
>>
>> cookie attr path=/
>>
>> cookie_parse() entered
>>
>> cookie =
>> CFTOKEN=c93162777f0e1b44-3214493B-188B-41B5-
>> E8D03047EC5C2DAE;expires=Sat
>> , 01-Oct-2039 02:57:20 GMT;path=/
>>
>> cookie attr cftoken=c93162777f0e1b44-3214493B-188B-41B5-
>> E8D03047EC5C2DAE
>>
>> cookie attr expires=Sat, 01-Oct-2039 02:57:20 GMT
>>
>> cookie attr path=/
>>
>> cookie_parse() entered
>>
>> cookie = JSESSIONID=5030b638c539d5bd760def653de132d545f1;path=/
>>
>> cookie attr jsessionid=5030b638c539d5bd760def653de132d545f1
>>
>> cookie attr path=/
>>
>> recvdoc(): entered
>>
>> SetError() #0:
>>
>> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>
>> <soapenv:Body>
>>
>> <soapenv:Fault>
>>
>> <faultcode>soapenv:Server.userException</faultcode>
>>
>> <faultstring>org.xml.sax.SAXParseException: Premature end of
>> file.</faultstring>
>>
>> <detail>
>>
>> <ns1:stackTrace
>> xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXParseException:
>> Premature end of file.
>>
>> at
>>
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn
>> o
>> 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.XMLVersionDetector.determineDocVersion(Unknown
>> 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(SAXParser.java:395)
>>
>> at
>>
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationCo
>> n
>> text.java:227)
>>
>> at
>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>>
>> at
>> org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
>>
>> at
>>
> org.apache.axis.server.AxisServer.initSOAPConstants(AxisServer.java:345
>> )
>>
>> at
>> org.apache.axis.server.AxisServer.invoke(AxisServer.java:279)
>>
>> at
>>
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>> at
>> coldfusion.xml.rpc.CFCServlet.doAxisPost(CFCServlet.java:270)
>>
>> at
>> coldfusion.filter.AxisFilter.invoke(AxisFilter.java:43)
>>
>> at
>> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)
>>
>> at
>>
> coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java
>> :
>> 48)
>>
>> at
>> coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
>>
>> at
>> coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
>>
>> at
>> coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
>>
>> at
>>
> coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersis
>> t
>> enceFilter.java:28)
>>
>> at
>> coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
>>
>> at
>> coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
>>
>> at
>> coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
>>
>> at
>> coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:289)
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>
>> at
>>
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.
>> j
>> ava:327)
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>
>> at
>>
> coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
>> at
>> jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>
>> at
>>
> coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringSer
>> v
>> letFilter.java:42)
>>
>> at
>> coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
>>
>> at
>> jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>
>> at
>> jrun.servlet.FilterChain.service(FilterChain.java:101)
>>
>> at
>> jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
>>
>> at
>> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>
>> at
>>
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:28
>> 6
>> )
>>
>> at
>>
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:54
>> 3
>> )
>>
>> at
>>
> jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java
>> :
>> 203)
>>
>> at
>>
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>> a
>> :428)
>>
>> at
>> jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>
>> </ns1:stackTrace>
>>
>> <ns2:hostname
>> xmlns:ns2="http://xml.apache.org/axis/">cvwebdev1</ns2:hostname>
>>
>> </detail>
>>
>> </soapenv:Fault>
>>
>> </soapenv:Body>
>>
>> </soapenv:Envelope>
>>
>> SetError() #13: HTTP/1.1 500 Internal Server Error
>>
>> http_close(): entered
>>
>>
>>
>>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------