PermaLink Limits in LotusScript .....Doh!03/26/2008 08:55:37 AM
Writing Web Services with LotusScript is fun. However, when creating real life Methods, you run into a few limits in LotusScript. Web Service Methods are Function in LotusScript so we have the same limits. First when passing Notes document data to your Method you may want to use an Array to hold the field values. Unfortunately, there is no support for Arrays returned from a Function so passing document values around is harder. Also, if you want to just call a Function with a list of document value parmeters but there is a limit of 31 parameters. OK Who can a blame for these limits that make Web Services harder to use in the real world? Well I guess it's me. Doh!

Commentsv

1. Julian Robichaux03/26/2008 05:29:45 PM
Homepage: http://www.nsftools.com


Gary -

You can use arrays as method parameters or return values by using the corresponding Array_Holder class (probably StringArray_Holder for your situation). Or you could just have the array as a part of a complex data type. There are examples here:

{ Link }
{ Link }

Personally, I think I'd use a complex data type in both cases if I was trying to pass around Notes Document data. I can't think of a situation where I would EVER write a function/method that had even close to 31 parameters.

- Julian




2. Gary Devendorf03/28/2008 03:09:53 PM
Homepage: http://interoptips.com


Thanks Julian. When I'm showing code demos, it easier to show a document as a list of parameters. Also, some applications don't handel complext data type when call web services.

However, you are right, don't use a long parameter list if you don't have to.




Enter Comments^



Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:cool: :-p :huh: :rolleyes: ;-) :-D :-( :laugh: :cry: :-\ :-o :-x :grin: :angry: :-) :emb:






Remember me    

GaryDev
The blog is hosted by the ADVISOR NETWORK.
By Gary Devendorf
Recent Entries
Calendar
August 2008
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
14
15
16
17
18
19
20
22
23
24
25
26
27
29
30
31
Monthly Archive
ADVISOR.com
ADVISOR
MSDN Blogs
The BlogRoll
Lotus Domino ND6 RSS News Feed RSS Comments Feed Geo URL RSS Validator BlogSphere
Powered by
Blogsphere