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
Sorry for this newbie question:
>From TomCat I know an easy way to deploy simple web services in *.jws files
like:
public class MyWebServiceClass
{
public double myWebServiceMethd( String job, double x )
{
if( "quare".equalsIgnoreCase( job ) )
return x * x;
if( "root".equalsIgnoreCase( job ) )
return Math.sqrt( x );
return 0.;
}
}
I can put them into:
<tomcat-root>\webapps\axis
and they are available.
Into which directory can I put such *.jws files in JBoss?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142522#4142522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142522