|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Working with SOAP with Attachment content |
« View previous topic :: View next topic » |
Author |
Message
|
pottas |
Posted: Tue Mar 05, 2013 2:52 am Post subject: Working with SOAP with Attachment content |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Some details of my setup, we are running the following Broker version/configuration:
WebSphere Message Broker Toolkit - Message Broker
Version: 7.0.0.2
Build id: 7.0.0.2-20101130_1524
In short, my requirement is a as follows: I get a SwA message in on an exposed Soap Input, and I want to end up with only the attachment content on a queue in an XML format.
Properties of the SwA Message (the attachment):
Content Type: text/xml
Part: Attachment
Type: MIME
ContentId: Id1
[The content of the XML attachment is really simple, an XML message I created for testing purposes]
I end up at a stage with the attached content in InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB
So, I have an ESQL node where try to CAST the above to an XML string, and put only this string on a queue for further processing.
I have tried a number of statements, but I simply just end up with a string like:
<DBMESSAGE><MessageIn>X'52464820020000002400000022020000b5010000202020202020202000000000b8040000'</MessageIn></DBMESSAGE>
I have tried something like :
Code: |
SET OutputRoot.XMLNSC.DBMESSAGE.MessageIn = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding) |
I also tried the following code extract:
Code: |
DECLARE vMsg BLOB;
SET vMsg = ASBITSTREAM(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB CCSID InputRoot.Properties.CodedCharSetId Encoding InputRoot.Properties.Encoding);
DECLARE vMSG_STRING CHAR;
SET vMSG_STRING = CAST(vMsg AS CHAR);
SET OutputRoot.XMLNSC.DBMESSAGE.MessageIn = vMSG_STRING; |
So, yes, I don't always understand casting, and yes, I do need to read up on it, but my plea is simple, because I know I miss something very small.
Thanks in advance
Jacques |
|
Back to top |
|
 |
kimbert |
Posted: Tue Mar 05, 2013 3:04 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
What is the text encoding ( CCSID ) of the XML in this BLOB? ( your code assumes that it is the same as the text encoding of the input message ).
In order for us to provide useful advice we are going to need the actual BLOB and the actual values of InputRoot.Properties.CodedCharSetId/Encoding. The best way to get those is to insert a Trace node into your flow. |
|
Back to top |
|
 |
