Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 960563

Pages: 1
Anonymous
Unregistered




webservice using Java
      #31599 - 05/03/06 09:34 AM

Actually, it is extremely easy to create a webservice in Java. I use AXIS and drop-in deployment.
See the series of tutorials on AXIS and webservice in
my homepage at:
'http://in.geocities.com/rsramsam
and also in
www.roseindia.net
Comments welcome!
RSR
(rs.ramaswamy@gmail.com)


Post Extras: Print Post   Remind Me!   Notify Moderator  
SridharN
stranger


Reged: 07/04/06
Posts: 1
Re: webservice using Java [Re: Anonymous]
      #33803 - 07/04/06 06:17 AM

Hello Ramaswamy,

This is Sridhar and working on Axis and Web Services.
I have created a WebSerivice which interacts with the Database using Hibernate with Springs.
I am facing a problem when i am accessing the web service.
I have checked the web service deployed with in the axis engine and also able to retrieve the wsdl document.
I am receiving the following exception when i am accesing the Web Service.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
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 localhost.axis.services.StandaloneWs.StandaloneWsSoapBindingStub.getEmpList(StandaloneWsSoapBindingStub.java:180)
at localhost.axis.services.StandaloneWs.ClientWs.main(ClientWs.java:17)

{http://xml.apache.org/axis/}hostname:SridharN

org.xml.sax.SAXParseException: Premature end of file.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
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 localhost.axis.services.StandaloneWs.StandaloneWsSoapBindingStub.getEmpList(StandaloneWsSoapBindingStub.java:180)
at localhost.axis.services.StandaloneWs.ClientWs.main(ClientWs.java:17)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 10 more


Do u have any idea on this.
Plz let me know where i am going wrong.

Thanks and Regards

Sirhdar.N


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 7582

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5