Web Service ASMX - How to pass an Array of Objects

Posted on 2012-09-18
Last Modified: 2012-09-19
How can I pass an Array of Objects to a web service. Can you point me to an example.
I'm using a ASMX (ASP.Net Web service)
Question by:JElster
    LVL 96

    Expert Comment

    by:Bob Learned
    What version of .NET are you using?  I would use JSON with the web method to pass objects, but that depends on the framework version.
    LVL 1

    Author Comment

    Don't what to use JSON, most of the code is already written.
    LVL 96

    Assisted Solution

    by:Bob Learned
    Did you try to use an array in the web method call?
    LVL 25

    Accepted Solution

    Ienumerable should be good i guess to pass an aary.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This tutorial will show you how to add an attribute to an XML ( stream returned from a Windows Communication Foundation ( (WCF) Web Service.  Some knowled…
    In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    27 Experts available now in Live!

    Get 1:1 Help Now