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

abdujaparov do-not-reply at jboss.com
Thu Oct 18 17:14:47 EDT 2007


Hi zeeshan.javeed, this is my code:


  | package sum;
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | 
  | 
  | @WebService
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class Sum {
  | 	
  | 	@WebMethod
  | 	public int sumAB(int a, int b){
  | 		return a+b;
  | 	}
  | 
  | }
  | 
  | 

web.xml:

  | <?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>Sum</servlet-name>
  |     <servlet-class>sum.Sum</servlet-class>
  |   </servlet>
  |   
  |   <servlet-mapping>
  |     <servlet-name>Sum</servlet-name>
  |     <url-pattern>/*</url-pattern>
  |   </servlet-mapping>
  |     
  | </web-app>
  | 

file sum.war:

directory META-INF.

directory WEB-INF:
web.xml
directory classes:
directory sum:
Sum.class

If I go to http://localhost:8080/jbossws/services jboss give me these statistics:
anonymous wrote : 
  | Registered Service Endpoints
  | Endpoint Name 	jboss.ws:context=sum,endpoint=Sum
  | Endpoint Address 	http://127.0.0.1:8080/sum?wsdl
  | StartTime 	StopTime 	
  | Thu Oct 18 23:12:09 CEST 2007 		
  | RequestCount 	ResponseCount 	FaultCount
  | 0 	0 	0
  | MinProcessingTime 	MaxProcessingTime 	AvgProcessingTime
  | 0 	0 	0
  | 

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

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



More information about the jboss-user mailing list