-
1. Re: how to invoke a client to jsr181-pojo web service?
burrsutter May 26, 2006 4:03 PM (in response to adamzrk)What exception are you getting?
Burr -
2. Re: how to invoke a client to jsr181-pojo web service?
adamzrk May 26, 2006 4:15 PM (in response to adamzrk)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()); -
3. Re: how to invoke a client to jsr181-pojo web service?
thomas.diesler May 30, 2006 4:58 PM (in response to adamzrk)This only works for trivial cases. Your DII client does not have a URL to jaxrpc-mapping.xml
-
4. Re: how to invoke a client to jsr181-pojo web service?
adamzrk May 31, 2006 8:50 AM (in response to adamzrk)Can You give me an example of ulr to jaxrpc-mapping? And where jaxrpc-mapping.xml file should be located? So the file xxx-client.jar is needed - if yes how can I communicatw with him? I need this anwser. Thanks in advance.
Adam