RE: [axis2 ]soap session scope does not work

2007-04-26 Thread Sanjesh Pathak
Hi Nencho,
 
I am using Axis2 version 1.1.1 and it is working fine in my local
environment here for session scope. What version of Axis2 are you using?
 
I am hosting a sample service that uses session scope accessible at this
URL: http://82.165.253.192:8081/axis2/services/SessionService
 
This service takes an OMElement as the parameter and echoes it back. Can you
test your client against this service?
 
Sanjesh
 
  _  

From: Nencho Lupanov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 26, 2007 9:53 AM
To: axis-user@ws.apache.org
Subject: Re: [axis2 ]soap session scope does not work
 
Hi Deepal,
 
what about this jira issue:
 
https://issues.apache.org/jira/browse/AXIS2-2561
 
Does it means that we need to wait the issue to be closed in order to use
the soap session scope?
 
Thanks,
Nencho

 
2007/4/26, Deepal Jayasinghe <[EMAIL PROTECTED]>: 
Hi Nencho ,

Axis2 soap session to be work , you need to engage addressing in both
the side.

It is working , there is a test case in the build so we are testing that
daily.
org.apache.axis2.engine.ServiceGroupContextTest

Thanks
Deepal

> Hi All,
>
> I read this axis2 session management article: 
> http://www.developer.com/java/web/article.php/3620661
>
> Basically, it says that i can define my services being of a soap
> session scope, 
> then i have to put this option on my client:
> *options.setManageSession(true);*
>
> Therefore it is expected for the service to include
> 
> element as an session identifier in the soap envelope. 
>
> I tested this and it does not work - axis2 does not put that element,
> in order
> to be used as session identifier.Am i missing something or this is a bug?
>
> Thanks,
> Nencho 
>
>


--
Thanks,
Deepal

"The highest tower is built one brick at a time"



- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 
 


RE: [axis2 ]soap session scope does not work

2007-04-25 Thread Sanjesh Pathak
Hi Nencho,
 
Did you engage addressing module on the client side? This is required for
soap session based communication.
 
Sanjesh
 
  _  

From: Nencho Lupanov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 11:14 AM
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: [axis2 ]soap session scope does not work
 
Hi All,
 
I read this axis2 session management article:
http://www.developer.com/java/web/article.php/3620661
 
Basically, it says that i can define my services being of a soap session
scope,
then i have to put this option on my client:
options.setManageSession(true);
 
Therefore it is expected for the service to include

element as an session identifier in the soap envelope.
 
I tested this and it does not work - axis2 does not put that element, in
order
to be used as session identifier.Am i missing something or this is a bug?
 
Thanks,
Nencho
 
 


RE: Market Share of the Axis in web service industry

2007-02-10 Thread Sanjesh Pathak

Anne, Thanks for the insight.

Sanjesh

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 8:56 PM
To: axis-user@ws.apache.org
Subject: Re: Market Share of the Axis in web service industry

That depends on what you're willing to include in the "web services
market" -- which now is better known as the "SOA market". A lot of
folks now lump application platforms, middleware, BPM, dev tools,
composite app tools, portals, Web 2.0 and governance into the "SOA
market". In that case, it's already bigger than $8.2 B.

