Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Web service invocations

18 views
Skip to first unread message

dil...@eurocenter.lk

unread,
Dec 5, 2005, 5:18:57 AM12/5/05
to
Hi,

Can someone pls let me know why the error below occurs when a web
service method call is invoked via axis.

I have called the web service by generating client stubs with the
wsdl2java command.


- The Error is org.xml.sax.SAXParseException: Premature end of file.
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.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
com.sphereon.imh.external.wsaccess.RavnShopSoapStub.getAnnualAccountsList(RavnShopSoapStub.java:192)

Thanks
Di

Chris Smith

unread,
Dec 5, 2005, 2:12:12 PM12/5/05
to
<dil...@eurocenter.lk> wrote:
> Can someone pls let me know why the error below occurs when a web
> service method call is invoked via axis.
>
> I have called the web service by generating client stubs with the
> wsdl2java command.

Looking at the error message, it appears that the SOAP stub is getting
an incomplete response from the server. I'm not entirely sure why this
is the case, but that would be a server-side problem and may not be
solvable from client-side code. If the web service location is not
protected by SSL, then you should be able to get Ethereal to tell you
the complete response and confirm that this is the problem.

Do you have access to the server? Do you know what technology is used
to produce it (for example, is it using Axis?)

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

0 new messages