Results 1 to 6 of 6

Thread: XML as parameter to WebService(Resolved)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Resolved XML as parameter to WebService(Resolved)

    Hi all,
    I've made a web service in VB.Net which can read an XML file at a predefined location and take the required action. What I am interested in knowing is: Can I pass the XML document itself to the web service?
    To make myself very clear I will detail a bit more here;
    WebService:
    Public Function FuncA(XML document) : Calls a private function which processes the XML data.

    Client App:
    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim test As New localhost.ExampleWebService
    3.         test.FuncA(XMLObject)
    4. End Sub
    I think this makes clear what I want to achieve. If any further clarifications are required please let me know.
    Thanks.
    Last edited by rjv_rnjn; May 12th, 2005 at 01:36 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: XML as parameter to WebService

    Try using an XMLDocument Object?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: XML as parameter to WebService

    Can you giving any links to begin with? In any case would be trying that tommorrow. Thanks.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: XML as parameter to WebService


  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: XML as parameter to WebService

    Oh, that was so easy... I'm very thankful mendhak that you took the pain to answer such question and I'm sorry for not trying this possibility... Thanks anyways to all of you.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: XML as parameter to WebService(Resolved)

    Hey, we all learn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width