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 » HTTPRequest Node Help

Post new topic  Reply to topic
 HTTPRequest Node Help « View previous topic :: View next topic » 
Author Message
matam_viswa
PostPosted: Tue Jun 05, 2007 5:11 am    Post subject: HTTPRequest Node Help Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Dear All,
I need help from u.


My flow contains the following nodes.
MQInputNode->ComputeNode1-->HTTPRequestNode-->ComputeNode2-->outputNode

ComputeNode1 receives input from inputnode and converts the received message into SOAP request message and passes to the HTTP request node. HttpRequestNode takes the request from computeNode1 and passes to the Webservice(Which i have specified in URL) and receives response from the webservice. ComputeNode2 used for adding MQMD header for the response message and pass the response to output queue.

but the reponse i am getting here from the webservice is Home page of
the URL.


in my home page of the webservice contains the below methods. i need to get RequestTaxYears from the service.

GetRole

ProcessJob

RequestDuplicateCertificate

RequestOnline

RequestTaxYears

SetMQSIStatus
.

-----
Please find the below my esql code

DECLARE ns NAMESPACE 'http://www.xxxxxx.co.za/';
DECLARE tns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE soap NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap/';
DECLARE tm NAMESPACE 'http://microsoft.com/wsdl/mime/textMatching/';
DECLARE soapenc NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';
DECLARE mime NAMESPACE 'http://schemas.xmlsoap.org/wsdl/mime/';
DECLARE s NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE soap12 NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap12/';
DECLARE http NAMESPACE 'http://schemas.xmlsoap.org/wsdl/http/';
DECLARE wsdl NAMESPACE 'http://schemas.xmlsoap.org/wsdl/';



CREATE COMPUTE MODULE LPB_CC_TAX_CERTIFICATE_CATCH_AssignContractNumber
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET Environment.MQMD = InputRoot.MQMD;

-- Input is CWF, Output is SOAP, so set the wire format and message name
SET OutputRoot.Properties.MessageSet = 'J8971Q0002001';
SET OutputRoot.Properties.MessageType = 'Envelope';
SET OutputRoot.Properties.MessageFormat = 'XML1';


-- SET OutputRoot.XML.(XML.XmlDecl) '"http://www.xxxxx.co.za/RequestTaxYears"';
-- SET "OutputRoot"."MRM".TXLifeRequest."TransType"."tc" = '5001';
-- Build message to be sent to web service
SET OutputRoot.XML.TXLifeRequest."TransRefGUID" = InputRoot.MQMD.MsgId;
SET OutputRoot.XML.TXLifeRequest."TransType".(XML.attr)tc='310';
SET OutputRoot.XML.TXLifeRequest."TransType" = 'Contribution Certificate';
SET OutputRoot.XML.TXLifeRequest."TransExeDate" = '2007-04-01';
-- SET OutputRoot.MRM.TXLifeRequest."TransExeTime" = current_time;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.(XML.attr)id='HOLD1';
-- SET OutputRoot.XML.TXLifeRequest.OLifE."Holding id" = 'HOLD1';
-- SET OutputRoot.XML.TXLifeRequest.OLifE.Holding = '';
SET Environment.Variables.Contract_Number=InputRoot.XML.Contract_Number;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.HoldingKey = Environment.Variables.Contract_Number;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.DocumentType = 'IRP5';


SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'GET';

RETURN TRUE;
END;

CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER;
DECLARE J INTEGER;
SET I = 1;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;

END;
END MODULE;


CREATE COMPUTE MODULE LPB_CC_TAX_CERTIFICATE_CATCH_Compute1
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();

--CALL CopyEntireMessage();

SET OutputRoot.Properties.MessageSet = 'J8971Q0002001';
SET OutputRoot.Properties.MessageType = 'Envelope';
SET OutputRoot.Properties.MessageFormat = 'XML1';

SET Environment.Variables.XML1 = InputRoot.XML;

SET OutputRoot.MRM.tns:Body.ns:RequestTaxYears.node = InputRoot.XML;


-- SET OutputRoot.HTTPReplyHeader."SOAPAction" = 'RequestTaxYears';
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'GET';


RETURN TRUE;
END;

CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER;
DECLARE J INTEGER;
SET I = 1;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;


CREATE COMPUTE MODULE LPB_CC_TAX_CERTIFICATE_CATCH_Compute2
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyEntireMessage();
-- Output is MQ, so remove HTTP headers
SET OutputRoot.HTTPResponseHeader = NULL;

-- Output is CWF, so set target message properties
-- SET OutputRoot.Properties.MessageType = 'msg_tagIA81CONF';
-- SET OutputRoot.Properties.MessageFormat = 'CWF1';

-- Create an MQMD and restore it to saved values
CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
SET OutputRoot.MQMD = Environment.MQMD;
RETURN TRUE;
END;

CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER;
DECLARE J INTEGER;
SET I = 1;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;

---------

Please help in this regard

Regards
Viswa
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 05, 2007 5:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So let's simplify your problem and remove all the extraneous code you've posted.

Quote:
HttpRequestNode takes the request from computeNode1 and passes to the Webservice

Quote:
the reponse i am getting from the webservice is Home page of
the URL


Then you're not using the correct URL to invoke the web service.

Or you're using a GET when the web service expects you to use a POST.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
matam_viswa
PostPosted: Wed Jun 06, 2007 1:13 am    Post subject: HTTPRequest Node Help Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi jeff,
Thanks for info.
Here in my home page contains 6 methods. I am specifing the URL of the home page in my HTTPRequest node. when ever i send the request the corresponding method should be called(Iam specifying request method in Soap message body).

