[jboss-user] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ?

pramod_bs do-not-reply at jboss.com
Tue Apr 8 22:09:54 EDT 2008


If you are planning to use Jax-WS 


@WebService(                                                            
		name=" <give values here> ",
		targetNamespace = "<give values here> ",
		serviceName = <give values here>  )
		@SOAPBinding(parameterStyle =  SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT)


public class MyWebServiceClass 
{ 

@WebMethod  (<give values here> )

public double myWebServiceMethd( String job, double x ) 
{ 
if( "quare".equalsIgnoreCase( job ) ) 
return x * x; 
if( "root".equalsIgnoreCase( job ) ) 
return Math.sqrt( x ); 
return 0.; 
} 
} 



In the web.xml have a serlvet entry.


OR

You can use the session bean.

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

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



More information about the jboss-user mailing list