• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in Webservices :Content is not allowed in prolog  RSS feed

Kavita Kale
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first of all thanx for replying to my que

i hv developed one appln using hibernate (database connectivity ) in that
i m going to implement webservice....

In my appln ....

from database i want to retrive list of user & want to show as a o/p

my prog get compiled ... by javac command
now.. when i gave command like

java CalcClient getdata

// getdata is name of method in my webservice for retriving user list.

& i m using Axis & Tomcat

it gives me err as

Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. faultActor:
{http://xml.apache.org/axis/}stackTrace rg.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at CalcClient.main(CalcClient.java:63)

plz reply me as early as possible ....
becoz i really stuck up on this point .....

i read one forum ....in that solution for this err is like that ...

This exception may be caused when there is extra text that the XML parser is not expecting at the beginning of the MDF

but i m not getting the exact ans...

plz help me
[ February 10, 2006: Message edited by: kavita Tajave ]
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this one may hlep you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!