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 » Save attachment from SOAP with Attach

Post new topic  Reply to topic
 Save attachment from SOAP with Attach « View previous topic :: View next topic » 
Author Message
heng005
PostPosted: Wed Sep 21, 2011 1:02 am    Post subject: Save attachment from SOAP with Attach Reply with quote

Novice

Joined: 19 Sep 2011
Posts: 10

Hello,

i want to create a service with a soap with attachment. This service task is
1. FTP an attachment to a FTP server
2. send some data to a java process
3. reply overall result to a client

so my flow includes
- soap input node
- file output node
- java compute node
- soap reply node

Firstly, i try to use a file output node to save an attachment to localdisk by setting a Data Location field.
i've tried a lot of value such as
$Root/SOAP_Domain_Msg/Attachment
$Root/XMLNSC/soapenv:Envelope/impl:xmlAtt

all of them produce an error like:
'$Root/SOAP_Domain_Msg/Attachment' could not be used to resolve the data location in the incoming message

After fail for several times, i change my method to save an attachment.
i copy a BLOB data of an attachment to LocalEnvironment.Variable.attach first and then use a file output node to write my variable to disk.

i successfully copy an attachment BLOB data to the variable but the file output node still not work.
this time i set a Data Location field to
$LocalEnvironment/Variables/att1
$LocalEnvironment/Variables/child::att1

this time a output file is create but with no data.

Can you suggest me where shoud i research how to set a Data Location field of a file output node
or what should it be to get an attachment

Thanks in advance
Back to top
View user's profile Send private message
heng005
PostPosted: Wed Sep 21, 2011 1:20 am    Post subject: Reply with quote

Novice

Joined: 19 Sep 2011
Posts: 10

This is my ${Root} trace and below is a localenvironment i created


( ['SOAPRoot' : 0x2aaacc3955c0]
(0x01000000:Name ):Properties = ( ['SOAPPROPERTYPARSER' : 0x2aaacc4df7e0]
(0x03000000:NameValue):MessageSet = 'newMarketDataMsgSet' (CHARACTER)
====deleted=======
(0x03000000:NameValue):ContentType = 'multipart/related; type="text/xml"; boundary="----=_Part_0_362878369.1316619861338"' (CHARACTER)
====deleted=======
)
(0x01000000:Name ):HTTPInputHeader = ( ['WSINPHDR' : 0x2aaacc09b0a0]
====deleted=======
)
(0x01000000:Folder):SOAP = ( ['SOAP' : 0x2aaacc097460]
(0x01000000:Folder):Context = ( ['xmlnsc' : 0x2aaacc0f0f20]
====deleted=======
)
(0x01000000:Folder):Header =
(0x01000000:Folder):Body = ( ['xmlnsc' : 0x2aaacc0f0f20]
(0x01000000:Folder)http://news.esb.set:sendNewsRequest = (
====deleted=======
)
)
(0x01000000:Folder):Attachment = ( ['xmlnsc' : 0x2aaacc0f0f20]
(0x01000000:Folder):att1 = (
(0x01000000:Folder):MIME_Headers = (
(0x03000000:PCDataField):Content-Type = 'text/plain' (CHARACTER)
(0x03000000:PCDataField):Content-Id = 'att1' (CHARACTER)
)
(0x01000000:Name ):BLOB = ( ['none' : 0x2aaacc450b10]
(0x03000000:NameValue):BLOB = X'616263640a' (BLOB)
)
)
(0x01000000:Folder):att2 = (
(0x01000000:Folder):MIME_Headers = (
(0x03000000:PCDataField):Content-Type = 'application/octet-stream' (CHARACTER)
(0x03000000:PCDataField):Content-Id = 'att2' (CHARACTER)
)
(0x01000000:Name ):BLOB = ( ['none' : 0x2aaacc7b7a10]
(0x03000000:NameValue):BLOB = X'616263640a' (BLOB)
)
)
(0x01000000:Folder):att3 = (
(0x01000000:Folder):MIME_Headers = (
(0x03000000:PCDataField):Content-Type = 'application/octet-stream' (CHARACTER)
(0x03000000:PCDataField):Content-Id = 'att3' (CHARACTER)
)
(0x01000000:Name ):BLOB = ( ['none' : 0x2aaacc3baee0]
(0x03000000:NameValue):BLOB = X'3c6162636465666768696a2f3e0a' (BLOB)
)
)
)
)
)


=========Local Environment===========
[code]
( ['MQROOT' : 0x2aaacc15a520]
(0x01000000:Name):Variables = (
(0x03000000:NameValue):att1 = X'616263640a' (BLOB)
(0x03000000:NameValue):att2 = X'616263640a' (BLOB)
(0x03000000:NameValue):att3 = X'3c6162636465666768696a2f3e0a' (BLOB)
)
(0x01000000:Name):Destination = (
(0x01000000:Name):SOAP = (
(0x01000000:Name):Reply = (
(0x03000000:NameValue):ReplyIdentifier = X'534f4150000000000a000000000000002500000000000000' (BLOB)
)
)
(0x01000000:Name):RouterList = (
(0x01000000:Name):DestinationData = (
(0x03000000:NameValue):labelName = 'sendNews' (CHARACTER)
)
)
)
(0x01000000:Name):SOAP = (
(0x01000000:Name):Input = (
(0x01000000:Name):Transport = (
(0x01000000:Name):HTTP = (
(0x03000000:NameValue):MaxClientWaitTime = 180 (INTEGER)
)
)
)
)
)[/code]
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 » Save attachment from SOAP with Attach
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.