Author |
Message
|
new_to_wmb8 |
Posted: Fri Jul 26, 2013 1:14 am Post subject: HTTP Request (Post) ZIP files to URL |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Hi All,
I have a new requirement, In which Replacing the Ariba Data Transfer Tool with Your Own Tool, under this i have use Message Broker as own tool to do the task that is done by Ariba Data Transfer tool.
As of now Ariba sends CSV files in ZIP packages to end point systems, Now i have handle the same using message broker.
the ZIP files needs to send in batch and then posted on the site (i have the URL for the same) and i have handle the error caused by this i.e HTTP Response Code, 4xx, 5xx.
Can any one help me in understanding the above requirement  |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 26, 2013 1:32 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There are far better tools than Broker for transferring files.
Please consider using them....
Perhaps the people who gave you this requirement have not looked for off the shelf alternatives? some may not even cost and money....
Otherwise, it is a clear case of using a sledgehammer to crack a nut. _________________ 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 |
|
 |
new_to_wmb8 |
Posted: Fri Jul 26, 2013 1:35 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Actually Requirement is to replace the Ariba Tool with ESB means message broker only  |
|
Back to top |
|
 |
goffinf |
Posted: Fri Jul 26, 2013 4:19 am Post subject: |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
new_to_wmb8 wrote: |
Actually Requirement is to replace the Ariba Tool with ESB means message broker only  |
Well fine, but just because you have an ESB it doesn't follow that *every* bit of data that needs to be moved between applications needs to flow via that ESB. Think about the primary use cases for ESB and decide whether this is an appropriate one, and of not, think about alternatives (there are some obvious and probably much simpler approaches in this particular case). It's far better to use the right tool for the job that try an 'shoe-horn' every task into one.
Fraser. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 26, 2013 4:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
new_to_wmb8 wrote: |
Actually Requirement is to replace the Ariba Tool with ESB means message broker only  |
Define "Requirement". Does that mean "we've evaluated the alternatives and determined this is the best tool", does that mean "we've paid for the message broker license and are too cheap to pay for a better file moving tool" or "we barely understand what broker is but we have it and will just insist everyone use it because we're too stupid to come up with an alternative or too arrogant to listen to people telling us it's a bad choice"?
The last 2 are typical management viewpoints. You should push back on whoever's giving you this requirement and in the first case ask how they arrived at that conclusion (giving you some clue as to how to implement it) and in the others point out this is a daft idea. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 26, 2013 5:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What have you done to implement this requirement already?
Have you tried to understand the HTTP request you need to send? Have you tried to understand how to get the data you need to put into the HTTP request into Broker?
It's your requirement.
Be responsible for meeting it.
Part of that, as you've been told, is being responsible for making sure that it's met with the appropriate choice of technology.
If you've been told that all other options have been discussed and determined, and that this is the option that's available, then be responsible for figuring out how to implement it. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Mon Jul 29, 2013 1:35 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Hi All,
The requirement is given by client it self, they wants to use Message Broker Only.
so i have started creating the Message Flow as,
FileInput Node --> HTTP Request -> Trace -> FileOutput Node
the zip files and other files are getting succesfully picked up from the Input Directory, but when it reaches HTTP Request Node it is throwing the error as
Code: |
Text:CHARACTER:A Empty or invalid header found at position: &1 |
i have seen this same error at this post http://www.mqseries.net/phpBB/viewtopic.php?p=286633&sid=2829fea4517dbfa30591958782a4f0ed
the same errors i am also getting during debugging and trace. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 29, 2013 5:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
new_to_wmb8 wrote: |
Hi All,
The requirement is given by client it self, they wants to use Message Broker Only.
so i have started creating the Message Flow as,
FileInput Node --> HTTP Request -> Trace -> FileOutput Node
the zip files and other files are getting succesfully picked up from the Input Directory, but when it reaches HTTP Request Node it is throwing the error as
Code: |
Text:CHARACTER:A Empty or invalid header found at position: &1 |
i have seen this same error at this post http://www.mqseries.net/phpBB/viewtopic.php?p=286633&sid=2829fea4517dbfa30591958782a4f0ed
the same errors i am also getting during debugging and trace. |
You've constructed something. It's throwing an error. Now you need to troubleshoot and debug.
This error likely means you have the logical message tree constructed in the wrong order, or with the wrong pieces. But it's really not the full error, so it could be something else.
The information you've already gathered, with the assistance of the documentation on the bip message that includes that scrap of error text, should help you make the next changes needed. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Mon Jul 29, 2013 6:31 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Hi mqjeff,
Now what is happening is like, when the ZIP file is picked up from Input directory it is going to End of Data terminal of File Input Node and it goes to HTTP Request and it is getting terminated there.
when the Message Domain in FileInput Node as MIME, it giving the error.
when i am not putting any Message Domain in FileInput Node the debugger is getting terminated. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Mon Jul 29, 2013 6:32 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Exception list error:
Code: |
ExceptionList
RecoverableException
File:CHARACTER:/build/slot1/S800_P/src/DataFlowEngine/ImbDataFlowNode.cpp
Line:INTEGER:1154
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmFileInputNode
Name:CHARACTER:HTTPRequset_MF#FCMComposite_1_1
Label:CHARACTER:HTTPRequset_MF.File Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:/build/slot1/S800_P/src/WebServices/WSLibrary/ImbWSRequestNode.cpp
Line:INTEGER:1177
Function:CHARACTER:ImbWSRequestNode::evaluate
Type:CHARACTER:ComIbmWSRequestNode
Name:CHARACTER:HTTPRequset_MF#FCMComposite_1_2
Label:CHARACTER:HTTPRequset_MF.HTTP Request
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:/build/slot1/S800_P/src/WebServices/WSLibrary/ImbWSRequestNode.cpp
Line:INTEGER:1091
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:
ParserException
File:CHARACTER:/build/slot1/S800_P/src/MTI/MTIforBroker/MIMEParser/MIMEparser.cpp
Line:INTEGER:327
Function:CHARACTER:MIMEParser::parse()
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:5668
RecoverableException
File:CHARACTER:/build/slot1/S800_P/src/WebServices/WSLibrary/ImbMIMEHeaderParser.cpp
Line:INTEGER:159
Function:CHARACTER:ImbMIMEHeaderParser::potentialStartOfHeaderBlock
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3156
Text:CHARACTER:Empty or invalid header found at position: &1.
Insert
Type:INTEGER:2
Text:CHARACTER:2
Insert
Type:INTEGER:14
Text:CHARACTER:MIME |
|
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Jul 29, 2013 7:15 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
how about putting a compute node after the File Input node?
Then you can CONSTRUCT the right sort of HTTP message. _________________ 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 |
|
 |
|