BizTalk FTP - File Rename - biztalk

I need to send files using the BizTalk 2006 (non wcf) FTP adapter. After successful transmission of each file it needs to be renamed from an "A" prefix to a "U" prefix. I don't want to issue a command using wildcards because I can't be sure of other files in the destination folder.
Any ideas?
Thanks
Rob.

I am guessing that you are doing this to avoid having the file picked up by anothe rprocess while it's in transit on the wire. You have two opetions. First, in the After Put property of the FTP Send Port, type in the rename commangd. Option Two, use the Temporary Folder propery of the FTP Send Port. This temp folde ron the FTP site is where the file will be deposited during transfer. After it's all there, the file will be moved to the destination. The temporary folder will also allow you to recover from transfer failures where a connection might be lost.

Related

Is there a way we can conncet mulesoft and unix to retrive files from unix server and send via email

Can someone provide some guidance on ho we can connect mulesoft and a unix server to retrieve files from unix server and send the file or share the location of the file via mulesoft.
Thanks,
MulesSoft Is a company. I'll assume that you mean to use MuleSoft's Mule runtime and create a Mule application to implement the integration described. First determine what protocols the Unix server allows to access files. Usually it would be SFTP but it could be the insecure FTP or even HTTP. Assuming HTTP, you can use the SFTP connector listener to poll periodically for files to appear. Then use the Email connector to send the body of the file read in the previous step as an attachment.
Alternatively you could use the list files operation to read the files names and use that information to just send the locations in the email.
You can find more information about the operations in the documentation.
Documentation:
https://docs.mulesoft.com/sftp-connector/1.4/
https://docs.mulesoft.com/email-connector/1.4/

BizTalk Send File Port To Folder With Ampersand In Name

I have a requirement to add a new send port to a send port group in my BizTalk 2013 application. The send port should send to a File location with the destination folder set to \\ResearchServer\ResearchTeam\R&DReports
Although I can set the file handler settings to this path I can't save the send port. This is because BizTalk automatically generates a URI of \\ResearchServer\ResearchTeam\R&DReports which contains the invalid character & (ampersand).
Obviously one way to "fix" this would be to rename the folder but this would have serious consequences for other apps and users who access this folder (and is, quite frankly, avoiding the issue rather than finding a fix).
I've also considered creating a dynamic port and then setting the destination at runtime. However this seems extremely complicated and would require downtime on a live server.
I've looked on TechNet and StackOverflow for ideas and it seems I'm the first person to encounter any issues with ampersands in BizTalk file destinations.
Any ideas, please help!

How can I ensure a transfer is done in binary mode using the cadaver command-line tool for WebDAV upload?

I'm doing a transfer of a tar.gz file to a client WebDAV server. I want to ensure that the transfer is done in binary mode, i.e. like the "bin" option in ftp.
The man command doesn't indicate anything about the default transfer mode.
Can anyone confirm, or otherwise, that cadaver uses binary mode by default ?? I am on a Solaris 10 server.
Best regards.
WebDAV is HTTP. And in HTTP, the payload is always transferred "binary".

Sending files from server to client with ASP.NET

I am developing a C# ASP.NET 4.0 application that will reside on a Windows Server 2003. By mean of accessing this application through a network computer, any user would be able to upload files to the windows server. But also, once these files are stored on server, he/she would be able to copy these files from the windows server to another networked computer.
I have found a way to upload files to a specified location on the server disk,
but now I need to send these files that are on server disk to the client computers.
My question is: Is there any way to send or copy files from server to other client computers (not the one that is accessing the web service) without needing a program recieving those files on the client computers? FTP, WCF, cmd commands, sockets?
Any idea?
If you want users of your webapp to download files, I'd look into an "ashx generic handler." It will allow you to send files back down to clients over HTTP(s).
If you are looking to have remote users, tell your webserver to copy files to other servers ON THE SAME LAN AS THE SERVER, you would write using normal System.IO operations.
Over a LAN, if you have the correct permissions and so on, you can write to a disk on a different machine using File.Copy -- there's nothing special about that.
If we're talking about remote machines over the internet, that's a different story. Something has to be listening whether it's FTP, WCF, DropBox, etc.
If the problem is that it can be painful to get something like WCF to work from a client due to problems like firewall issues under Windows 7, you could take a different route and have the client periodically ping the server looking for new content. To give the server a point of reference, the ping could contain the name or creation date of the most recent file received. The server could reply with a list of new files, and then the client could make several WCF calls, one by one, to pull the content down. This pattern keeps all the client traffic outbound.
You can if you can run the program as an account that has access to that computer. However having this sort of access on your network that would grant access to the outside world to put an unfiltered file on your internal network is just asking to be hacked.
Finally, I decided to install a FileZilla FTP server on each client computer and my page is working very well. But another option is to create a work group in the windows server and put every client computer to work in this work group, so that Windows server have access to the computers in the same work group.
Here are some links that may help to create the work groups:
http://helpdeskgeek.com/networking/cannot-see-other-computers-on-network-in-my-network-places/
http://www.computing.net/answers/windows-2003/server-2003-workgroup-setup-/1004.html

Will direct access to a webdav-mounted file cause problems?

I'm thinking about configuring the remind calendar program so that I can use the same .reminders file from my Ubuntu box at home and from my Windows box at work. What I'm going to try to do is to make the directory on my home machine that contains the file externally visible through webdav on Apache. (Security doesn't really concern me, because my home firewall only forwards ssh, to hit port 80 my my home box, you need to use ssh tunneling.)
Now my understanding is that webdav was designed to arbitrate simultaneous access attempts. My question is whether this is compatible with direct file access from the host machine. That is, I understand that if I have two or more remote webdav clients trying to edit the same file, the webdav protocol is supposed to provide locking, so that only one client can have access, and hence the file will not be corrupted.
My question is whether these protections will also protect against local edits going through the filesystem, rather than through webdav. Should I mount the webdav directory, on the host machine, and direct all local edits through the webdav mount? Or is this unnecessary?
(In this case, with only me accessing the file, it's exceedingly unlikely that I'd get simultaneous edits, but I like to understand how systems are supposed to work ;)
If you're not accessing the files under the WebDAV protocol, you're not honoring locks set via LOCK and UNLOCK methods and therefore will open to potential to overwrite changes made by another client. This situation is described in the WebDAV RFC here: https://www.rfc-editor.org/rfc/rfc4918#section-7.2

Resources