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 Request problems

Post new topic  Reply to topic
 HTTP Request problems « View previous topic :: View next topic » 
Author Message
Kjell
PostPosted: Wed Sep 21, 2005 12:43 am    Post subject: HTTP Request problems Reply with quote

Acolyte

Joined: 26 Feb 2002
Posts: 73

Hi

I have a test-flow that I use to call a webservice-flow on the same broker.

Flow TEST1 reads a message from an MQInput node, adds HTTPRequestheader in a compute node and passes the message to an HTTPRequest node.

Flow TEST2 reads above request via an HTTPInput node.

The troouble is that my message does never reach TEST2. It ends up with an HTTPResposne propagateds to the Error terminal of the HTTPRequest node, saying "Internal Server Error".

HTTPRequest node of flor TEST1 has URL 'HTTP://servername:1418
HTTPInput node of flor TEST2 has URL 'HTTP://servername:1418
Broker set to use port 1418 for webservices.


ESQL for setting up requestheader:
SET OutputRoot.HTTPRequestHeader."X-Original-HTTP-URL" = 'http://servername:1418';
SET OutputRoot.HTTPRequestHeader."POST" = '/.';
SET OutputRoot.HTTPRequestHeader."Host" = 'servername';
SET OutputRoot.HTTPRequestHeader."Content-Type" = 'text/xml; charset=UTF-8';
SET OutputRoot.HTTPRequestHeader."SOAPAction" = 'Action';

Trace output:

(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 0
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2005-09-21 08:42:46.531'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):Content-Length = '284'
(0x03000000):X-Original-HTTP-URL = 'http://servername:1418'
(0x03000000):POST = '/.'
(0x03000000):Host = 'servername'
(0x03000000):Content-Type = 'text/xml; charset=UTF-8'
(0x03000000):SOAPAction = 'Action'
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 500 Internal Server Error'
(0x03000000):X-Original-HTTP-Status-Code = 500
(0x03000000):Content-Type = 'text/html;charset=ISO-8859-1'
(0x03000000):Content-Language = 'sv-SE'
(0x03000000):Date = 'Wed, 21 Sep 2005 08:43:05 GMT'
(0x03000000):Server = 'Apache Coyote/1.0'
(0x03000000):Connection = 'close'
)
(0x01000000):BLOB = (
(0x03000000):UnknownParserName = ''
(0x03000000):BLOB = X'3c68746d6c3e3c686561643e3c7469746c653e41706163686520546f6d6361742f342e312e3132202d204572726f72207265706f72743c2f7469746c653e3c5354594c453e3c212d2d48317b666f6e742d66616d696c79203a2073616e732d73657269662c417269616c2c5461686f6d613b636f6c6f72203a2077686974653b6261636b67726f756e642d636f6c6f72203a20233030383662323b7d2048337b666f6e742d66616d696c79203a2073616e732d73657269662c417269616c2c5461686f6d613b636f6c6f72203a2077686974653b6261636b67726f756e642d636f6c6f72203a20233030383662323b7d20424f44597b666f6e742d66616d696c79203a2073616e732d73657269662c417269616c2c5461686f6d613b636f6c6f72203a20626c61636b3b6261636b67726f756e642d636f6c6f72203a2077686974653b7d20427b636f6c6f72203a2077686974653b6261636b67726f756e642d636f6c6f72203a20233030383662323b7d2048527b636f6c6f72203a20233030383662323b7d202d2d3e3c2f5354594c453e203c2f686561643e3c626f64793e3c68313e485454502053746174757320353030202d203c2f68313e3c48522073697a653d223122206e6f73686164653e3c703e3c623e747970653c2f623e20457863657074696f6e207265706f72743c2f703e3c703e3c623e6d6573736167653c2f623e203c753e3c2f753e3c2f703e3c703e3c623e6465736372697074696f6e3c2f623e203c753e5468652073657276657220656e636f756e746572656420616e20696e7465726e616c206572726f7220282920746861742070726576656e7465642069742066726f6d2066756c66696c6c696e67207468697320726571756573742e3c2f753e3c2f703e3c703e3c623e657863657074696f6e3c2f623e203c7072653e6a6176612e6c616e672e537472696e67496e6465784f75744f66426f756e6473457863657074696f6e3a20537472696e6720696e646578206f7574206f662072616e67653a202d310d0a096174206a6176612e6c616e672e537472696e672e737562737472696e6728537472696e672e6a61766128436f6d70696c656420436f646529290d0a096174206a6176612e6c616e672e537472696e672e737562737472696e6728537472696e672e6a61766128436f6d70696c656420436f646529290d0a09617420636f6d2e69626d2e62726f6b65722e687474706c697374656e65722e485454504c697374656e65724d616e616765722e66696e64456e747279546861744d6174636865734f757255524c28485454504c697374656e65724d616e616765722e6a6176613a333234290d0a09617420636f6d2e69626d2e62726f6b65722e687474706c697374656e65722e536572766c657446756e6374696f6e732e70726f63657373506f737428536572766c657446756e6374696f6e732e6a61766128436f6d70696c656420436f646529290d0a09617420636f6d2e69626d2e62726f6b65722e68747470736572766c65742e574d5149536572766c65742e646f506f737428574d5149536572766c65742e6a6176613a3632290d0a096174206a617661782e736572766c65742e687474702e48747470536572766c65742e736572766963652848747470536572766c65742e6a6176613a373630290d0a096174206a617661782e736572766c65742e687474702e48747470536572766c65742e736572766963652848747470536572766c65742e6a6176613a383533290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e4170706c69636174696f6e46696c746572436861696e2e696e7465726e616c446f46696c746572284170706c69636174696f6e46696c746572436861696e2e6a6176613a323437290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e4170706c69636174696f6e46696c746572436861696e2e646f46696c746572284170706c69636174696f6e46696c746572436861696e2e6a6176613a313933290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e646172645772617070657256616c76652e696e766f6b65285374616e646172645772617070657256616c76652e6a6176613a323630290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363433290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a343830290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e436f6e7461696e6572426173652e696e766f6b6528436f6e7461696e6572426173652e6a6176613a393935290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264436f6e7465787456616c76652e696e766f6b65285374616e64617264436f6e7465787456616c76652e6a6176613a313931290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363433290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a343830290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e436f6e7461696e6572426173652e696e766f6b6528436f6e7461696e6572426173652e6a6176613a393935290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264436f6e746578742e696e766f6b65285374616e64617264436f6e746578742e6a6176613a32333936290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264486f737456616c76652e696e766f6b65285374616e64617264486f737456616c76652e6a6176613a313830290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363433290d0a096174206f72672e6170616368652e636174616c696e612e76616c7665732e4572726f724469737061746368657256616c76652e696e766f6b65284572726f724469737061746368657256616c76652e6a6176613a313730290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363431290d0a096174206f72672e6170616368652e636174616c696e612e76616c7665732e4572726f725265706f727456616c76652e696e766f6b65284572726f725265706f727456616c76652e6a6176613a313732290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363431290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a343830290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e436f6e7461696e6572426173652e696e766f6b6528436f6e7461696e6572426173652e6a6176613a393935290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264456e67696e6556616c76652e696e766f6b65285374616e64617264456e67696e6556616c76652e6a6176613a313734290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e65245374616e64617264506970656c696e6556616c7665436f6e746578742e696e766f6b654e657874285374616e64617264506970656c696e652e6a6176613a363433290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a343830290d0a096174206f72672e6170616368652e636174616c696e612e636f72652e436f6e7461696e6572426173652e696e766f6b6528436f6e7461696e6572426173652e6a6176613a393935290d0a096174206f72672e6170616368652e636f796f74652e746f6d636174342e436f796f7465416461707465722e7365727669636528436f796f7465416461707465722e6a6176613a323233290d0a096174206f72672e6170616368652e636f796f74652e6874747031312e48747470313150726f636573736f722e70726f636573732848747470313150726f636573736f722e6a6176613a343035290d0a096174206f72672e6170616368652e636f796f74652e6874747031312e48747470313150726f746f636f6c24487474703131436f6e6e656374696f6e48616e646c65722e70726f63657373436f6e6e656374696f6e2848747470313150726f746f636f6c2e6a6176613a333830290d0a096174206f72672e6170616368652e746f6d6361742e7574696c2e6e65742e546370576f726b65725468726561642e72756e497428506f6f6c546370456e64706f696e742e6a61766128436f6d70696c656420436f646529290d0a096174206f72672e6170616368652e746f6d6361742e7574696c2e746872656164732e546872656164506f6f6c24436f6e74726f6c52756e6e61626c652e72756e28546872656164506f6f6c2e6a6176613a353333290d0a096174206a6176612e6c616e672e5468726561642e72756e285468726561642e6a6176613a353132290d0a3c2f7072653e3c2f703e3c48522073697a653d223122206e6f73686164653e3c68333e41706163686520546f6d6361742f342e312e31323c2f68333e3c2f626f64793e3c2f68746d6c3e'
)
)

