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 » Exception while calling webservice through HttpRequest Node

Post new topic  Reply to topic
 Exception while calling webservice through HttpRequest Node « View previous topic :: View next topic » 
Author Message
anilmekala
PostPosted: Wed Mar 05, 2014 8:37 pm    Post subject: Exception while calling webservice through HttpRequest Node Reply with quote

Acolyte

Joined: 19 Oct 2012
Posts: 63

Hi All,

I have created two message flows

1) webservice provider flow

HttpInput --> computenode --> HttpReply

compute node :

CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET OutputRoot.XMLNSC.Data ='newdata';
RETURN TRUE;

2)webservice consumer flow

MqInput -->compute --> HttpRequest -->compute1 --> Mqoutput

I have given i/p message in mqinput node as below :
<HTTPTest>
<URL>http://localhost:7080/svc1</URL>
<InputData>
<Data>Test</Data>
</InputData>
<OutputData>
<Data/>
</OutputData>
</HTTPTest>

in compute node

CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET OutputRoot = InputRoot;
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = InputRoot.XMLNSC.HTTPTest.URL;
RETURN TRUE;
END;

compute mode :

localenvironment and message

HttpRequest node :

I have entered

Request message location in tree = InputRoot.XMLNC.HTTPTest.InputData

Response message location in tree = OutputRoot.XMLNSC.HTTPTest.OutputData

compute node1 :

BEGIN
-- CALL CopyMessageHeaders();
CALL CopyEntireMessage();
SET OutputRoot.HTTPResponseHeader= null;
RETURN TRUE;
END;



am getting exception as below :

ExceptionList
RecoverableException
File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbDataFlowNode.cpp
Line:INTEGER:1129
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW#FCMComposite_1_1
Label:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW.MQ Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:F:\build\S000_P\src\WebServices\WSLibrary\ImbWSRequestNode.cpp
Line:INTEGER:1168
Function:CHARACTER:ImbWSRequestNode::evaluate
Type:CHARACTER:ComIbmWSRequestNode
Name:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW#FCMComposite_1_3
Label:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW.HTTP Request
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:F:\build\S000_P\src\WebServices\WSLibrary\ImbWSRequestNode.cpp
Line:INTEGER:1082
Function:CHARACTER:ImbWSRequestNode::evaluate
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3162
Text:CHARACTER:WebService Request Exception
Insert
Type:INTEGER:5
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:
RecoverableException
File:CHARACTER:F:\build\S000_P\src\WebServices\WSLibrary\ImbWSRequestNode.cpp
Line:INTEGER:779
Function:CHARACTER:ImbWSRequestNode::evaluate
Type:CHARACTER:ComIbmWSRequestNode
Name:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW#FCMComposite_1_3
Label:CHARACTER:SAMPLE_SERVICE_CONSUMER_FLOW.HTTP Request
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3164
Text:CHARACTER:Navigation to requested message location failed. Location specified was: '&1'.
Insert
Type:INTEGER:5
Text:CHARACTER:InputRoot.XMLNC.HTTPTest.InputData


Please help how to resolve the above issue.

Thanks Advance.

Regards,

Anil.
Back to top
View user's profile Send private message
mban
PostPosted: Wed Mar 05, 2014 9:10 pm    Post subject: Reply with quote

Newbie

Joined: 25 Dec 2013
Posts: 3

check your request tree location. "InputRoot.XMLNC.HTTPTest.InputData"
should be XMLNSC
Back to top
View user's profile Send private message
anilmekala
PostPosted: Thu Mar 06, 2014 5:08 am    Post subject: Reply with quote

Acolyte

Joined: 19 Oct 2012
Posts: 63

Thank you.

i did note noticed.

Regards,

Anil.
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 » Exception while calling webservice through HttpRequest Node
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.