Thank you it was a big help :) !
- Original Message -
From: "Vitali W. Danilow" <[EMAIL PROTECTED]>
To: "Kiss Attila" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 1:06 AM
Subject: Re: Client IP address
> here we g
here we go...
private String getClientIP() {
HttpServletRequest srv = (HttpServletRequest)
MessageContext.getCurrentContext().getProperty(HTTPConstants.
MC_HTTP_SERVLETREQUEST);
if (srv != null) {
return srv.getRemoteAddr();
}
else {
Sent: Saturday, October 18, 2003 12:30 PM
Subject: Client IP address
> Hi
>
> I am using axis with Jbuider I wrote a java bean and i exported as web
> service . the problem is that i dont know how can i get the client's IP
> address.
>
> thanks for your help
>
> Attila
>
>
Hi
I am using axis with Jbuider I wrote a java bean and i exported as web
service . the problem is that i dont know how can i get the client's IP
address.
thanks for your help
Attila
Take a look at axis samples at:
C:\axis\samples\jaxrpc\hello\ServerHandler.java
--- Justin Avaya <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am writing a simple RPC using JAVA and then using
> AXIS.
>
> I am not sure where to implement the request handler
> that Vladmir suggested.
>
> I tried a
Hi,I am writing a simple RPC using JAVA and then using AXIS. I am not sure where to implement the request handler that Vladmir suggested.I tried adding it to the RPC method itself [I am sure it is wrong but it was giving me null]Looking forward for your help.package exportbean;import javax.xml.rpc.
Sorry, HandlerUtil is a snippet of my code,
should just be HTTPConstants.MC_HTTP_SERVLETREQUEST.
Vlad
--- Balaji D L <[EMAIL PROTECTED]> wrote:
> Vladimir & justin,
> The HandlerUtil.MC_HTTP_SERVLETREQUEST is not
> working, its returning null value(for me)..
> the HTTPConstants.MC_HTTP_SERVLE
Vladimir & justin,
The HandlerUtil.MC_HTTP_SERVLETREQUEST is not
working, its returning null value(for me)..
the HTTPConstants.MC_HTTP_SERVLETREQUEST is working
fine.
--- Vladimir Umansky <[EMAIL PROTECTED]> wrote: >
> You can get it through MessageContext:
>
> handleRequest(MessageContext con
Hi,
I am writing a simple Java program and using Apache
Axis to generate the web service. I am writing the server. I need to capture the
IP address of the client who is trying to connect to me to log him in my
database. In a servelt I would use the request object. How do I do it
here.
Tha
You can get it through MessageContext:
handleRequest(MessageContext context) {
..
// HttpServletRequest may not be available
HttpServletRequest req = null;
// get it from Axis
if
(context.containsProperty(HandlerUtil.MC_HTTP_SERVLETREQUEST))
{
req
MAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 8:32 AM
To: [EMAIL PROTECTED]
Subject: Get Client IP address when using message-style service
Hi,
I'm using message style of SOAP messages and I wonder how to get
client IP from service method.
I use folowin
IL PROTECTED]>
> Komu: <[EMAIL PROTECTED]>
> CC:
> Datum: Thu, 20 Feb 2003 14:31:59 +0100
> Předmět: Get Client IP address when using message-style service
>
> Hi,
> I'm using message style of SOAP messages and I wonder how to get
> client IP from service method.
Hi,
I'm using message style of SOAP messages and I wonder how to get
client IP from service method.
I use folowing type of message-style service:
public void method(SOAPEnvelope req, SOAPEnvelope resp)
But in this method there is no messageContext from which I can obtain
client's IP address.
T
13 matches
Mail list logo