|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Extracting IP address of WS caller to WBI |
« View previous topic :: View next topic » |
Author |
Message
|
harelmoshe1 |
Posted: Tue Jun 26, 2007 4:05 am Post subject: Extracting IP address of WS caller to WBI |
|
|
Apprentice
Joined: 29 Dec 2005 Posts: 41
|
Hey, i'm trying to figure out how to exctract the client's (caller) IP address from the HTTP.RequestIdentifier in the LocalEnvironment (that BLOB, which translates into a string which has no useful info - 'AMQ QMGRNAME' or something alike, nothing more but weird characters).
Any useful suggestions ?
Thanks,
Harel |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 26, 2007 4:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It sounds like someone has put an automatically generated MQ Message or Correlation ID into the RequestIdentifier in the HTTP request.
It won't have the caller's IP address in it, then. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
harelmoshe1 |
Posted: Tue Jun 26, 2007 5:59 am Post subject: |
|
|
Apprentice
Joined: 29 Dec 2005 Posts: 41
|
Hey,
No MQ nodes in the flow, so i can't find a good reason for that MQ thing to appear there.
Is there any documented way for obtaining the IP (i haven't found one in the docs, however...) of the caller ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 26, 2007 6:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I remember seeing some comments from mgk about this.
It would be the caller that is setting the request identifier - and so it wouldn't show up in your flow. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Bill.Matthews |
Posted: Tue Jun 26, 2007 7:02 am Post subject: |
|
|
 Master
Joined: 23 Sep 2003 Posts: 232 Location: IBM (Retired)
|
Some changes for the HTTPInput processing have been made in FP4 (6.0.0.4) of the broker runtime. Here is an example extracted froma trace taken just after an HTTPinput node. In this case, everything is running locally - note the X-Remote-Addr,etc -
HTTPInputHeader = (
X-Original-HTTP-Command = 'POST http://localhost:7080/LAB11_WSHOST1 HTTP/1.1'
User-Agent = 'Java/1.4.2'
Host = 'localhost:7080'
Accept = 'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2'
Connection = 'keep-alive'
Content-Type = 'application/x-www-form-urlencoded'
Content-Length = '1158'
X-Remote-Addr = '127.0.0.1'
X-Remote-Host = '127.0.0.1'
X-Server-Name = 'localhost'
X-Server-Port = '7080'
X-Scheme = 'http' _________________ Bill Matthews |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|