pottas |
Posted: Tue Mar 05, 2013 3:11 am Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Thanks kimbert, here's the trace, and right at the bottom a dump of my InputRoot.Properties.
Code: |
( ['MQROOT' : 0x1a766960]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1b572d8]
(0x03000000:NameValue):MessageSet = 'ProfileBeneficiaryImport_2013-05-12_ENT_MSP' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2013-03-05 11:07:39.490' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = '' (CHARACTER)
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x1a7773b8]
(0x03000000:NameValue):SourceQueue = 'PBI.UPLOADFILE.REQ' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Format = 'MQHRF2 ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d51204c4f43414c514d2020202020e185355120003423' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'LOCALQM ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'cc091763 ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'16010515000000490f0976bd42be0d64633b0b1373030000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'I\7.0\bin\DataFlowEngine.exe' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2013-03-05' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '11:07:39.490' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Name ):MQRFH2 = ( ['MQHRF2' : 0x1a76bde0]
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Format = ' ' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Flags = 0 (INTEGER)
(0x03000000:NameValue):NameValueCCSID = 1208 (INTEGER)
(0x01000000:Name ):usr = (
(0x01000000:Name):client = (
(0x01000000:Name):httpRequestIdentifier = (
(0x02000000:Value): = 'X'534f41500c0000000100000000000000a80d000000000000'' (CHARACTER)
)
(0x01000000:Name):operationRequest = (
(0x02000000:Value): = 'UploadFile' (CHARACTER)
)
(0x01000000:Name):isClient = (
(0x02000000:Value): = 'TRUE' (CHARACTER)
)
(0x01000000:Name):type = (
(0x02000000:Value): = 'Soap' (CHARACTER)
)
(0x01000000:Name):soapVersion = (
(0x02000000:Value): = '1.1' (CHARACTER)
)
(0x01000000:Name):EC2 = (
(0x01000000:Name):NS2 = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/Infrastructure/2008/09/EnterpriseContext' (CHARACTER)
)
(0x01000000:Name):ContextInfo = (
(0x01000000:Name):ProcessContextId = (
(0x02000000:Value): = '' (CHARACTER)
)
(0x01000000:Name):ExecutionContextId = (
(0x02000000:Value): = '13f83df6-3f86-44cb-a570-2d430081017f' (CHARACTER)
)
)
(0x01000000:Name):RequestOriginator = (
(0x01000000:Name):MachineIPAddress = (
(0x02000000:Value): = '172.31.17.55' (CHARACTER)
)
(0x01000000:Name):UserPrincipleName = (
(0x02000000:Value): = 'NT AUTHORITY\NETWORK SERVICE' (CHARACTER)
)
(0x01000000:Name):MachineDNSName = (
(0x02000000:Value): = 'NBPKMOBBNKQA01' (CHARACTER)
)
(0x01000000:Name):ChannelId = (
(0x02000000:Value): = '69' (CHARACTER)
)
)
(0x01000000:Name):InstrumentationInfo = (
(0x01000000:Name):ParentInstrumentationId = (
(0x02000000:Value): = '243f3ac1-bdf8-498c-a7ca-1a9242a93657' (CHARACTER)
)
(0x01000000:Name):ChildInstrumentationId = (
(0x02000000:Value): = '' (CHARACTER)
)
)
)
(0x01000000:Name):EC1 = (
(0x01000000:Name):NS3 = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/Infrastructure/2006-11-01/EnterpriseContext' (CHARACTER)
)
(0x01000000:Name):ExecutionContextID = (
(0x02000000:Value): = '13f83df6-3f86-44cb-a570-2d430081017f' (CHARACTER)
)
(0x01000000:Name):SourceInfo = (
(0x01000000:Name):ChannelID = (
(0x02000000:Value): = '69' (CHARACTER)
)
)
(0x01000000:Name):SecurityInfo = (
(0x01000000:Name):Ticket = (
(0x01000000:Name):Identity = (
(0x02000000:Value): = '7745359164' (CHARACTER)
)
(0x01000000:Name):AuthenticationLOC = (
(0x02000000:Value): = '8' (CHARACTER)
)
(0x01000000:Name):SessionSequenceNr = (
(0x02000000:Value): = '11' (CHARACTER)
)
(0x01000000:Name):ExpiryDateTime = (
(0x02000000:Value): = '2012-06-06T02:40:33.427' (CHARACTER)
)
(0x01000000:Name):IdentifierType = (
(0x02000000:Value): = 'PSI' (CHARACTER)
)
(0x01000000:Name):TicketSignature = (
(0x02000000:Value): = '1E500CD36079B5D69F8A874E2F36C5D4C6307535' (CHARACTER)
)
)
)
(0x01000000:Name):InstrumentationInfo = (
(0x01000000:Name):InstrumentationContextID = (
(0x02000000:Value): = '243f3ac1-bdf8-498c-a7ca-1a9242a93657' (CHARACTER)
)
)
)
(0x01000000:Name):soapNamespace = (
(0x02000000:Value): = 'http://schemas.xmlsoap.org/soap/envelope/' (CHARACTER)
)
)
(0x01000000:Name):nameSpace = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport' (CHARACTER)
)
(0x01000000:Name):SOAPEnvelope = (
(0x01000000:Name):Context = (
(0x01000000:Name):operation = (
(0x02000000:Value): = 'UploadFile' (CHARACTER)
)
(0x01000000:Name):operationType = (
(0x02000000:Value): = 'REQUEST_RESPONSE' (CHARACTER)
)
(0x01000000:Name):portType = (
(0x02000000:Value): = 'IProfileBeneficiaryImport' (CHARACTER)
)
(0x01000000:Name):portTypeNamespace = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport' (CHARACTER)
)
(0x01000000:Name):port = (
(0x02000000:Value): = 'ProfileBeneficiaryImportSoapPort' (CHARACTER)
)
(0x01000000:Name):service = (
(0x02000000:Value): = 'ProfileBeneficiaryImport' (CHARACTER)
)
(0x01000000:Name):fileName = (
(0x02000000:Value): = 'C:\ProgramData\Application Data\IBM\MQSI\components\MYBRK\89f8ea35-3d01-0000-0080-cfb25ae08c8b\config\XSD\ProfileBeneficiaryImport_2013-05-12_ENT_MSP/za/co/nednet/it/contracts/services/businessexecution/_20130512/profilebeneficiaryimport/ProfileBeneficiaryImport_2013-05-12_v1.wsdl' (CHARACTER)
)
(0x01000000:Name):SOAP_Version = (
(0x02000000:Value): = '1.1' (CHARACTER)
)
(0x01000000:Name):Namespace = (
(0x01000000:Name):soapenv = (
(0x02000000:Value): = 'http://schemas.xmlsoap.org/soap/envelope/' (CHARACTER)
)
(0x01000000:Name):prof = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport' (CHARACTER)
)
(0x01000000:Name):ent = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/Infrastructure/2008/09/EnterpriseContext' (CHARACTER)
)
)
(0x01000000:Name):_XmlDeclaration = (
(0x01000000:Name):Version = (
(0x02000000:Value): = '1.0' (CHARACTER)
)
(0x01000000:Name):Encoding = (
(0x02000000:Value): = 'UTF-8' (CHARACTER)
)
)
)
(0x01000000:Name):Header = (
(0x01000000:Name):EnterpriseContext = (
(0x01000000:Name):NS3 = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/Infrastructure/2006-11-01/EnterpriseContext' (CHARACTER)
)
(0x01000000:Name):ExecutionContextID = (
(0x02000000:Value): = '13f83df6-3f86-44cb-a570-2d430081017f' (CHARACTER)
)
(0x01000000:Name):SourceInfo = (
(0x01000000:Name):ChannelID = (
(0x02000000:Value): = '69' (CHARACTER)
)
)
(0x01000000:Name):SecurityInfo = (
(0x01000000:Name):Ticket = (
(0x01000000:Name):Identity = (
(0x02000000:Value): = '7745359164' (CHARACTER)
)
(0x01000000:Name):AuthenticationLOC = (
(0x02000000:Value): = '8' (CHARACTER)
)
(0x01000000:Name):SessionSequenceNr = (
(0x02000000:Value): = '11' (CHARACTER)
)
(0x01000000:Name):ExpiryDateTime = (
(0x02000000:Value): = '2012-06-06T02:40:33.427' (CHARACTER)
)
(0x01000000:Name):IdentifierType = (
(0x02000000:Value): = 'PSI' (CHARACTER)
)
(0x01000000:Name):TicketSignature = (
(0x02000000:Value): = '1E500CD36079B5D69F8A874E2F36C5D4C6307535' (CHARACTER)
)
)
)
(0x01000000:Name):InstrumentationInfo = (
(0x01000000:Name):InstrumentationContextID = (
(0x02000000:Value): = '243f3ac1-bdf8-498c-a7ca-1a9242a93657' (CHARACTER)
)
)
)
(0x01000000:Name):EnterpriseContext = (
(0x01000000:Name):NS2 = (
(0x02000000:Value): = 'http://contracts.it.nednet.co.za/Infrastructure/2008/09/EnterpriseContext' (CHARACTER)
)
(0x01000000:Name):ContextInfo = (
(0x01000000:Name):ProcessContextId = (
(0x02000000:Value): = '' (CHARACTER)
)
(0x01000000:Name):ExecutionContextId = (
(0x02000000:Value): = '13f83df6-3f86-44cb-a570-2d430081017f' (CHARACTER)
)
)
(0x01000000:Name):RequestOriginator = (
(0x01000000:Name):MachineIPAddress = (
(0x02000000:Value): = '172.31.17.55' (CHARACTER)
)
(0x01000000:Name):UserPrincipleName = (
(0x02000000:Value): = 'NT AUTHORITY\NETWORK SERVICE' (CHARACTER)
)
(0x01000000:Name):MachineDNSName = (
(0x02000000:Value): = 'NBPKMOBBNKQA01' (CHARACTER)
)
(0x01000000:Name):ChannelId = (
(0x02000000:Value): = '69' (CHARACTER)
)
)
(0x01000000:Name):InstrumentationInfo = (
(0x01000000:Name):ParentInstrumentationId = (
(0x02000000:Value): = '243f3ac1-bdf8-498c-a7ca-1a9242a93657' (CHARACTER)
)
(0x01000000:Name):ChildInstrumentationId = (
(0x02000000:Value): = '' (CHARACTER)
)
)
)
)
(0x01000000:Name):Attachment = (
(0x01000000:Name):Id1 = (
(0x01000000:Name):MIME_Headers = (
(0x01000000:Name):Content-Type = (
(0x02000000:Value): = 'text/xml; charset=us-ascii' (CHARACTER)
)
(0x01000000:Name):Content-Transfer-Encoding = (
(0x02000000:Value): = '7bit' (CHARACTER)
)
(0x01000000:Name):Content-Id = (
(0x02000000:Value): = 'Id1' (CHARACTER)
)
)
(0x01000000:Name):BLOB = (
(0x01000000:Name):BLOB = (
(0x02000000:Value): = '3c5765627370686572653e3c4f7065726174696f6e616c3e6161613c2f4f7065726174696f6e616c3e3c2f5765627370686572653e' (CHARACTER)
)
)
)
)
)
(0x01000000:Name):urlXXX = (
(0x02000000:Value): = '' (CHARACTER)
)
)
(0x01000000:Name ):mcd = (
(0x01000000:Name):Msd = (
(0x02000000:Value): = 'xmlnsc' (CHARACTER)
)
(0x01000000:Name):Set = (
(0x02000000:Value): = 'ProfileBeneficiaryImport_2013-05-12_ENT_MSP' (CHARACTER)
)
(0x01000000:Name):Type = (
(0x02000000:Value): = '' (CHARACTER)
)
(0x01000000:Name):Fmt = (
(0x02000000:Value): = '' (CHARACTER)
)
)
(0x01000000:Name ):psc = (
(0x01000000:Name):Topic = (
(0x02000000:Value): = '' (CHARACTER)
)
)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x1a765c70]
(0x01000000:Folder)http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport:UploadFileRq = (
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:NS1 = 'http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport' (CHARACTER)
(0x03000000:PCDataField )http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport:ProfileNr = '11' (CHARACTER)
(0x03000000:PCDataField )http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport:AttachmentContent = 'XML' (CHARACTER)
(0x03000000:PCDataField )http://contracts.it.nednet.co.za/services/business-execution/2013-05-12/ProfileBeneficiaryImport:WaiveCaptureCharges = 'true' (CHARACTER)
)
)
) |
Properties
Code: |
MessageSet:CHARACTER:ProfileBeneficiaryImport_2013-05-12_ENT_MSP
MessageType:CHARACTER:
MessageFormat:CHARACTER:
Encoding:INTEGER:546
CodedCharSetId:INTEGER:1208
Transactional:BOOLEAN:true
Persistence:BOOLEAN:false
CreationTime:TIMESTAMP:java.util.GregorianCalendar[time=1362474459490,areFieldsSet=true,
areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[
id="Africa/Harare",offset=7200000,dstSavings=0,useDaylight=false,transitions=3,
lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2013,
MONTH=2,WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=5,DAY_OF_YEAR=?,DAY_OF_WEEK=?,
DAY_OF_WEEK_IN_MONTH=?,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MINUTE=7,SECOND=39,
MILLISECOND=490,ZONE_OFFSET=?,DST_OFFSET=?]
ExpirationTime:INTEGER:-1
Priority:INTEGER:0
ReplyIdentifier:BLOB:[B@68886888
ReplyProtocol:CHARACTER:MQ
Topic:CHARACTER:
ContentType:CHARACTER:
IdentitySourceType:CHARACTER:
IdentitySourceToken:CHARACTER:
IdentitySourcePassword:CHARACTER:
IdentitySourceIssuedBy:CHARACTER:
IdentityMappedType:CHARACTER:
IdentityMappedToken:CHARACTER:
IdentityMappedPassword:CHARACTER:
IdentityMappedIssuedBy:CHARACTER: |
|
|
Back to top |
|
 |
kimbert |
Posted: Tue Mar 05, 2013 4:32 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please use the edit button and add code tags around that. |
|
Back to top |
|
 |
pottas |
Posted: Tue Mar 05, 2013 6:17 am Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
kimbert, my apologies, will to the code-tag-thing in future when posting.
Ok, I have tried some more options, but I get the same result.
Code: |
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER CCSID 1208);
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId);
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER ENCODING 273);
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER ENCODING InputRoot.Properties.Encoding);
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId Encoding InputRoot.Properties.Encoding);
SET OutputRoot.XMLNSC.sentData.XML_msg = CAST(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB AS CHARACTER CCSID 1208 Encoding 273);
|
[/code] |
|
Back to top |
|
 |
