I have solved this problem. This code works fine:
ServiceFactory factory = ServiceFactory.newInstance();
URL wsdlLocation = new
URL("http://adam:8080/jsr181ejb/EJB3Bean?wsdl");
QName serviceName = new
QName("http://org.mazurek.ws/jsr181ejb", "MyService");
ServiceImpl service =
(ServiceImpl)factory.createService(wsdlLocation, serviceName);
Call call = service.createCall();
QName operationName = new
QName("http://org.mazurek.ws/jsr181ejb", "echo");
call.setOperationName(operationName);
String hello = "Hello";
String world = "world!";
Object retObj = call.invoke(new Object[]{hello});
System.out.println(retObj.toString());
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946990#3946990
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946990
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user