[jboss-user] [JBossWS] - Re: Example needed of servlet connecting to web service
paoletto
do-not-reply at jboss.com
Wed Feb 7 05:51:04 EST 2007
Here's my code:
URL wsdl = new URL("http://localhost:8080/ServizioEJB/Hello?wsdl");
QName qname = new QName("http://servizioDipartimentale.org/","Hello");
try {
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(wsdl, qname);
Hello hello = (Hello) service.getPort(Hello.class);
output= hello.sayHello();
} catch (Exception e) {
e.printStackTrace();
out.println("error");
}
and i get "error".. Probably some mistake somewhere, but no clue if for example i'm setting qname in a wrong way..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012356#4012356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012356
More information about the jboss-user
mailing list