You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Black <jb...@ieee.org> on 2002/06/19 18:01:20 UTC
re: more on problem returning vectors
Hello,
I have all my tests passing except one, and that is where I return a
vector. I can return strings fine, regardless of the size, but vectors
don't work.
- Mapping Exception to AxisFault
org.xml.sax.SAXParseException: Document root element is missing.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:118)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:460)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:321)
at org.apache.axis.client.Call.invoke(Call.java:1953)
at org.apache.axis.client.Call.invoke(Call.java:1706)
at org.apache.axis.client.Call.invoke(Call.java:1634)
at org.apache.axis.client.Call.invoke(Call.java:1183)
at
edu.usf.acomp.axis.MSLMSServerSoapBindingStub.lookupLocations(MSLMSServerSoapBindingStub.java:339)
Caused by: org.xml.sax.SAXParseException: Document root element is
missing.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3153)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3141)
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:347)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:216)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:455)
... 23 more
My WSDL is at
http://alina.acomp.usf.edu:8080/axis/services/MSLMSServer?WSDL
I am using lookupLocations() to get the error.
Is it possible to return a vector?
My vector is full of an object of type Location, which is a bean, but
not listed in the WSDL.
How can I ensure that it realizes that the items withinthe vector are
a
bean?
Thank you.
James Black (Computer Research Specialist, Academic Computing, USF)
e-mail: jblack@ieee.org
You never change things by fighting the existing reality. To change
something, build a new model that makes the existing model obsolete.
Buckminster Fuller