By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

Webservice and xml generation/uploading

P: 10
Hello I am new to .net. Just want to ask how can someone upload(ie. xml) from one computer to another computer via webservice with the condition the websevice is not located in the pc where the data will be uploaded. supposing free web services will be used.


Thanks in advance.
Apr 12 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 149
Hello I am new to .net. Just want to ask how can someone upload(ie. xml) from one computer to another computer via webservice with the condition the websevice is not located in the pc where the data will be uploaded. supposing free web services will be used.


Thanks in advance.
What you are looking at is that you need a webservice that will ask for the Source machinne IP address , the source file and the target machine IP address and upload the file to that. Not sure if you can get that kind of a webservice.

But on this forum there had been discussions on FileUpload and webservices. See if this helps you.

http://www.thescripts.com/forum/thread304892.html

-ansuman sahu
Apr 12 '07 #2

P: 10
thanks for the reply

I am suppose to do something like this one...

<WebMethod()> _
Public Function UploadFile(ByVal docbinaryarray As Byte(), ByVal docname
As String) As Boolean
Dim strdocPath As String
strdocPath = "\\192.168.0.1\" +
docname
Dim objfilestream = New System.IO.FileStream(strdocPath,
System.IO.FileMode.Create, System.IO.FileAccess.ReadWrite)
objfilestream.Write(docbinaryarray, 0, docbinaryarray.Length)
objfilestream.Close()
Return True
End Function
Apr 16 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.