It could be that you are setting the file in datasource from client . and might be trying to take it directly from datahandler.

Regards,
krthekeyan.s


karusala kiranbabu wrote:

Hi,
I have created one webservice and deployed that
webservice jar file in AXIS/WEB-INF/lib/ directory.

I have accessed the wdsl of the webservice by giving
the url for the webservice.here there is no problem.

After that, we have written the client and passing the
datahandlers to the webservice .
1.It is not invoking the method of the webservice and
it is giving the exception as mentioned below.

HOW CAN WE RESOLVE THIS ISSUE? plz help me in this
regard, it's very urgent for me.




THE EXCEPTION COMING IS:


C:\Documents and
Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client>javac
-d . XSLTClient.java

C:\Documents and
Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client>java
xsltransform/XSLTClient
sample.xml sample.xsl
the inFileDataHandler
[EMAIL PROTECTED]
the xslFileDataHandler
[EMAIL PROTECTED]
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException
faultActor:
faultNode:
faultDetail:
       {http://xml.apache.org/axis/}hostname:SGSC1

java.lang.ClassCastException
       at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
       at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
       at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
       at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
       at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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: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
xsltransform.XSLTClient.main(XSLTClient.java:72)

C:\Documents and
Settings\Administrator\Desktop\Downloads\webservice\newwebservice_client\client>




                
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com


Reply via email to