dcsimg
How to read parameters in Web Service class
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lorana_Berd
Posted On:   Friday, April 7, 2006 03:28 PM

Hello Guys, I want to parametrize my Web Service, similar to and in web.xml I tried with for AxisServlet in web.xmland when I read it in WebService class HttpServlet httpServlet = (HttpServlet)MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLET ); ServletContext servletContext = httpServlet.getServletContext(); String servletURL = servletContext.getInitParameter( "someparameterName" ); it returns me null. Where I should put my parameter and how to read it. Does property class work in this case? Please help. Lorana    More>>

Hello Guys,

I want to parametrize my Web Service, similar to and in web.xml
I tried with for AxisServlet in web.xmland when I read it in WebService class


HttpServlet httpServlet =
(HttpServlet)MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLET );

ServletContext servletContext = httpServlet.getServletContext();
String servletURL = servletContext.getInitParameter( "someparameterName" );




it returns me null.


Where I should put my parameter and how to read it.
Does property class work in this case?
Please help.

Lorana

   <<Less
About | Sitemap | Contact