BizTalk Server General - Load a known file from within the orchestration?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2005 > Load a known file from within the orchestration?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Load a known file from within the orchestration?
doron

2005-09-26, 2:47 am

Hi,

I have an orchestration which receives a message that has a file name
field in it.

I need to "load" the file from a know folder into the orchestration
(any file type, not XML) so I can combine it with the original message
(which consists a byte array for the file content) before it sends it
to an external web service.

How can I load file X from folder Y manualy from the orchestration
itself? (The file is waiting in Y folder)

Thank you,

Doron.

Greg

2005-09-26, 5:59 pm

You could write a helper class (or suite of classes) which you can use
within your orchestration (using the expression shape for example) to
carry out the required functionality.

Greg.

doron

2005-09-26, 5:59 pm

My problem:

I'm getting a request which looks like that:

Class File
{
string data1;
string data2;
Attachment attach;
}

Class Attachment
{
string data3;
byte[] filedata;
string data4;
}


The request arrives with all the data, except the filedata which I'm
getting using my class (As Greg suggested)

Problem:

Request.attach.filedata is not accessible ! all I can see is:

Request.data1, Request.data2 and Request.attach

How can I load the internal data stream to the request message? (inside
the attach property)

Thank you,

Doron

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com