[jboss-user] [JBossWS] - Re: Error in generating WSDL
r12345_2003
do-not-reply at jboss.com
Tue Apr 1 03:45:31 EDT 2008
Thanks for the reply. The following is the code for the POJO:
|
| package test.services;
|
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| @WebService
| public class HelloService
| {
| @WebMethod
| public String sayHello() {
|
| return "Hello";
| }
| }
|
The following is the web.xml change:
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
| http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
| <servlet>
| <servlet-name>HelloService</servlet-name>
| <servlet-class>test.services.HelloService</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>HelloService</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
| </web-app>
|
When i deployed the war file, i noticed the following exception thrown at the Jboss server console:
| java.lang.IllegalStateException: Cannot find endpoint meta data for: HelloService
|
Any idea what could be the issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140345#4140345
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140345
More information about the jboss-user
mailing list