If i use POST method in am not getting any response from the webservice.
but if i use GET method i am getting the response as home page of the URL.
Please find below my code and trace results.

-------------------
DECLARE ns NAMESPACE 'http://www.xxxxxx.co.za/';
DECLARE tns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE soap NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap/';
DECLARE tm NAMESPACE 'http://microsoft.com/wsdl/mime/textMatching/';
DECLARE soapenc NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';
DECLARE mime NAMESPACE 'http://schemas.xmlsoap.org/wsdl/mime/';
DECLARE s NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE soap12 NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap12/';
DECLARE http NAMESPACE 'http://schemas.xmlsoap.org/wsdl/http/';
DECLARE wsdl NAMESPACE 'http://schemas.xmlsoap.org/wsdl/';



CREATE COMPUTE MODULE LPB_CC_TAX_CERTIFICATE_CATCH_AssignContractNumber
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET Environment.MQMD = InputRoot.MQMD;

-- Input is CWF, Output is SOAP, so set the wire format and message name
SET OutputRoot.Properties.MessageSet = 'J8971Q0002001';
SET OutputRoot.Properties.MessageType = 'Envelope';
SET OutputRoot.Properties.MessageFormat = 'XML1';


-- SET OutputRoot.XML.(XML.XmlDecl) '"http://www.xxxxx.co.za/RequestTaxYears"';
-- SET "OutputRoot"."MRM".TXLifeRequest."TransType"."tc" = '5001';
-- Build message to be sent to web service
SET OutputRoot.XML.TXLifeRequest."TransRefGUID" = InputRoot.MQMD.MsgId;
SET OutputRoot.XML.TXLifeRequest."TransType".(XML.attr)tc='310';
SET OutputRoot.XML.TXLifeRequest."TransType" = 'Contribution Certificate';
SET OutputRoot.XML.TXLifeRequest."TransExeDate" = '2007-04-01';
-- SET OutputRoot.MRM.TXLifeRequest."TransExeTime" = current_time;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.(XML.attr)id='HOLD1';
-- SET OutputRoot.XML.TXLifeRequest.OLifE."Holding id" = 'HOLD1';
-- SET OutputRoot.XML.TXLifeRequest.OLifE.Holding = '';
SET Environment.Variables.Contract_Number=InputRoot.XML.Contract_Number;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.HoldingKey = Environment.Variables.Contract_Number;
SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.DocumentType = 'IRP5';


SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'GET';

RETURN TRUE;
END

-----------------


Trace results
---------------

(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-04 10:36:19.900'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a5202160f602'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-04'
(0x03000000):PutTime = GMTTIME '10:36:19.900'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a5202160f602'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'Contribution Certificate'
)
)
)
)
)
)
)
)
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-04 10:43:38.580'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a5202160f702'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-04'
(0x03000000):PutTime = GMTTIME '10:43:38.580'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a5202160f702'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'IRP5'
)
)
)
)
)
)
)
)
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-04 11:32:34.910'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a52021612302'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-04'
(0x03000000):PutTime = GMTTIME '11:32:34.910'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a52021612302'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'IRP5'
)
)
)
)
)
)
)
)
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-04 11:35:40.640'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a52021612602'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-04'
(0x03000000):PutTime = GMTTIME '11:35:40.640'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a52021612602'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'IRP5'
)
)
)
)
)
)
)
)
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-06 08:32:16.450'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a52021673802'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-06'
(0x03000000):PutTime = GMTTIME '08:32:16.450'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a52021673802'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'IRP5'
)
)
)
)
)
)
)
)
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-06 08:39:25.480'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'TESTIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51204c4d4436554d5149202020204624a52021674e02'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'LMD6UMQI '
(0x03000000):UserIdentifier = 'mqmpap '
(0x03000000):AccountingToken = X'0433303034000000000000000000000000000000000000000000000000000006'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2007-06-06'
(0x03000000):PutTime = GMTTIME '08:39:25.480'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.xxxxxxxxx.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d51204c4d4436554d5149202020204624a52021674e02'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):DocumentType = 'IRP5'

--------------





Regards
Viswanath
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 06, 2007 1:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you're getting the wrong thing back from the web service, then either the webservice is wrong, or you're calling the web service incorrectly.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Jun 06, 2007 1:50 am    Post subject: Re: HTTPRequest Node Help Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

matam_viswa wrote:

If i use POST method in am not getting any response from the webservice.


What does it mean ?

Does your request reach WS ?

Does your WS hungs or something?

Have you checked your WS with any WS client ?
_________________
Marcin


Last edited by marcin.kasinski on Sun Jun 10, 2007 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
matam_viswa
PostPosted: Fri Jun 08, 2007 6:38 am    Post subject: HTTPRequestNode Help Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi All,
My problem not yet resolved.
I am successfully getting response from the webservice thru Java progams.

but i am not getting successful resonse from HTTPRequest node.
If i use post method in in my ESQL, i am getting HttpResponse header Status code as 200 and the remaining response header details But i am not getting body of the response message.
If i use GET method in my ESQL, I am getting Home of the URL.

Can anybody please help me in this regard.

Regards
Viswa
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jun 08, 2007 6:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to look and see if there are errors on the webservice side when you invoke it from your code.

it would probably also help to use something like TCPMonitor in Toolkit or nettool to intercept and forward the request, so you can see what your flow is producing at the request node. I bet you're buildling the output message wrong.
_________________
I am *not* the model of the modern major general.
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 » HTTPRequest Node Help
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.