Hi Andy
Thanks for help

It's so strange - in Eclipse Web Service Explorer my service with 
class-argument  works fine! 
But my problem is to write a standalone client? My code:

 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";, "numOfBooksByAuthor");

           
              
                 Param author = new Param();
                 author.setFirstName("Aaa");
                 author.setLastName("bbbb");
                 Object retObj = call.invoke(new Object[]{author});
                 System.out.println(retObj.toString());

is throws exception:
Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type 
mapping for: {http://org.mazurek.ws/jsr181ejb}Param
I think that something is wrong in my client code - may someone will help me.

Adam



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946995#3946995

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946995


-------------------------------------------------------
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

Reply via email to