Hi,
I followed the guide on http://www.dcl.hpi.uni-potsdam.de/research/asg/ws4ejb/
and deployed the webservice on a jboss-4.0.1 installation. The webservice seems to deploy correctly and its possible to browse the wsdl on
http://localhost:8080/HelloService/HelloEndpointPort?wsdl
The next step was to write a java client accessing the webservice via the Dynamic Invocation Interface, DII. When running the client the following exception is thrown.
java.lang.NullPointerException at org.apache.axis.client.Call.getTypeMapping(Call.java:2402) at org.apache.axis.client.Call.setReturnType(Call.java:1230) at org.apache.axis.client.Call.setOperation(Call.java:1716) at org.apache.axis.client.Service.createCall(Service.java:650) at WSClient.main(WSClient.java:20) ...
import org.apache.axis.client.ServiceFactory; import org.apache.axis.client.Service; import org.apache.axis.client.Call; import javax.xml.namespace.QName; import java.net.URL; public class WSClient { public static void main(String[] args) { try { final String WSDL_LOCATION = "http://localhost:8080/HelloService/HelloEndpointPort?wsdl"; String NAMESPACE = "http://Hello"; final QName SERVICE_NAME = new QName(NAMESPACE, "HelloEndpointService"); ServiceFactory serviceFactory = (ServiceFactory) ServiceFactory.newInstance(); Service service = (Service) serviceFactory.createService(new URL(WSDL_LOCATION), SERVICE_NAME); Call call = (Call) service.createCall(new QName(NAMESPACE, "HelloEndpointPort"), "sayHello"); String retstr = (String) call.invoke(new Object[]{"Hello"}); System.out.println(retstr); } catch(Exception e) { e.printStackTrace(); } } }