On 2/9/07, Sanjesh Pathak <[EMAIL PROTECTED]> wrote:
>
> Forgot to put the link to the article in my previous post:
>
> http://www.findarticles.com/p/articles/mi_pwwi/is_200409/ai_n8558540
>
> Sanjesh
>
> -Original Message-
> From: Sanjesh Pathak [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 09, 2007 1:21 PM
> To: 'axis-user@ws.apache.org'
> Subject: RE: Market Share of the Axis in web service industry
>
> Hi Anne,
>
> According to this article published in Sep. 2004, Radicati Group projects
> the Web Services market size to be nearly $8.2 by 2008. Do you think this
> projection is valid even now?
>
> Sanjesh
>
> -Original Message-
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 09, 2007 8:25 AM
> To: axis-user@ws.apache.org
> Subject: Re: Market Share of the Axis in web service industry
>
> It's a multi-billion dollar market.
>
> On 2/8/07, Genious Soul <[EMAIL PROTECTED]> wrote:
> >
> > Anne,
> >  Thanks for your response.Is it possible to  get a general idea
> > about the size of the web service market as a whole?Thanks for any help.
> >
> > Regards
> > Kash
> >
> >
> > - Original Message 
> > From: Anne Thomas Manes <[EMAIL PROTECTED]>
> > To: axis-user@ws.apache.org
> > Sent: Tuesday, February 6, 2007 8:17:33 PM
> > Subject: Re: Market Share of the Axis in web service industry
> >
> >
> > I seriously doubt that you will find anyone that has don't this type
> > of market analysis. It's almost impossible to determine the total
> > market share of an open source project (at least with any kind of
> > statistical accuracy). Axis and Axis2 certainly hold a major share of
> > the open source SOAP implementation market. The biggest competitors
> > are XFire/CeltixFire and Sun's JWSDP/Glassfish projects. I expect that
> > the new JBoss SOAP engine (supplied with JBoss AS and JBoss ESB) will
> > become a major contenter also.
> >
> > Of course all these open source projects compete with the native SOAP
> > engines supplied with application platforms (WebSphere, WebLogic,
> > Oracle 10g, NetWeaver, etc.), as well as with the native SOAP engines
> > supplied with ESBs (WebSphere ESB, AquaLogic, Oracle ESB, Sonic ESB,
> > IONA Artix, Cape Clear ESB, ServiceMix, Mule, etc.)
> >
> > Anne
> >
> > On 2/5/07, Genious Soul <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi All,
> > >   I would be extremely sorry if it is not the right forum to
ask
> > > this question.I would appreciate if some one could point me to the
link
> > > where I get the total market share of the Axis in web service
> industry.It
> > > would be extremely helpfull if someone could tell me what other
> > stakeholders
> > > are in this web service industry? and how much share they have in this
> > > industry.Thanks for any help as it might help us in making important
> > > decision.
> > >
> > >
> > > Regards
> > > kash
> > >
> > >  
> > > Access over 1 million songs - Yahoo! Music Unlimited.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >  
> > Don't pick lemons.
> >  See all the new 2007 cars at Yahoo! Autos.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Market Share of the Axis in web service industry

2007-02-09 Thread Sanjesh Pathak

Forgot to put the link to the article in my previous post:

http://www.findarticles.com/p/articles/mi_pwwi/is_200409/ai_n8558540

Sanjesh

-Original Message-
From: Sanjesh Pathak [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 1:21 PM
To: 'axis-user@ws.apache.org'
Subject: RE: Market Share of the Axis in web service industry

Hi Anne,

According to this article published in Sep. 2004, Radicati Group projects
the Web Services market size to be nearly $8.2 by 2008. Do you think this
projection is valid even now?

Sanjesh

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 8:25 AM
To: axis-user@ws.apache.org
Subject: Re: Market Share of the Axis in web service industry

It's a multi-billion dollar market.

On 2/8/07, Genious Soul <[EMAIL PROTECTED]> wrote:
>
> Anne,
>  Thanks for your response.Is it possible to  get a general idea
> about the size of the web service market as a whole?Thanks for any help.
>
> Regards
> Kash
>
>
> - Original Message 
> From: Anne Thomas Manes <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Tuesday, February 6, 2007 8:17:33 PM
> Subject: Re: Market Share of the Axis in web service industry
>
>
> I seriously doubt that you will find anyone that has don't this type
> of market analysis. It's almost impossible to determine the total
> market share of an open source project (at least with any kind of
> statistical accuracy). Axis and Axis2 certainly hold a major share of
> the open source SOAP implementation market. The biggest competitors
> are XFire/CeltixFire and Sun's JWSDP/Glassfish projects. I expect that
> the new JBoss SOAP engine (supplied with JBoss AS and JBoss ESB) will
> become a major contenter also.
>
> Of course all these open source projects compete with the native SOAP
> engines supplied with application platforms (WebSphere, WebLogic,
> Oracle 10g, NetWeaver, etc.), as well as with the native SOAP engines
> supplied with ESBs (WebSphere ESB, AquaLogic, Oracle ESB, Sonic ESB,
> IONA Artix, Cape Clear ESB, ServiceMix, Mule, etc.)
>
> Anne
>
> On 2/5/07, Genious Soul <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >   I would be extremely sorry if it is not the right forum to ask
> > this question.I would appreciate if some one could point me to the link
> > where I get the total market share of the Axis in web service
industry.It
> > would be extremely helpfull if someone could tell me what other
> stakeholders
> > are in this web service industry? and how much share they have in this
> > industry.Thanks for any help as it might help us in making important
> > decision.
> >
> >
> > Regards
> > kash
> >
> >  
> > Access over 1 million songs - Yahoo! Music Unlimited.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
> Don't pick lemons.
>  See all the new 2007 cars at Yahoo! Autos.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Market Share of the Axis in web service industry

2007-02-09 Thread Sanjesh Pathak
Hi Anne,

According to this article published in Sep. 2004, Radicati Group projects
the Web Services market size to be nearly $8.2 by 2008. Do you think this
projection is valid even now?

Sanjesh

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 8:25 AM
To: axis-user@ws.apache.org
Subject: Re: Market Share of the Axis in web service industry

It's a multi-billion dollar market.

On 2/8/07, Genious Soul <[EMAIL PROTECTED]> wrote:
>
> Anne,
>  Thanks for your response.Is it possible to  get a general idea
> about the size of the web service market as a whole?Thanks for any help.
>
> Regards
> Kash
>
>
> - Original Message 
> From: Anne Thomas Manes <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Tuesday, February 6, 2007 8:17:33 PM
> Subject: Re: Market Share of the Axis in web service industry
>
>
> I seriously doubt that you will find anyone that has don't this type
> of market analysis. It's almost impossible to determine the total
> market share of an open source project (at least with any kind of
> statistical accuracy). Axis and Axis2 certainly hold a major share of
> the open source SOAP implementation market. The biggest competitors
> are XFire/CeltixFire and Sun's JWSDP/Glassfish projects. I expect that
> the new JBoss SOAP engine (supplied with JBoss AS and JBoss ESB) will
> become a major contenter also.
>
> Of course all these open source projects compete with the native SOAP
> engines supplied with application platforms (WebSphere, WebLogic,
> Oracle 10g, NetWeaver, etc.), as well as with the native SOAP engines
> supplied with ESBs (WebSphere ESB, AquaLogic, Oracle ESB, Sonic ESB,
> IONA Artix, Cape Clear ESB, ServiceMix, Mule, etc.)
>
> Anne
>
> On 2/5/07, Genious Soul <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >   I would be extremely sorry if it is not the right forum to ask
> > this question.I would appreciate if some one could point me to the link
> > where I get the total market share of the Axis in web service
industry.It
> > would be extremely helpfull if someone could tell me what other
> stakeholders
> > are in this web service industry? and how much share they have in this
> > industry.Thanks for any help as it might help us in making important
> > decision.
> >
> >
> > Regards
> > kash
> >
> >  
> > Access over 1 million songs - Yahoo! Music Unlimited.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
> Don't pick lemons.
>  See all the new 2007 cars at Yahoo! Autos.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL, Mutual or Client Authentication

2006-10-19 Thread Sanjesh Pathak








Add this to web.xml
of Axis2:

 

 





   
Protected Context

 
/*url-pattern>

 


 



CONFIDENTIAL

 


  


 

Sanjesh

Real-Time Web Service Monitoring for Axis, Axis2 and Synapse

SoapKnox Inc

http://www.soapknox.com

Ph: 832 279 3745

 









From: VELUMMYLUM
Piragash [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006
11:13 AM
To: axis-user@ws.apache.org
Subject: RE: SSL, Mutual or Client
Authentication



 

I do need port 8080(non-SSL) open with
Tomcat for other webapps that I am running.  However I would like it to
only use port 8443(SSL) to communicate with Axis2.

 







From: Jesús
Daniel Blázquez Carazo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006
12:02 PM
To: axis-user@ws.apache.org
Subject: Re: SSL, Mutual or Client
Authentication



If you want mutual authentication between client and server
you need first a certificate for the client and the server. To get them you can
try use openssl.





 





Second you need configure SSL with Tomcat in the way you
have explained and delete or comment from the server.xml the 





 





In this way Tomcat will be listening in the secure port
8443.







- Original Message - 





From: VELUMMYLUM Piragash 





To: axis-user@ws.apache.org






Sent: Thursday, October
19, 2006 5:28 PM





Subject: SSL, Mutual or
Client Authentication





 





Hi All,





 





I am very new to Axis, I just installed it
yesterday.





 





I am trying to use Axis over an HTTPS
connection.  I want to be able to use SSL with mutual authentication
before Axis2 even receives the request.  I am running Axis2 on
Tomcat.  I was wondering if I should let Tomcat handle the SSL part or if
Axis2 has its own features?  Can Tomcat do mutual authentication,
i.e. authenticating the client?  If not can Axis2 do mutual authentication
for SSL?





 





Here are 2 routes I have considered and my
questions regarding both possibilities:





 





1. Configuring SSL
with Tomcat:





    - I have discovered
that I can define a connector with Tomcat under the  $CATALINA_HOME/conf/server.xml







    





    
  
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
  
enableLookups="false" disableUploadTimeout="true"
  
acceptCount="100" scheme="https" secure="true"
  
clientAuth="false" sslProtocol="TLS" />







    - How do I specify Tomcat
to use only use the secure connector and not the non-SSL connector when talking
to Axis2?





 





2. Configuring Axis2 to
handle SSL connections:





    - Can Axis2 do
this?  If so can it deal with mutual authentication?





 





Thank you in advance,





 





Piragash





 












RE: X-IMail-SPAM-Connection RE: WSDoAllReceiver: Request does not contain required Security header

2006-10-03 Thread Sanjesh Pathak

That handler is used on the client side to process message received with
security header.

-Original Message-
From: Clay Dowling [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 7:34 AM
To: axis-user@ws.apache.org
Subject: Re: X-IMail-SPAM-Connection RE: WSDoAllReceiver: Request does not
contain required Security header

Sanjesh Pathak wrote:
> Clay,
> 
> I didn't quite understand your question fully. But if you are trying to
add
> security header to the message you should use
> org.apache.ws.axis.security.WSDoAllSender and not
> org.apache.ws.axis.security.WSDoAllReceiver.
> 
> Sanjesh
> Real-Time Web Service Monitoring for Axis, Axis2
> SoapKnox Inc
> http://www.soapknox.com
> Ph: 832 279 3745

Thanks for the heads up.  I'd actually worked the problem out yesterday 
about mid-day.   Couldn't figure out why a client-side handler would be 
called WSDoAllReceiver

Clay Dowling


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WSDoAllReceiver: Request does not contain required Security header

2006-10-03 Thread Sanjesh Pathak
Clay,

I didn't quite understand your question fully. But if you are trying to add
security header to the message you should use
org.apache.ws.axis.security.WSDoAllSender and not
org.apache.ws.axis.security.WSDoAllReceiver.

Sanjesh
Real-Time Web Service Monitoring for Axis, Axis2
SoapKnox Inc
http://www.soapknox.com
Ph: 832 279 3745

-Original Message-
From: Clay Dowling [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 02, 2006 9:20 AM
To: axis-user@ws.apache.org
Subject: WSDoAllReceiver: Request does not contain required Security header

I'm getting this message back from my Axis 1.4 client that's using WSS4j 
1.5.0 to handle the WS-Security encoding.  My requestFlow section looks 
like this:








There's nothing I could find in the documentation about manually adding 
a security header to the message.  Am I missing something?

Does anybody actually use WSS4J on this list, or is there a list that I 
would be better served to use?  My last inquiry got no response at all, 
making me think that the tool isn't used in these parts.

Clay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat + Axis2 + MySQL

2006-09-20 Thread Sanjesh Pathak









 

Looks ok to me.

 

Sanjesh

Real-Time Web Service Monitoring for Axis, Axis2

SoapKnox Inc

http://www.soapknox.com

Ph: 832 279 3745

 

 









From: Prótár Gábor
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 20,
2006 7:41 AM
To: axis-user@ws.apache.org
Subject: Tomcat + Axis2 + MySQL



 

Hello!

 

I wrote a similar mail yesterday, but now I found something.

 

I am using Tomcat v5.5.17, Axis 2 v1.0, MySQL v5.0.24, MySQL
Connector/J v5.0.3

 

This is how I configured MySQL under Tomcat:

 

1.: put context information to server.xml: /conf/server.xml

 



   
debug="5" reloadable="true"
crossContext="true">

 

  

  
maxActive="100" maxIdle="30" maxWait="10"

  
username="wsuser" password="pass"
driverClassName="com.mysql.jdbc.Driver"

  
url="">



 

2.: create resource link to the web.xml file at /webapps/axis2/web-inf/web.xml

 

   

  DB
Connection

 
jdbc/TestDB

 
javax.sql.DataSource

 
Container

  

 

This resource works well in a test servlet, but I
don’t how to use it axis2 webservice.

 

My question is: how can I reference this resource from java
code?

 

Context initContext = new InitialContext();

Context envContext =
(Context)initContext.lookup("java:/comp/env");

DataSource ds =
(DataSource)envContext.lookup("jdbc/TestDB");

Connection conn = ds.getConnection();

 

Is it correct?

 

Thanks,

Gábor

 

 








RE: [Axis2] to to send multipart/related message

2006-08-23 Thread Sanjesh Pathak
Hi Amit,

You can set up the data source entries in the application server and access
it from the service or it's associated classes in aar file. At least this
set up works in Tomcat.

Sanjesh
http://www.soapknox.com
Real-Time Web Service Monitoring Tool for Axis(2)
Ph: 832 279 3745

-Original Message-
From: Kumar, Amit Z (Compliance Tech) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 10:24 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] to to send multipart/related message

Hi Guys, 

I have a webservice in form of .aar file but I wana register few data
source with in required some code with in. 
Can I create web-inf in .aar file and put a web.xml file with datasource
entries?

Or is there another way of doing it in web services?


Regards
Amit
30, Hudson St.
Goldman Sachs
PH: 212 902 0395
"Willing to learn what you are willing to share."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] HttpServeltRequest

2006-08-07 Thread Sanjesh Pathak








Hi Dims,

 

I am sorry, I was wrong. It is working now.
I can get the object using:

 

HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

 

I had Axis2 1.0 jar in the deployable directory
which Eclipse had not to cleared.

 

Sorry for the trouble.

 

Sanjesh

 









From: Sanjesh Pathak
[mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 8:39
AM
To: axis-user@ws.apache.org
Subject: [Axis2]
HttpServeltRequest



 

Hi Dims, I am still unable to get HttpServletRequest object. I am downloaded the nightly snapshot from here: 

http://people.apache.org/dist/axis2/nightly/axis2-std-SNAPSHOT-bin.zip

 I tried both ways and I am getting null value: HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext. getOperationContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); Thanks,Sanjesh -- ok deprecated Constants.HTTP_SERVLET_REQUEST and made sure thatHTTPConstants.MC_HTTP_SERVLETREQUEST works. -- dims On 7/30/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:> On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:> > Hi Deepal,> >> > yes it works now ! I'm using the nighlty build fom July 16th.> >> > To summarize -- the way that you indicated is the *only* way that> > works, that is to say :> >> > - you must use Constants.HTTP_SERVLET_REQUEST (and not> > HTTPConstants.MC_HTTP_SERVLETREQUEST) ;> > Why do we have both these constants? It seems like a bug to me!> > > - you must use msgCtx.getProperty() (and not> > msgCtx.getOperationContext().getProperty() )> >> > Otherwise the HttpServletRequest won't be found.> > The transport details for a given message context are only available> from that message context. So if you're processing the incoming message> then you can look up the transport info from that message context. If> you're processing the outgoing message (of an IN-OUT MEP) and want the> servlet context associated with the incoming message, then you need to> get the incoming MC from the operation context and then ask it for the> transport info.> > Sanjiva.> > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> >   -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

 








[Axis2] HttpServeltRequest

2006-08-07 Thread Sanjesh Pathak






Hi Dims, I am still unable to get HttpServletRequest object. I am downloaded the nightly snapshot from here: 

http://people.apache.org/dist/axis2/nightly/axis2-std-SNAPSHOT-bin.zip

 I tried both ways and I am getting null value: HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext. getOperationContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); Thanks,Sanjesh -- ok deprecated Constants.HTTP_SERVLET_REQUEST and made sure thatHTTPConstants.MC_HTTP_SERVLETREQUEST works. -- dims On 7/30/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:> On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:> > Hi Deepal,> >> > yes it works now ! I'm using the nighlty build fom July 16th.> >> > To summarize -- the way that you indicated is the *only* way that> > works, that is to say :> >> > - you must use Constants.HTTP_SERVLET_REQUEST (and not> > HTTPConstants.MC_HTTP_SERVLETREQUEST) ;> > Why do we have both these constants? It seems like a bug to me!> > > - you must use msgCtx.getProperty() (and not> > msgCtx.getOperationContext().getProperty() )> >> > Otherwise the HttpServletRequest won't be found.> > The transport details for a given message context are only available> from that message context. So if you're processing the incoming message> then you can look up the transport info from that message context. If> you're processing the outgoing message (of an IN-OUT MEP) and want the> servlet context associated with the incoming message, then you need to> get the incoming MC from the operation context and then ask it for the> transport info.> > Sanjiva.> > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> >   -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]