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 (Post) ZIP files to URL

Post new topic  Reply to topic
 HTTP Request (Post) ZIP files to URL « View previous topic :: View next topic » 
Author Message
new_to_wmb8
PostPosted: Fri Jul 26, 2013 1:14 am    Post subject: HTTP Request (Post) ZIP files to URL Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Fri Jul 26, 2013 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Fri Jul 26, 2013 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
goffinf
PostPosted: Fri Jul 26, 2013 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Jul 26, 2013 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jul 26, 2013 5:08 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Mon Jul 29, 2013 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 29, 2013 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Mon Jul 29, 2013 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Mon Jul 29, 2013 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 29, 2013 7:15 am    Post subject: Reply with quote

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
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 (Post) ZIP files to URL
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.