cancel
Showing results for 
Search instead for 
Did you mean: 

Exception on execution of the Web Service through Webdynpro Java Applicatio

Former Member
0 Kudos

Hi All,

We are getting an exception when we are making web service call from our webdynpro java application.

Please find below the detailed error chain which appears on the application execution:

The initial exception that caused the request to fail, was:

java.lang.ClassCastException

at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.getWSInterface(WSQueryImpl.java:457)

at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:164)

at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)

at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:128)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:429)

... 40 more

We are not sure about the rootcause behind this error chain.

Kindly help.

Note: We are tring to consume the Web service using Adaptive Web Serice Model with Local File System ande Url option. We have maintained web service logica ldestinations in the J2ee engine which we are using at the time of the model creation.

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

Hi,

Just a thought, have you changed or added a method to your web service after you created the web service model in your WD project?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Re-import the model and do the rebuild and build it on DC level

after that create the archive and deploy to portal .

now run your application.

Regards,

Govindu

Former Member
0 Kudos

Hi All,

Thanks for the suggestions.

I just created another model with the same web service and it worked.

Regards,

Anurag