ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Extracting IP address of WS caller to WBI

Post new topic  Reply to topic
 Extracting IP address of WS caller to WBI « View previous topic :: View next topic » 
Author Message
harelmoshe1
PostPosted: Tue Jun 26, 2007 4:05 am    Post subject: Extracting IP address of WS caller to WBI Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 26, 2007 4:07 am    Post subject: Reply with quote

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
View user's profile Send private message
harelmoshe1
PostPosted: Tue Jun 26, 2007 5:59 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 26, 2007 6:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Bill.Matthews
PostPosted: Tue Jun 26, 2007 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Extracting IP address of WS caller to WBI
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.