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();
System.out.println(form);
form = currencyWS.convertCurrency(form);
System.out.println(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
{
@WebMethod
@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).
Any thoughts?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056580#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...