[jboss-user] [JBossWS] - Re: Jbossws Tutorial.

zeeshan.javeed do-not-reply at jboss.com
Fri Oct 19 09:23:20 EDT 2007


hi, 
Anyone have any idea how we can deploy a bit complex structure. 
 

I have one Interface class, HelloWorld and the other file is HelloWorldImpl. 

HelloWord. java

  | package de.iplabs;
  | public interface HelloWorld
  | {
  |   
  | 	public void setName(String name);
  | 	public String getName();
  | 	
  | 	public void setAge(String age);
  | 	public String getAge() ;
  | 	
  | }
  | 
and
HelloWorldImpl.java

  | package de.iplabs;
  | 
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | 
  | @WebService
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class HelloWorldImpl implements HelloWorld
  | {
  | 		public String name, age;
  | 		
  | 		HelloWorldImpl()
  | 		{
  | 				this.name = "default name";
  | 				this.age = "default age";
  | 		}
  | 		
  | 		@WebMethod
  | 		public void setName(String name) 
  | 		{
  | 				this.name = name;
  | 		}
  | 		
  | 		@WebMethod
  | 		public String getName() 
  | 		{
  | 			 return name;
  | 		}
  | 		
  | 		@WebMethod
  | 		public void setAge(String age)
  | 		{
  | 				this.age = age;
  | 		}
  | 		
  | 		@WebMethod
  | 		public String getAge()
  | 		{
  | 				return this.age;
  | 		}
  | }
  | 

where
web.xml file is 

  | <?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>HelloWorldService</servlet-name>
  |     <servlet-class>de.iplabs.HelloWorldImpl</servlet-class>
  |   </servlet>
  |   
  |   <servlet-mapping>
  |     <servlet-name>HelloWorldService</servlet-name>
  |     <url-pattern>/*</url-pattern>
  |   </servlet-mapping>
  |     
  | </web-app>
  | 	
  | 
  | 

Now its again not showing the webserive at  http://localhost/jbossws/services 
and also I do not see any exception at server console. 

Any Idea, whats going wrong ?

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

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



More information about the jboss-user mailing list