axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shraban K B <shrab...@tarangtech.com>
Subject problems in calling a service from a client
Date Sat, 19 Aug 2006 09:50:50 GMT
Hi All,

   I am a newbie to webservices and i am using axis 1.4 and tomcat5.5
and jdk5 for writing my webservices.
     I have written one webservice which is called searchservice  which
does a search service depending on some id and i have generated the wsdl
for these service and generated the necessary classes using WSDL2Java
tools.

   I am also sending the list of files generated by the tool and the
wsdl file.

   I wrote one client which is calling this service and does the
operation but while calling these i am getting following error.

[java] AxisFault
     [java] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
     [java] faultSubcode:
     [java] faultString: org.xml.sax.SAXParseException: The root element
is required in a well-formed document.
     [java] faultActor:
     [java] faultNode:
     [java] faultDetail:
     [java]
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
The root element is required in a well-formed document.
     [java] at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
     [java] at org.apache.xerces.framework.XMLDocumentScanner
$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
     [java] at
org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
     [java] at
org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
     [java] at
org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
     [java] at
org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
     [java] at
org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
     [java] at org.apache.xerces.framework.XMLDocumentScanner
$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
     [java] at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
     [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
     [java] at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
     [java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
     [java] at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
     [java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2767)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2443)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2366)
     [java] at org.apache.axis.client.Call.invoke(Call.java:1812)
     [java] at
soapapi.SearchServiceSoapBindingStub.searchDeviceById(SearchServiceSoapBindingStub.java:155)
     [java] at
com.trilliant.client.SearchServiceClient.main(SearchServiceClient.java:18)
     [java] {http://xml.apache.org/axis/}hostname:shrabank
     [java] org.xml.sax.SAXParseException: The root element is required
in a well-formed document.
     [java] at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
     [java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
     [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
     [java] at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
     [java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2767)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2443)
     [java] at org.apache.axis.client.Call.invoke(Call.java:2366)
     [java] at org.apache.axis.client.Call.invoke(Call.java:1812)
     [java] at
soapapi.SearchServiceSoapBindingStub.searchDeviceById(SearchServiceSoapBindingStub.java:155)
     [java] at
com.trilliant.client.SearchServiceClient.main(SearchServiceClient.java:18)
     [java] Caused by: org.xml.sax.SAXParseException: The root element
is required in a well-formed document.
     [java] at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
     [java] at org.apache.xerces.framework.XMLDocumentScanner
$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
     [java] at
org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
     [java] at
org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
     [java] at
org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
     [java] at
org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
     [java] at
org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
     [java] at org.apache.xerces.framework.XMLDocumentScanner
$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
     [java] at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
     [java] at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
     [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
     [java] at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
     [java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     [java] ... 10 more
    
 Help from anybody is very much appreciated.
 Waiting for the response.
 Tahnks in advance.

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information. If you are not the intended recipient
or received it in error, please contact the sender by reply e-mail and destroy all copies
of the original message. Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
Mime
View raw message