473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Webservice and xml generation/uploading

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
2 1127
ansumansahu
149 100+
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
Zyronne
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

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

Similar topics

7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
0
by: Zyronne | last post by:
sorry mods/admins I posted this twice since I misposted the first one in the VB area. Hello I am new to .net. Just want to ask how can someone upload(ie. xml) from one computer to another computer...
1
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a web service hosting a WCF library, which works fine but produced a strange signature when interacting with vs 2005/2.0 clients. My method takes 3 strings and returns a bool as below. ...
5
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.