Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Web service invocations

Thread view: 
dilinig@eurocenter.lk - 05 Dec 2005 10:18 GMT
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 - 05 Dec 2005 19:12 GMT
> 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?)

Signature

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.