[jboss-user] [JBossWS] - The problem with @WebServiceRef
stewchicken
do-not-reply at jboss.com
Tue Nov 28 05:32:42 EST 2006
Dear All
I publish my webserivce wsdl on my localhost successfully
Then i wrote a testclient(following JAVAEE tutorial)
but i could not get HelloServiceBeanService instance via @WebServiceRef
I always get nullpoint exception when i try to use service.
Anyone can give me some hints on it?
Thanks and Rgds
import javax.xml.ws.WebServiceRef;
import webservice.test.*;
public class HelloClient {
@WebServiceRef(wsdlLocation="http://localhost:8080/helloservice/HelloServiceBean?wsdl")
HelloServiceBeanService service;
public static void main(String[] args) {
try {
HelloClient client = new HelloClient();
client.doTest(args);
} catch (Exception e) {
e.printStackTrace();
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989216#3989216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989216
More information about the jboss-user
mailing list