cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a file from Remote Server

Former Member
0 Kudos

Hi All,

I want to know how we can get a file from remote server. I'm using MII 12.1 SP07.

The scenario is explained below:

Some third party application will create a xml file and saves it to its local server drive periodically. And MII needs to read that file from third party server(in same network) and will do the some manipulation on that file.

I know that I can load a file from FTP server,but that application is not saving the file in FTP server.

Also referred some below mentioned threads,but didn't find the solution:

[Thread 1|]

[Thread 2|]

Please suggest.

Regards,

Suresh Hiremath

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

The action block XMII Loader could load XML files. In MII server you need to do remote map to the remote server. Then in the action block you could load the content of the file .

Former Member
0 Kudos

Hi Seng,

Sorry for the delayed reply. I know i could able to load xml from XML Loader action block,but it is for the local project folder.

Can you tell me what exaclt is the remote mappning and please explain how can I do remote map to the rempte server in MII.

Thanks in advance.

-Suresh

Former Member
0 Kudos

hi Suresh,

Here is a way to display a file that is on a remote server

function OpenWorkInstructionsClick()

{

//window.open("http://intranet/server/directory/directory/assembly instructions.doc","WorkInstruction","menubar=1,resizable=1,width=975,height=800") ;

window.open("http://intranet/server/directory/directory/Procedure.doc","WorkInstruction","menubar=1,resizable=1,width=975,height=800") ;

}

Andy