i also did the same thing as

% copy Calculator.java <your-webapp-root>/axis/Calculator.jws

and gives the document element missing error to me .


Exception in thread "main" org.xml.sax.SAXParseException: Document root
element is missing.
        at org.apache.axis.AxisFault.makeFault(Unknown Source)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
Caused by: org.xml.sax.SAXParseException: Document root element is missing.
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3052)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3040)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown
Source)
        ... 6 more 





> -----Original Message-----
> From: Vaishakhi Ajmera [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: What should be the location of the webservice
> 
> 
> Yes,  I have read the documentation and here is the line that 
> tells us what
> to do
> 
> % copy Calculator.java <your-webapp-root>/axis/Calculator.jws
> 
> I am just not sure if this means that the jws files need to 
> go under the
> axis directory only and cannot be placed in some other directory under
> <my-webapp-root>.
> It would be nice for me to have all my project files including my
> webservices in the directory I want and don't want this 
> dependency on axis
> directory.
> 
> Vaishakhi
> 
> ----- Original Message -----
> From: "St-Germain, Sylvain" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 19, 2002 4:08 PM
> Subject: RE: What should be the location of the webservice
> 
> 
> > Never did that but it seems that it is all in the documentation.
> >
> http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/doc
> s/user-guide.h
> > tml
> >
> > Sylvain.
> >
> > -----Original Message-----
> > From: Vaishakhi Ajmera [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 19, 2002 4:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: What should be the location of the webservice
> >
> >
> > I have made a webservice using instant deployment.
> > When I put the webservice under my application usermgr i.e 
> webapps/usermgr
> > directory I am not able to get the webservice working. I 
> always get a
> > Document root element missing error. But if I put my 
> webservice under
> > webapps/axis it works.
> >
> > What does this mean. Do my webservices always have to be 
> under the axis
> web
> > application directory.
> > How do I make my service work from under my project directory.
> >
> > Thanks
> > Vaishakhi
> > ----- Original Message -----
> > From: "Scott Seely" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, April 19, 2002 2:50 PM
> > Subject: RE: .Net ignores <wsdl:fault>?
> >
> >
> > > At this point in time, what .NET will do is receive the 
> data and make it
> > > visible to the client code as XML through the details 
> element (IIRC).
> > >
> > > -----Original Message-----
> > > From: Oliver Suciu [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, April 19, 2002 10:49 AM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: .Net ignores <wsdl:fault>?
> > >
> > > Hi all,
> > >
> > > (Sorry, this one is somewhat geared towards .Net...)
> > >
> > > I've got an Axis service that throws an exception, and WSDL2Java
> > > correctly generates a <wsdl:fault> for the <wsdl:operation>.
> > >
> > > However, the .Net wsdl.exe seems to completely ignore the <fault>,
> > > and no corresponding client-side code is generated.
> > >
> > > Has anybdoy got this working?
> > > Anybdoy looked into .Net interop with respect to <fault>?
> > >
> > > Thanks,
> > >
> > > -- Oliver
> >
> > This message may contain privileged and/or confidential 
> information.  If
> you
> > have received this e-mail in error or are not the intended 
> recipient, you
> > may not use, copy, disseminate or distribute it; do not open any
> > attachments, delete it immediately from your system and 
> notify the sender
> > promptly by e-mail that you have done so.  Thank you.
> 

Reply via email to