axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meghana Joglekar" <>
Subject ClassCastException on Factory.newInstance()
Date Tue, 14 Nov 2006 23:01:54 GMT

I generated code for the attached wsdl using wsdl2java and XmlBeans binding.
Here is my code that is trying to invoke the webservice -

File f = *new* File(

AeDeployBPRSkeletonServiceStub serviceStub =

DeployBpr deployBpr = DeployBpr.Factory.*newInstance*();

deployBpr.setABprFilename( "GetPropertiesFlow.bpr");

Base64 base64File = Base64.Factory.*parse*( f);

deployBpr.setABase64File( base64File.getStringValue() );

DeployBprDocument deployBprDocument = DeployBprDocument.Factory.*parse*( f);
serviceStub.deployBpr( deployBprDocument );

I always get ClassCastException on Factory.newInstance(). Why is that?
Please help me here. I have been searching for answer on both XmlBeans and
Axis lists with little luck.

Thank you,


View raw message