myITforum and Windows IT Pro Forums

 Webservice : Nested DS arrays

Author Message
GoddeauH

  • Total Posts : 5
  • Scores: 0
  • Reward points : 6340
  • Joined: 11/2/2015
  • Status: offline
Webservice : Nested DS arrays Tuesday, May 16, 2017 4:53 AM (permalink)
0
Hello,
I created a webservice on iSeries.
The incoming request is rather complex, so I had to define the input parameter as a nested datastructure.
3 of the nested Datastructures are arrays (can have multiple occurences).
 
I thought I could solve this by adding a "_LENGTH" field (INT(10)) before the arrays and activate the detection of LENGTH fields...
Everything works fine as long as each array has one element, or when only the most nested array has more elements.
 
The "_LENGTH" fields do always contain the dimension of the array.
Not the real count.
 
Can I make this work, or isn't this possible ?
 
Thanks a lot !
 
#1
    GoddeauH

    • Total Posts : 5
    • Scores: 0
    • Reward points : 6340
    • Joined: 11/2/2015
    • Status: offline
    Re:Webservice : Nested DS arrays Friday, May 19, 2017 8:25 AM (permalink)
    0
    I discovered the problem is not occuring when I removed the "_LENGTH" fields on the input-arrays 
     
    Kind regards
    <message edited by GoddeauH on Friday, May 19, 2017 8:53 AM>
     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2017 ASPPlayground.NET Forum Version 3.9