Sending a class as a parameter in Webservice


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Sending a class as a parameter in Webservice

  1. #1
    Alwin Guest

    Sending a class as a parameter in Webservice


    Hello,
    Is it possible to send an object (VB class or whatever) as a parameter
    in a WebService Method. If you know about that can you please send some sample
    code related to that.
    Thanks a lot,
    Alwin

  2. #2
    Randy Charles Morin Guest

    Re: Sending a class as a parameter in Webservice

    Yes you can, so long as the class supports marshal-by-value.
    Sorry, I don't have any sample code close at hand.
    --
    Randy Charles Morin
    http://www.kbcafe.com

    Feel free to contact me by private email or messenger
    morin_randy@hotmail.com
    randy@kbcafe.com

    "Alwin" <jalwinjs@hotmail.com> wrote in message news:3c6bfcf4$1@10.1.10.29...
    >
    > Hello,
    > Is it possible to send an object (VB class or whatever) as a parameter
    > in a WebService Method. If you know about that can you please send some sample
    > code related to that.
    > Thanks a lot,
    > Alwin




  3. #3
    Christian Weyer Guest

    Re: Sending a class as a parameter in Webservice

    Have a look at www.xmlwebservices.cc - there is a sample for returning
    an array of custom objects.

    HTH,
    Christian
    ---------------------------------
    .NET XML Web Services Repertory
    http://www.xmlwebservices.cc/
    ---------------------------------

    Randy Charles Morin wrote:

    > Yes you can, so long as the class supports marshal-by-value.
    > Sorry, I don't have any sample code close at hand.
    > --
    > Randy Charles Morin
    > http://www.kbcafe.com
    >
    > Feel free to contact me by private email or messenger
    > morin_randy@hotmail.com
    > randy@kbcafe.com
    >
    > "Alwin" <jalwinjs@hotmail.com> wrote in message news:3c6bfcf4$1@10.1.10.29...
    >
    >>Hello,
    >> Is it possible to send an object (VB class or whatever) as a parameter
    >>in a WebService Method. If you know about that can you please send some sample
    >>code related to that.
    >>Thanks a lot,
    >>Alwin



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center