axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Devgan" <rdev...@gmail.com>
Subject Re: [Axis1.4 ]Not able to pass complex objects
Date Fri, 22 Dec 2006 04:30:42 GMT
Further, using rpc-encoded WS should only be restricted to learning and
testing. If you are working on system that would eventually be used in
production, you are better off handling your documents' serialization
yourself, using document-literal WS.

I reserver the right to my opinion and you yours.

On 12/22/06, Rahul Devgan <rdevgan@gmail.com> wrote:
>
> Hi,
> I hope the following helps:
>
> topic on Java Data Mapping
> http://ws.apache.org/axis/java/user-guide.html#XMLJavaDataMappingInAxis
> sub-tpoic on bean serialization
>
> http://ws.apache.org/axis/java/user-guide.html#EncodingYourBeansTheBeanSerializer
> sub-topic on custom serialization
> http://ws.apache.org/axis/java/user-guide.html#WhenBeansAreNotEnoughCustomSerialization
>
>
>
>
> On 12/22/06, Kavithaa Rajavenkateshwaran <kavithaa@ci.uchicago.edu> wrote:
> >
> > I'm passing a  user-defined object(follows bean convention with
> > getters and setters) as  result  of a web service. I added the
> > following Beanmapping to deploy.wsdd .
> >
> > <beanMapping qname="operNS:getMetadata"
> > xmlns:operNS="urn:MyService"  languageSpecificType="java:ExpMetadata"/>
> >
> >   I'm getting" Premature end of file." as axis fault, If i try to
> > invoke the service .Is there anything i'm missing?
> >
> > I  can see lots of queries  posted for the same issue. but no solution.
> >
> > I'm using axis 1.4 with tomcat 5
> >
> > AxisFault
> >       [java]  faultCode: { http://schemas.xmlsoap.org/soap/envelope/}
> > Server.userException
> >       [java]  faultSubcode:
> >       [java]  faultString: org.xml.sax.SAXParseException: Premature
> > end of file.
> >       [java]  faultActor:
> >       [java]  faultNode:
> >       [java]  faultDetail:
> >       [java]     {http://xml.apache.org/axis/}
> > stackTrace:org.xml.sax.SAXParseException: Premature end of file.
> >       [java]     at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPar
> > seException(ErrorHandlerWrapper.java:236)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError
> > (ErrorHandlerWrapper.java:215)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > (XMLErrorReporter.java:386)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > (XMLErrorReporter.java:316)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
> > ersion(XMLVersionDetector.java:230)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (XML11Configuration.java:798)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (XML11Configuration.java:764)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> > (XMLParser.java:148)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> > (AbstractSAXParser.java:1242)
> >       [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
> > SidgridWebService.generatedClasses.SidgridWebServiceSoapBindingStub.getM
> > etadata(SidgridWebServiceSoapBindingStub.java:514)
> >       [java]     at
> > sidgrid.webServiceClient.SidgridWebServiceClient.getMetadata
> > (SidgridWebServiceClient.java:215)
> >       [java]     at
> > sidgrid.webServiceClient.SidgridWebServiceClient.main
> > (SidgridWebServiceClient.java:268)
> >
> >       [java]     {http://xml.apache.org/axis/}
> > hostname:jingles.mcs.anl.gov
> >
> >       [java] org.xml.sax.SAXParseException: Premature end of file.
> >       [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
> > SidgridWebService.generatedClasses.SidgridWebServiceSoapBindingStub.getM
> > etadata(SidgridWebServiceSoapBindingStub.java:514)
> >       [java]     at
> > sidgrid.webServiceClient.SidgridWebServiceClient.getMetadata
> > (SidgridWebServiceClient.java:215)
> >       [java]     at
> > sidgrid.webServiceClient.SidgridWebServiceClient.main
> > (SidgridWebServiceClient.java:268)
> >       [java] Caused by: org.xml.sax.SAXParseException: Premature end
> > of file.
> >       [java]     at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPar
> > seException(ErrorHandlerWrapper.java:236)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError
> > (ErrorHandlerWrapper.java:215)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > (XMLErrorReporter.java:386)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > (XMLErrorReporter.java:316)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
> > ersion(XMLVersionDetector.java:230)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (XML11Configuration.java:798)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (XML11Configuration.java:764)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> > (XMLParser.java:148)
> >       [java]     at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> > (AbstractSAXParser.java:1242)
> >       [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]     ... 11 more
> >
> > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> warm regards,
> Rahul Devgan
> Cell: +61-412163412
> --- there is no pleasure in life like music ---




-- 
warm regards,
Rahul Devgan
Cell: +61-412163412
--- there is no pleasure in life like music ---

Mime
View raw message