You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eran Chinthaka <ch...@opensource.lk> on 2006/11/01 18:33:37 UTC

Re: [Axis2] caller ip-adress

Which distribution of Axis2 are you using? Is it war distro or
stand-alone server?

If it is war distribution, the you can get hold of HTTPServletRequest
object by calling

messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)

HTTPServletRequest object will have the caller's address.

-- Chinthaka

Alex Hollerith wrote:
> hi,
> 
> is there a clever way to get hold of a callers ip-address from inside an
> AbstractInOutSyncMessageReceiver object? We tried to go from the MessageContext
> to the ServletContext - but couldn't find a way to get to the callers address...
> 
> the case behind this is that we would like to know who called us and make this
> information persistent with our business objects.
> 
> thanks
> alex
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 



Re: SunOne 6.1 and Axis2

Posted by Davanum Srinivas <da...@gmail.com>.
Please use nightly. There were problem(s) with "unexploded" war's
which we have fixed.

thanks,
dims

On 11/1/06, sean curtis <se...@yahoo.com> wrote:
> I'd like to know if anyone has successfully deployed
> Axis2 1.0 to SunOne version 6.1. All my services,
> deployed through .aar files work great on Tomcat, but
> when deployed to SunOne, I see the following
> behaviour:
>
> 1. the Service?wsdl method doesnt work ( if you do
> Service?wsdl=1, as listed in other emails, you can get
> it to work, albeit a bit hokey.
>
> 2. I get HTTP 404's back when I try to hit my service
> endpoints, again indicative of some type of mapping
> problem between the URL's generated for the service
> endpoints in the deployed wsdl at deployment time.
>
> 3. If I try to import an external schema into my wsdl,
> I end up with xsd:0.xsd, xsd:1.xsd, or something to
> that effect after I run wsdl2java which cannot be
> resolved at invocation time.
>
> Just wondering what the current suggestion is:
> 1. Download the nightly war. (a little resistant to
> this, because all
> 2. hack the 1.0 config to make it work?
> 3. Use Tomcat? Only problem with this is that we're a
> SunOne shop.
>
> Any help would be appreciated.
>
>
>
>
>
> ____________________________________________________________________________________
> Everyone is raving about the all-new Yahoo! Mail
> (http://advision.webevents.yahoo.com/mailbeta/)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


SunOne 6.1 and Axis2

Posted by sean curtis <se...@yahoo.com>.
I'd like to know if anyone has successfully deployed
Axis2 1.0 to SunOne version 6.1. All my services,
deployed through .aar files work great on Tomcat, but
when deployed to SunOne, I see the following
behaviour:

1. the Service?wsdl method doesnt work ( if you do
Service?wsdl=1, as listed in other emails, you can get
it to work, albeit a bit hokey.

2. I get HTTP 404's back when I try to hit my service
endpoints, again indicative of some type of mapping
problem between the URL's generated for the service
endpoints in the deployed wsdl at deployment time.

3. If I try to import an external schema into my wsdl,
I end up with xsd:0.xsd, xsd:1.xsd, or something to
that effect after I run wsdl2java which cannot be
resolved at invocation time.

Just wondering what the current suggestion is:
1. Download the nightly war. (a little resistant to
this, because all
2. hack the 1.0 config to make it work?
3. Use Tomcat? Only problem with this is that we're a
SunOne shop.

Any help would be appreciated.




 
____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail 
(http://advision.webevents.yahoo.com/mailbeta/)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] caller ip-adress

Posted by Alex Hollerith <al...@hollerith.net>.
its the war distribution.
thank you very much for this information.

alex

On Wed, 01 Nov 2006 22:33:37 +0500, Eran Chinthaka wrote
> Which distribution of Axis2 are you using? Is it war distro or
> stand-alone server?
> 
> If it is war distribution, the you can get hold of HTTPServletRequest
> object by calling
> 
> messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
> 
> HTTPServletRequest object will have the caller's address.
> 
> -- Chinthaka
> 
> Alex Hollerith wrote:
> > hi,
> > 
> > is there a clever way to get hold of a callers ip-address from inside an
> > AbstractInOutSyncMessageReceiver object? We tried to go from the
MessageContext
> > to the ServletContext - but couldn't find a way to get to the callers
address...
> > 
> > the case behind this is that we would like to know who called us and make this
> > information persistent with our business objects.
> > 
> > thanks
> > alex
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> > 
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org