Webservice and xml generation/uploading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zyronne
    New Member
    • Apr 2007
    • 10

    Webservice and xml generation/uploading

    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.
  • ansumansahu
    New Member
    • Mar 2007
    • 149

    #2
    Originally posted by Zyronne
    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.ht ml

    -ansuman sahu

    Comment

    • Zyronne
      New Member
      • Apr 2007
      • 10

      #3
      thanks for the reply

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

      <WebMethod()> _
      Public Function UploadFile(ByVa l docbinaryarray As Byte(), ByVal docname
      As String) As Boolean
      Dim strdocPath As String
      strdocPath = "\\192.168.0.1\ " +
      docname
      Dim objfilestream = New System.IO.FileS tream(strdocPat h,
      System.IO.FileM ode.Create, System.IO.FileA ccess.ReadWrite )
      objfilestream.W rite(docbinarya rray, 0, docbinaryarray. Length)
      objfilestream.C lose()
      Return True
      End Function

      Comment

      Working...