Anyone?
Back to top
View user's profile Send private message
Devasis.Sahu
PostPosted: Wed Sep 21, 2005 1:02 am    Post subject: reply Reply with quote

Apprentice

Joined: 22 Feb 2003
Posts: 43
Location: India

Have you tried the same thing with the default port 7080. Also check of the port 1418 is somehow getting blocked on your machine/ where the broker is.....
Back to top
View user's profile Send private message Yahoo Messenger
mgk
PostPosted: Wed Sep 21, 2005 1:08 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

Change your HTTPInput node Url selector from

'HTTP://servername:1418

to something like

/myWebService

It does not want the HTTP:// or a port number. It only needs the path part of a url

Then change your HTTPRequest Node to match, from

HTTP://servername:1418

to

http://servername:1418/myWebService

Then the request node will connect to servernname:1418 and send the /myWebService part in the HTTP request line. The http input node will only see the /myWebService part and then match this to your flow that has asked for input from /myWebService and then receive that data.


Regards,
_________________
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
Kjell
PostPosted: Wed Sep 21, 2005 5:47 am    Post subject: Reply with quote

Acolyte

Joined: 26 Feb 2002
Posts: 73

I have done this now, but no difference. Still "Internal Server error".

What else can be wrong?
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Sep 21, 2005 6:00 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

Can you post the BLOB and the trace (like you did in your first post) after you have made the changes I suggested please. If you are still getting an Internal Server Error, I believe that it will have a different cause this time, so I need the new info to help with the diagnosis.

Regards,
_________________
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 Request problems
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.