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 » HTTP error

Post new topic  Reply to topic
 HTTP error « View previous topic :: View next topic » 
Author Message
ishaq
PostPosted: Wed May 07, 2008 2:01 am    Post subject: HTTP error Reply with quote

Novice

Joined: 18 Feb 2008
Posts: 11

Hi,

Iam facing problem while calling Web service from a flow.
For this Iam using two flows
First one containing MQInput node,Compute node,HTTPRequest node,MQOutput node.
Second one containing HTTPInput node,Compute Node,HTTPReply node.
Iam using second flow as a web service and calling it from the First flow.
The HTTPRequest node is set to use part of the input message for the web service request.So the check box-Use whole input message as request and checkbox-Replace input message with web-service response are unchecked in advanced tab of HTTPRequest node.

Now when I try to run the flow,the control is reaching upto the HTTPRequest node after which the message is getting rooled back.
Below is the error which iam getting:

An HTTP error occurred. The HTTP Request-Line was: ''''.

The HTTP Request Header bitstream (if any) to be used was: ''''. The HTTP Request Message Body bitstream (if any) to be used was: ''''. The HTTP Reply Header bitstream (if any) received from the server was: ''''. The HTTP Reply Message Body bitstream (if any) received from the server was: ''''. Ensure that the HTTP data is valid.

Can anyone help me out in this issue...
Back to top
View user's profile Send private message
madi
PostPosted: Wed May 07, 2008 4:50 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

what did you give for "Request Location In Input message tree"??

i think its complaining that it cannot find anything in the path you have given there!

--madi
_________________
IBM Certified Solutions Developer - WMB 6.0
Back to top
View user's profile Send private message
mgk
PostPosted: Wed May 07, 2008 8:44 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Put a trace node before the request node and post the output here
_________________
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
View user's profile Send private message
ishaq
PostPosted: Wed May 07, 2008 10:16 pm    Post subject: Reply with quote

Novice

Joined: 18 Feb 2008
Posts: 11

The Request message location in tree is InputRoot.XML.HTTPTest.InputData

The message which I gave is
<HTTPTest>
<URL>http://localhost:7080/svc1</URL>
<InputData>
<Data>Test</Data>
</InputData><OutputData><Data/>
</OutputData>
</HTTPTest>

When I check the checkbox-Use whole input message as request the control is getting transferred to the Web service flow(second message flow),but the control is not coming back to the first flow and the message is getting rolled back.
Back to top
View user's profile Send private message
ishaq
PostPosted: Wed May 07, 2008 10:19 pm    Post subject: Reply with quote

Novice

Joined: 18 Feb 2008
Posts: 11

The contents of the trace node before the HTTPRequst node are:


(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-05-08 05:58:51.840'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'HTTPInput'
(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'414d512053616d706c65315f51756575f393224820002402'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'Sample1_Queue_Manager '
(0x03000000):UserIdentifier = '156936 '
(0x03000000):AccountingToken = X'16010515000000e07b3c4600680018184946176f11040000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 28
(0x03000000):PutApplName = 'Websphere MQ Client for Java'
(0x03000000):PutDate = DATE '2008-05-08'
(0x03000000):PutTime = GMTTIME '05:58:51.840'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000010):XML = (
(0x01000000):HTTPTest = (
(0x02000000): = '
'
(0x01000000):URL = (
(0x02000000): = 'http://localhost:7080/svc1'
)
(0x02000000): = '
'
(0x01000000):InputData = (
(0x02000000): = '
'
(0x01000000):Data = (
(0x02000000): = 'Test'
)
(0x02000000): = '
'
)
(0x01000000):OutputData = (
(0x01000000):Data =
(0x02000000): = '
'
)
(0x02000000): = '
'
)
)
)
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu May 08, 2008 7:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
The Request message location in tree is InputRoot.XML.HTTPTest.InputData
I really hope that is a typo. You should not be using the XML domain in a new message flow.
It would be really bad practice to use it for a web services flow.
Back to top
View user's profile Send private message
mgk
PostPosted: Thu May 08, 2008 7:59 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Try removing the whitespace from your input message as a test
_________________
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
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 » HTTP error
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.