D
David
Hi all,
I have written a webservice, and certain things need to happen in a certain
order and with a transactional nature. Ignore DB transactions at this
point...
For example...
Coming into the webservice will be an ApplicationName. Also coming in will
be some files. It can be one, it can be many. No files can be handled until
the application name has been set, (for this, I have a property, the file
handler will check this property before handling files).
Once the files have been handled, I then need to process them.
The current steps in my calling app are:
ph.ApplicationName(appname);
ph.FileCount(fileCount);
foreach (file in fileList)
{
// Ignore syntax...
ph.PutFile(bytebuffer, filename);
}
ph.ProcessFiles();
So, what is happening at the webservice itself is that it appears that
applicationname (which is populating a private property called appname) is
not set properly. It gets set, but when I come to PutFile, I check if the
appname (and filecount) have been set and if so, then PUT the files.
Am I missing something? I need to have all the values set. Especially when
it comes to handling the files, I need for a file list on the webservice,
but if it is not remembering, then I am not sure I can do it that way.
Any ideas would be appreciated.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I have written a webservice, and certain things need to happen in a certain
order and with a transactional nature. Ignore DB transactions at this
point...
For example...
Coming into the webservice will be an ApplicationName. Also coming in will
be some files. It can be one, it can be many. No files can be handled until
the application name has been set, (for this, I have a property, the file
handler will check this property before handling files).
Once the files have been handled, I then need to process them.
The current steps in my calling app are:
ph.ApplicationName(appname);
ph.FileCount(fileCount);
foreach (file in fileList)
{
// Ignore syntax...
ph.PutFile(bytebuffer, filename);
}
ph.ProcessFiles();
So, what is happening at the webservice itself is that it appears that
applicationname (which is populating a private property called appname) is
not set properly. It gets set, but when I come to PutFile, I check if the
appname (and filecount) have been set and if so, then PUT the files.
Am I missing something? I need to have all the values set. Especially when
it comes to handling the files, I need for a file list on the webservice,
but if it is not remembering, then I am not sure I can do it that way.
Any ideas would be appreciated.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available