pottas |
Posted: Fri Mar 08, 2013 12:52 am Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Ok, I got it....
Methinks, I didn't really think about it...
So, this is simply in order to assist someone that might face the same issue in future.
I just added the below statement to my ESQL node:
Code: |
CREATE LASTCHILD OF OutputRoot DOMAIN('XMLNSC') PARSE(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB); |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 08, 2013 2:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
pottas wrote: |
Ok, I got it....
Methinks, I didn't really think about it...
So, this is simply in order to assist someone that might face the same issue in future.
I just added the below statement to my ESQL node:
Code: |
CREATE LASTCHILD OF OutputRoot DOMAIN('XMLNSC') PARSE(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB); |
|
shouldn't it be:
Code: |
CREATE LASTCHILD OF OutputRoot.XMLNSC DOMAIN('XMLNSC') PARSE(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB); |
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
mgk |
Posted: Fri Mar 08, 2013 2:43 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Quote: |
shouldn't it be:
Code:
CREATE LASTCHILD OF OutputRoot.XMLNSC DOMAIN('XMLNSC') PARSE(InputRoot.MQRFH2.usr.SOAPEnvelope.Attachment.Id1.BLOB.BLOB); |
No, because that would create another XMLNSC parser beneath OutputRoot.XMLNSC.
However, I am curious why the OP is creating an entire SwA message inside an RFH2 header, rather than as a message following the RFH2? Best practices for SOAP messages (including SwA) over WMQ are documented in the MQ Service Definition support pac: http://www-01.ibm.com/support/docview.wss?uid=swg24017518
Kind 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|