Author |
Message
|
rajeshwar.tiwatri |
Posted: Tue Aug 21, 2012 8:14 am Post subject: send an attachment with the soap message using WMB6.0 |
|
|
Newbie
Joined: 21 Aug 2012 Posts: 2
|
We tried to achieve soap with attachment in MB version 6 with two scenario.
Scenario:--1
As WMB V6.0 does not have Soap Nodes ,we cannot have an output soap message with attachment.So we tried to implement it using MIME domain with attachment .
1. MQInput Node--->Compute Node ---->Http Node
Input message in sent to MQ input node and then the message is processed using Compute node .Compute node contains the code for creating MIME message in ESQL.In Compute node,we make MIME as an immediate child of OutputRoot.Then under MIME ,we have 'Parts' tag and then we have multiple 'part' tags under 'Parts'.One of the 'part' have incoming request as a BLOB and the next 'part' have attachment as a BLOB.After creating the above mentioned message structure,finally the message is giving error
2. MQInput node-->Java Compute Node-->Http Node
Input message in sent to MQ input node and then the message is processed using Java Compute node to convert the incoming message into MIME message .We create same MIME message structure as we create with ESQL in Scenario 1.Finally the message is sent to DataPower.
Reason for failure-
We were able to get the message in the output queue but when we hit Data power with the same output message we get error message as such "Illegal Character 'M'".
Can anyone suggest why this is failing.
Regards,
Rajeshwar
Last edited by rajeshwar.tiwatri on Tue Aug 21, 2012 8:35 am; edited 1 time in total |
|
Back to top |
|
 |
McueMart |
Posted: Tue Aug 21, 2012 8:20 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
Someone will be along very shortly to question why you are using an unsupported version of MB (v6) when v8 is out with lots of new functionality (Which contains SOAP nodes!), and loads of bug fixes..... |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 21, 2012 8:20 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You really need to move to at least Broker 6.1.
You are out of support on 6.0.
This is bad.
It's not clear if your method 1 is producing the same message as your method 2.
It's not clear if both are failing or if only one is failing.
The complaint about an Illegal Character 'M is likely a complaint about a windows line ending rather than a Unix line ending. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 21, 2012 8:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
You really need to move to at least Broker 6.1. |
Even 6.1 is missing key functionality. 7.0.0.2 is the first mature version of SOAP over HTTP. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
rajeshwar.tiwatri |
Posted: Wed Aug 22, 2012 1:05 am Post subject: |
|
|
Newbie
Joined: 21 Aug 2012 Posts: 2
|
Mqjeff: it is failing both cases and giving same error.
Can anyone suggest other possible options (apart from version upgrade) i can try in MB6 for SOAP attachment.
Regards,
Rajeshwar |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 22, 2012 1:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You're on the right path, except for being on the wrong path by sticking with v6.
So the question is not "What should you do instead of using MIME domain", the question is "What's wrong with your code?".
Again, any comments about 'M usually have to do with line endings.
Take a user trace. Take a trace node. Extract a copy of the message your flow is producing, rather than sending it straight to datapower.
TROUBLESHOOT. |
|
Back to top |
|
 |
|