Here's the code I wrote to invoke the web service:
CurrencyForm form = null;
CurrencyWSService svc = null;
form = populateCurrencyForm(); // Souce, target currencies
svc = new CurrencyWSService();
CurrencyWS currencyWS = svc.getCurrencyWSPort();
form = currencyWS.convertCurrency(form);
The exception is thrown at the getCurrencyWSPort() call.
Here's my Service Endpoint Interface (SEI):
@WebService(name = "CurrencyWS", targetNamespace = "http://currencyconverter.ws/")
public interface CurrencyWS
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "convertCurrency", targetNamespace = "http://currencyconverter.ws/", className = "ws.currencyconverter.ConvertCurrency")
@ResponseWrapper(localName = "convertCurrencyResponse", targetNamespace = "http://currencyconverter.ws/", className = "ws.currencyconverter.ConvertCurrencyResponse")
public CurrencyForm convertCurrency(@WebParam(name = "arg0", targetNamespace = "") CurrencyForm arg0);
I seem to have the necessary @WebService annotation, yet the JBoss container throws the exception (see my previous posting).
I've tried everything short of looking into JBoss's source code to see why it's throwing the exception:
Here's a portion of the call stack in the exception:
javax.xml.ws.WebServiceException: SEI is missing @WebService annotation: interface ws.currencyconverter.CurrencyWS
Can someone help? If you think you can help but need more info, please reply and I'll post any additional info needed.
I'm still having the problem. Am I missing something obvious? Tried everything I know to do... can someone please help?
I'd check the deployment; are client and server side sharing classes? JBossWS stack throws that exception when it can't find @WebService annotation on the specified SEI, thus I suspect the class it's checking for annotation is not what you think it should be (classloading issue?)
Thanks Alessio. I'll check your suggestion out and post a reply when I resolve the problem.
I have a similiar problem. Do you have resolved it?