Hi All,
I’ve created a port to receive e-mails and i need the contents of the mail which happens to be in the xml format and i also need the attachments to be stored which needs to be uploaded to a differnt location.I use the service in wmPublic.pub.flow:getTransportInfo,and then convert it to string using “streamtostring”.When i direct this output to the console, i get both the body content of the mail as well as the attachment content.But when i add a savePipelinetoFile, all i get is either the content of the mail or attachment contents.
And as i have mentioned above i also need to save the attachments, for which i m using concat function to concatenate the path with the filename which i get from transportinfo.The same is the case here,the filename is reflected in the console and also if i add a savePipelinetoFile, but if i add a writetoFile function after this and map the filename, the filename is not reflected.
Am i actually doing the right thing,or is there any alternative for this.
Let me add, the body content of the mail will always be in the xml format, and the attachment can be of any type and also can be more than one.
The following fields are reqd from the transportinfo service:
filename, subject and the content of the email
Please advise.
Thanks,
Aishvarya
#webMethods#Integration-Server-and-ESB#webmethods-Protocol-and-Transport