简体   繁体   中英

calling wsdl based webservice from within alfresco

i followed this article: http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example/

so i have:

which serves as the endpoint.

on the other side i have the client which i generated with wsimport:

this runs fine in eclispe without alfresco being involved. however, i want to call the webservice from alfresco (from java backed web script for example)

i tried to copy the client side stuff to my amp file and calling it from a webscript but it fails!

Caused by: java.lang.IncompatibleClassChangeError: Class com.ibm.wsdl.DefinitionImpl does not implement the requested interface javax.wsdl.extensions.AttributeExtensible

1 - is there a more elegant way to configure the access to the wsdl by defining a spring bean (spring-ws) or such

2 - why is it not working? full trace: http://pastebin.com/ak1qzygA

using alfresco community 5.0.a

thanks

You will see IncompatibleClassChangeError usually when the dependancy/library jar has changed. Hence the method/code dependant on the library has to be recompiled against the changes.

Guessing the problem here has much to do with some dependancy jar being mispicked or an older version of jar present or one jar prioritized over the other. A look into the jars containing 'com.ibm.wsdl.DefinitionImpl' class in your classpath should be of some help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM