Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't use contextPath inside My webservice how to use it.

 
kannagiri rosei
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


i just want use context path in axis web app. in my service method. i am reading constant value from properties file.

String path = System.getProperty(user.dir);
i used above java api.but not reading properly.


my property file is path is

axis-web app

/web-inf
classes
/myservice-read property file path.
/config


am deploying WAS5.1

tool/WSADIE5.1

//user.dir
takes default WASDIE path in WAS.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check out our famous Ulf home grown web services FAQ
 
kannagiri rosei
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI

if i use getContextPath() -- it will return remote Service provider path only is it?
please let me clear balaji sir?

HttpServletRequest req = (HttpServletRequest) context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.

Kind request: Please avoid using sir, just balaji is fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic