Posted: Fri Dec 30, 2011 5:38 am Post subject: SOAP has invalid identifier
Apprentice
Joined: 12 Sep 2011 Posts: 30
Hi,
I have a scenario where I am testing a HTTPtimeout.
SOAPInputNode-->computenode-->SOAP Reply
I have a scenario when I receive the timeout(By setting the HTTP TIMEOUT to 1 sec) . It is going to the compute node and then to the soap reply. But Iam getting invalid soap reply identifier. The reason being the connection is getting closed and hence it is throwing the exception.In the compute node I am doing a check like
if(inputlocalenvironment.desitnation.soap.reply.identifer) is true then
return true;
end if;
How do i avoid the exception from happening and also i should not have return false;
to be a boolean. What are you doing with it in the compute node?
Also post some detail of the exception message you are getting and where you are getting it from, and why you don't think you should be getting it.
Posted: Sun Jan 01, 2012 9:34 pm Post subject: Regarding timeouts.
Apprentice
Joined: 12 Sep 2011 Posts: 30
I have requirement to test the HTTPTimeout.
I have a flow where the HTTPTimeout is connected to the exceptionmsg termnal of a compute node. There I check if it is soap fault or not. While I was testing the timeout by setting the HTTPTIMEOUT to 1 sec I was getting invalid soap reply identifier. The reson being when ever a timeout occurs the listener sends the timeout fault via soapinput httptimeout terminal. Now the connection is closed but we cannot stop the flow from continuing. here is the below code.
CREATE COMPUTE MODULE Fault_Response
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyEntireMessage();
IF Environment.Variables.HTTPTimeout = 'Y' THEN
RETURN FALSE;
ELSE
IF (exists(InputLocalEnvironment.SOAP.Input.Timeout[]) IS TRUE )then
SET Environment.Variables.HTTPTimeout = 'Y';
RETURN TRUE;
END IF;
END IF;
Now I need to handle teh exception such that when ever timeout happens the exception should be avoided and also the flow should continue.
Posted: Tue Jan 17, 2012 11:44 pm Post subject: Soap contains invalid handle after connection is closed
Apprentice
Joined: 12 Sep 2011 Posts: 30
The flow is having soap input node--> compute node--> soap reply node.
1.When ever timeout is occuring the listener is sending timeout resposne to caller.
2.But when the debugegr is on I observed that inspite of the httptimeout terminal sending response to caller the control is coming into the computen ode.
3. But as soon as it hits the soap reply node iam getting soap contains invalid reply identifier.
4. Iam not sure if this is a behaviour of web service.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Are you really trying to use the debugger with a 1sec timeout?
Remove the debugger. This is going to mess things up.
Deploy the two flows into separate Execution groups
Enable user trace on BOTH
Test.
Get the usertrace logs and see the exact timing of what happened.
Think carefully about what you are seeing and what is timing out. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
What I observed is during timeouts the HTTP terminal sends a timeout message to the caller. Also the flow continues into compute node. From compute node it hits the SOAP reply node where I am getting this exception as SOAP contains invalid reply identifier. I guess as soon as the listener sends a response the connection is getting closed and hence I am getting this exception.
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