Author |
Message
|
cooldudes |
Posted: Thu Oct 25, 2012 8:23 am Post subject: How to accept Http 302 not found in HttpRequest Node |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
Hi Guys,
I am using a HttpRequest node to invoke a external websrvice which is out of my network.Recently they have changed the server ie domain and applied some load balancer at the webservice end.They have provided a new URL when I try the new URL am getting error like Http 302 not found.
The same URL is working fine from Soap UI and other clients are able to invoke the webservice.Is there any way i can accept these Http redirects by changing the Http Request node propertied?
I tried by checking the Http(s) redirections check box and still am getting the same error.Can you guys help me in resolving the issue?
And also I am able to invoke the URL from browser. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Oct 25, 2012 8:40 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
cooldudes |
Posted: Thu Oct 25, 2012 11:02 am Post subject: |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
Fixpack capability level = 'all' (effective level '7.0.0.3') |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Oct 25, 2012 11:05 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
cooldudes |
Posted: Thu Oct 25, 2012 11:53 am Post subject: |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
In HTTPResponseheaders i can see same Http 302 error again.Here are the syslogs in broker :
Oct 16 15:35:57 user:info WebSphere Broker v7003[11927606]: ()[6169]BIP2152I: Configuration message received from broker. : BK02D1C.bbdbc902-3701-0000-0080-aca54342ea9e: /build/S700_P/src/DataFlowEngine/ImbConfigurationNode.cpp: 289: ImbConfigurationNode::evaluate: :
Oct 16 15:35:57 user:info WebSphere Broker v7003[11927606]: ()[6169]BIP2153I: About to 'change' an execution group. : BK02D1C.bbdbc902-3701-0000-0080-aca54342ea9e: /build/S700_P/src/DataFlowEngine/ImbConfigurationNode.cpp: 292: ImbConfigurationNode::evaluate: :
Oct 16 15:36:05 user:info WebSphere Broker v7003[11927606]: ()[6169]BIP2154I: Execution group finished with Configuration message. : BK02D1C.bbdbc902-3701-0000-0080-aca54342ea9e: /build/S700_P/src/DataFlowEngine/ImbConfigurationNode.cpp: 462: ImbConfigurationNode::evaluate: |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Oct 25, 2012 11:59 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Put three Trace nodes connected to 1. Out, 2. Failure, and 3. Error. Send the output of the Trace nodes to three separate files on disk. Use this pattern:
Code: |
Root:
${Root}
===
LocalEnvironment:
${LocalEnvironment}
===
Environment:
${Environment}
===
ExceptionList:
${ExceptionList}
===
${CURRENT_TIMESTAMP}
======================= |
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
cooldudes |
Posted: Thu Oct 25, 2012 12:50 pm Post subject: |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
I have removed the request message as it contains some business data.
Root:
( ['WSRoot' : 0x113e59fd0]
(0x01000000:Name):Properties = ( ['WSPROPERTYPARSER' : 0x1152c4130]
(0x03000000:NameValue):MessageSet = '' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 273 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2012-10-25 20:22:36.938534' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name):HTTPResponseHeader = ( ['WSRSPHDR' : 0x113f34e30]
(0x03000000:NameValue):X-Original-HTTP-Status-Line = 'HTTP/1.0 302 Found' (CHARACTER)
(0x03000000:NameValue):X-Original-HTTP-Status-Code = 302 (INTEGER)
(0x03000000:NameValue):Location = 'http://www.oracle.com/' (CHARACTER)
(0x03000000:NameValue):Server = 'BigIP' (CHARACTER)
(0x03000000:NameValue):Connection = 'close' (CHARACTER)
(0x03000000:NameValue):Content-Length = '0' (CHARACTER)
)
)
===
LocalEnvironment:
( ['MQROOT' : 0x113519010]
(0x01000000:Name):Destination = (
(0x01000000:Name):HTTP = (
(0x03000000:NameValue):RequestURL = 'https://oidx-qa.oracleindustry.com/idxwebWeb/com/iit/integration/txlife/webService/Txlife1203ServerWS.jws' (CHARACTER)
)
)
(0x01000000:Name):WrittenDestination = (
(0x01000000:Name):HTTP = (
(0x03000000:NameValue):RequestURL = 'https://oidx-qa.oracleindustry.com/idxwebWeb/com/iit/integration/txlife/webService/Txlife1203ServerWS.jws' (CHARACTER)
)
)
)
===
Environment:
( ['MQROOT' : 0x11044a1b0]
(0x01000000:Name):Variables = (
(0x01000000:Folder ):XMLNSC = ( ['xmlnsc' : 0x113b10990]
(0x01000000:Folder):BusinessPayload = (
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:NameValue):CodedCharSetId = 819 (INTEGER)
(0x03000000:NameValue):Encoding = 273 (INTEGER)
(0x01000000:Name ):Service = (
(0x03000000:NameValue):TrackingId = 'b59719c4-1ee1-11e2-aae1-000000000000' (CHARACTER)
(0x03000000:NameValue):URL = 'https://oidx-qa.oracleindustry.com/idxwebWeb/com/iit/integration/txlife/webService/Txlife1203ServerWS.jws' (CHARACTER)
(0x03000000:NameValue):UserId = 'MetLife' (CHARACTER)
(0x03000000:NameValue):Password = 'iitpass' (CHARACTER)
(0x03000000:NameValue):LogFlag = 'TRUE' (CHARACTER)
(0x03000000:NameValue):AuditFlag = 'TRUE' (CHARACTER)
)
(0x03000000:NameValue):isAuditLogRequired = 'TRUE' (CHARACTER)
(0x03000000:NameValue):isEventLogRequired = 'TRUE' (CHARACTER)
(0x01000000:Name ):Audit = (
(0x03000000:NameValue):ServiceName = 'srvENBIIT' (CHARACTER)
(0x03000000:NameValue):Major = '1' (CHARACTER)
(0x03000000:NameValue):Minor = '0' (CHARACTER)
(0x03000000:NameValue):NameIdentifier = 'ENB' (CHARACTER)
(0x03000000:NameValue):TransRefGUID = '' (CHARACTER)
(0x03000000:NameValue):AppName = 'ENB' (CHARACTER)
(0x03000000:NameValue):TrackingId = 'b59d1e64-1ee1-11e2-aae1-000000000000' (CHARACTER)
(0x03000000:NameValue):CreationTime = TIMESTAMP '2012-10-25 16:22:33.792871' (TIMESTAMP)
(0x03000000:NameValue):PhysicalServerName = 'BK02D1C' (CHARACTER)
(0x03000000:NameValue):ParentTrackingId = 'b59719c4-1ee1-11e2-aae1-000000000000' (CHARACTER)
(0x03000000:NameValue):TransactionStatus = 'Completed' (CHARACTER)
(0x03000000:NameValue):BusinessStatus = 'SUCCESSFUL' (CHARACTER)
(0x03000000:NameValue):TransactionType = 'Asynch' (CHARACTER)
)
(0x01000000:Name ):LogMessage = (
(0x01000000:Name):LogContext = (
(0x03000000:NameValue):ApplicationName = 'srvENBIIT' (CHARACTER)
(0x03000000:NameValue):UserID = 'ENB' (CHARACTER)
(0x03000000:NameValue):SessionToken = 'srvENBIIT' (CHARACTER)
(0x03000000:NameValue):CustomerID = 'b59d1e64-1ee1-11e2-aae1-000000000000' (CHARACTER)
(0x03000000:NameValue):HostName = 'BK02D1C' (CHARACTER)
(0x03000000:NameValue):ServerName = 'ENBStatusUpdate915' (CHARACTER)
)
(0x01000000:Name):LogEvents = (
(0x01000000:Name):LogEvent = (
(0x03000000:NameValue):LogSeverity = 'INFO' (CHARACTER)
(0x03000000:NameValue):LogTimestamp = TIMESTAMP '2012-10-25 16:22:33.792871' (TIMESTAMP)
(0x03000000:NameValue):MessageText = 'com.metlife.usb.isg.wmb.enb.ENB_ProcessIITData.Process IIT Data' (CHARACTER)
(0x03000000:NameValue):MessageDetail = 'Logging the Inbound ENB_IIT Request message.' (CHARACTER)
)
(0x01000000:Name):LogEvent = (
(0x03000000:NameValue):LogSeverity = 'INFO' (CHARACTER)
(0x03000000:NameValue):LogTimestamp = TIMESTAMP '2012-10-25 16:22:33.801945' (TIMESTAMP)
(0x03000000:NameValue):MessageText = 'com.metlife.usb.isg.wmb.enb.ENB_ProcessIITData.ENB_IITService.Construct IIT Request' (CHARACTER)
(0x03000000:NameValue):MessageDetail = 'Status Message after constructing the ENB_IIT Web-service Request Message' (CHARACTER)
)
)
)
(0x03000000:NameValue):TargetNamespace = 'http://ACORD.org/Standards/Life/2' (CHARACTER)
)
)
===
ExceptionList:
===
2012-10-25 16:22:38.341134
======================= |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Thu Oct 25, 2012 9:26 pm Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
See what W3.org says about 302.
Can you invoke the WS you are trying to use with other WS clients like soapUI?
--
Marko |
|
Back to top |
|
 |
rekarm01 |
Posted: Thu Oct 25, 2012 11:47 pm Post subject: Re: How to accept Http 302 not found in HttpRequest Node |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
cooldudes wrote: |
when I try the new URL am getting error like Http 302 not found |
Run a debug-level usertrace, and post the complete and exact error message, and where it occurs. Which terminal does the HTTPRequest node direct the response message through, and what is the parser type associated with the response message? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Oct 26, 2012 4:59 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mgk |
Posted: Fri Oct 26, 2012 6:16 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Have you checked the "Follow HTTP(S) Redirection" box on the HTTPRequest node? _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
cooldudes |
Posted: Fri Oct 26, 2012 7:51 am Post subject: |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
lancelotlinc wrote: |
There is only one Trace output. Were there any Trace output in the other two Trace nodes? |
Other files are empty. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Oct 26, 2012 8:11 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
cooldudes wrote: |
lancelotlinc wrote: |
There is only one Trace output. Were there any Trace output in the other two Trace nodes? |
Other files are empty. |
This means the happy path is happy at that point in the flow since there is not Exception tree. The error you are getting is downstream of that Trace node. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
cooldudes |
Posted: Fri Oct 26, 2012 9:24 am Post subject: |
|
|
Novice
Joined: 01 Oct 2012 Posts: 11
|
lancelotlinc wrote: |
cooldudes wrote: |
lancelotlinc wrote: |
There is only one Trace output. Were there any Trace output in the other two Trace nodes? |
Other files are empty. |
This means the happy path is happy at that point in the flow since there is not Exception tree. The error you are getting is downstream of that Trace node. |
The flow is not going to out terminal.It is going to error terminal and the above trace log is for error node.I see remaining files are empty as the flow not going to that terminals. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Oct 26, 2012 10:15 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
If you are sure you ticked the Follow HTTP(s) Redirection property, open a PMR.
Since you are using SOAP, why did you select HTTPRequest node instead of SOAPRequest node? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|