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 » SOAP has invalid identifier

Post new topic  Reply to topic
 SOAP has invalid identifier « View previous topic :: View next topic » 
Author Message
kathir
PostPosted: Fri Dec 30, 2011 5:38 am    Post subject: SOAP has invalid identifier Reply with quote

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;
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Fri Dec 30, 2011 7:42 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

What has timed out?
What action do you plan to take in this timeout situation?
What actually is the problem?

When posting code please cut & paste if possible and use code tags. I would not expect
Code:
InputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier
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.
Back to top
View user's profile Send private message
kathir
PostPosted: Sun Jan 01, 2012 9:34 pm    Post subject: Regarding timeouts. Reply with quote

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.
Back to top
View user's profile Send private message
kathir
PostPosted: Tue Jan 17, 2012 11:44 pm    Post subject: Soap contains invalid handle after connection is closed Reply with quote

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.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Jan 18, 2012 1:29 am    Post subject: Reply with quote

Jedi Council

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.
Back to top
View user's profile Send private message
kathir
PostPosted: Thu Jan 19, 2012 1:32 am    Post subject: soap has invalid reply identifier Reply with quote

Apprentice

Joined: 12 Sep 2011
Posts: 30

Yes. I have set the HTTP Timeout to 1 sec to test timed out scenario. I have just one flow.

SOAP-Input(whose http timeout terminal is connected )--> compute node--> soap reply node.

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.
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 » SOAP has invalid identifier
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.