Hi
i have run the EJB3 webservice tutorial and it works fine. but i need to 
consume the webserivece from an bean. As I understand this should be done with 
@webserviceref which is not implemented yet so i tried to use the tutorial 
client code 
URL url = new URL("http://localhost:8080/tutorial/CalculatorBean?wsdl";);
  |       QName qname = new 
QName("http://bean.webservice.tutorial.jboss.org/jaws";,
  |               "CalculatorService");
  | 
  |       ServiceFactory factory = ServiceFactory.newInstance();
  |       Service service = factory.createService(url, qname);
  | 
  |       Calculator calculator = (Calculator) 
service.getPort(Calculator.class);
  | 
  |       System.out.println("1 + 1 = " + calculator.add(1, 1));
  |       System.out.println("1 - 1 = " + calculator.subtract(1, 1));

this however resulted in a Nullpointer @ JSR109ClientMetaDataBuilder.java:72

My question is: is this a correct way to do this ? 
I thought that the problem was that the correct jars was not included but i 
have tried to add from the jboss/client but i continue to get this error...

Thanks
/Anders


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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to