Options

Returning an Array through web services

jwilderjwilder Member Posts: 263
edited 2009-01-28 in NAV Three Tier
I have created a codeunit and published it for web services.

For example let's say the codeunit loops through 10 records in the customer table and assigns the No. to an array. How do I return this array through a web service.

I wonder if I can use the dimension property for the Return Variable of the codeunit?

Comments

  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    Sounds like you would want to return a XMLPort.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • Options
    jwilderjwilder Member Posts: 263
    I am guessing this might be on your blog or could you send me a link on where to find more info on how to do this?
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    I am using XMLPorts in a couple of samples on my blog - but not in C#.
    I did however write a pretty detailed description as a reply to a post here:

    http://www.mibuso.com/forum/viewtopic.php?f=32&t=29557&hilit=XMLPort
    Hope that helps
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Sign In or Register to comment.