Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating and Web Service Client

843833Mar 13 2007 — edited Mar 23 2007
I am hoping others here have ran into this problem and can shed some light on what is causing some of my frustration on getting an axis client to contact a web Service running on JBoss 4.0.5.

I am using an ANT script to build the AXIS client. I am using axis 1.4.

<axis-wsdl2java output="${src.dir}"	                 
          deployscope="Session"	                 
          debug="true"	                 
          helpergen="true"
         serverside="false"                     
         skeletondeploy="false"                     
         noimports="true"                    
         verbose="false"                     
         typemappingversion="1.2"                     
         testcase="false"	                 
         url="${local.wsdl}" >	    
         <mapping namespace="${webservice.namespace}"     
                             package="${webservice.package}" />	 
</axis-wsdl2java>
When I call the web service, I get a parsing error:

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  rg.xml.sax.SAXParseException: Premature end of file.
	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	
                    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)	
                    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	
                   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	
                   at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)	
                   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
                   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
                    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	
                    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	
                   at javax.xml.parsers.SAXParser.parse(Unknown Source)	
                   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:435)	
                   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:2784)	
                  at org.apache.axis.client.Call.invoke(Call.java:2767)	
                  at org.apache.axis.client.Call.invoke(Call.java:2443)
                  at org.apache.axis.client.Call.invoke(Call.java:2366)	
                  at org.apache.axis.client.Call.invoke(Call.java:1812)	
                 at com.company.workflow.WebServiceBean_SEIBindingStub.getTaskDetails(WebServiceBean_SEIBindingStub.java:1284)	
                 at com.company.dept.product.webservice.client.WebServiceTestClient.main(WebServiceTestClient.java:285) 	
{http://xml.apache.org/axis/}hostname:<machine name on network> 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:435)	
            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:2784)	
            at org.apache.axis.client.Call.invoke(Call.java:2767)	
            at org.apache.axis.client.Call.invoke(Call.java:2443)	
            at org.apache.axis.client.Call.invoke(Call.java:2366)	
            at org.apache.axis.client.Call.invoke(Call.java:1812)	
            at com.company.process.WebServiceBean_SEIBindingStub.getTaskDetails(WebServiceBean_SEIBindingStub.java:1284)	
            at com.company.dept.product.webservice.client.WebServiceTestClient.main(WebServiceTestClient.java:285)
            Caused by: org.xml.sax.SAXParseException: Premature end of file.	
            at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	
            at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)	
            at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	
             at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	
             at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)	
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	
             at javax.xml.parsers.SAXParser.parse(Unknown Source)	
             at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)	
             at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)	.
              .. 10 more 
Any help would be greatly appreciated.........

Russ
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2007
Added on Mar 13 2007
2 comments
564 views