Search the web
Sign In
New User? Sign Up
soapbuilders
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Sparse array interoperability   Message List  
Reply | Forward Message #5145 of 10820 |
Re: [soapbuilders] Re: Sparse array interoperability

Hi, Andrew!

I think question how sparse arrays look like and what they are is
answered. Question for me is what sender expects to get from
echoArray sending sparse array? Does he expects exactly the same
sparse array back? If it's just an array with some gaps (whatever
they are) can I fill them and return it as an usual array?

Best wishes, Paul.

--- Andrew Layman <mail@...> wrote:
> I think we had a pretty good case made here that sparse arrays have
> the
> semantics described in DCE: transmission of parts, not all, of an
> array. If
> this is difficult to implement in some SOAP support libraries, I
> recommend
> that it would be better to omit sparse arrays from this round of
> testing
> rather than invent a novel interpretation of what a sparse array
> is.
>
> Andrew Layman
> http://strongbrains.com -- Resources for Self-Education
> ----- Original Message -----
> From: "NAKAMURA, Hiroshi" <nahi@...>
> To: <soapbuilders@yahoogroups.com>
> Sent: Sunday, September 02, 2001 8:37 PM
> Subject: [soapbuilders] Re: Sparse array interoperability
>
>
> Hi,
>
> > From: Rich Salz [mailto:rsalz@...]
> > Sent: Saturday, September 01, 2001 9:41 AM
>
> > > Let me try to rephrase this. What you are saying is that the
> sparse
> > > array is the result of a "masking" operation of sorts on a
> source
> > > array?.
> >
> > Sort of.
> >
> > Think of it more like each side allocates the whole array, but
> only part
> > of it is transmitted at any one time.
> >
> > Using the "hello world" of web serivces: stock quotes.
> >
> > Client connects to server and sends up a list of 200 stocks it's
> > interested in. It sends up an array of
> <ticker,last-known-price>.
> >
> > Later on, client sends "gimme the big gainers" request. Server
> sends
> > down a sparse array of <ticker,last-known-price>. The client
> > application can just unpack that array directly on top of the
> client's
> > previous copy, updating only the changed values. In this case,
> sparse
> > arrays are used for "transmitting delta's".
> >
> > Another application is search a huge crypto keyspace, or
> SETI@HOME.
> > Everyone gets an array with "the big picture," but each worker
> machine
> > gets a sparse array that has the set of data they are working on.
> This
> > used to be real popular in the early days of distributed
> computing with
> > RPC/mandelbrot demos.
>
> I'm using SOAP4R's sparse array for "poor-man's incremental
> (differential) transmit" on a system. I could do it with
> common XML instance + DOM programming, too. I agree that
> conceptually SOAP sparse array is for these use.
>
> > > 5. Echo back as a sparse array.
> > > int[1] = 1, int[3] = 2, size = 4
> > > => int[1] = 1, int[3] = 2, size = 4
> >
> > I believe that yes, this is what you have to do. Unless of
> course you
> > change the WSDL array definition to have a default value.
>
> >From SOAP data model point of view, I agree with you. I
> almost implemented in SOAP4R. But I thought that it might
> be allowed to define limited use of sparse array in the
> echo* application level. Reason:
>
> 1. It might be hard to accept in some language.
> You cannot map ArrayOfInt to std::vector<int> directly in C++
> even if you know a WSDL defines an element as 'ArrayOfInt'.
>
> 2. Few language supports sparse array in language level
> (including Ruby.) So that language mapping is hard.
> Possibility;
>
> Client SOAP node
> --(sparse array)-->
> Server SOAP node
> --(common array with nil/Hash with length/etc)-->
> echo application
> <--(common array with nil/Hash with length/etc)--
> Server SOAP node
> <--(array/Map/etc)--
> Client SOAP node
>
> SOAP4R can accept Option 5. Others: ?
>
> Regards,
> // NaHi
>
>
> -----------------------------------------------------------------
> This group is a forum for builders of SOAP implementations to
> discuss
> implementation and interoperability issues. Please stay on-topic.
>
> To unsubscribe from this group, send an email to:
> soapbuilders-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> -----------------------------------------------------------------
> This group is a forum for builders of SOAP implementations to
> discuss implementation and interoperability issues. Please stay
> on-topic.
>
> To unsubscribe from this group, send an email to:
> soapbuilders-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Mon Sep 3, 2001 4:23 am

paulclinger@...
Send Email Send Email

Forward
Message #5145 of 10820 |
Expand Messages Author Sort by Date

... Alan Kent thinks: it would be better to omit sparse arrays from the SOAP specification. Ooops! I will go back to my hole. Alan :-) ps: I dislike sparse...
Alan Kent
ajk@...
Send Email
Sep 3, 2001
4:19 am

Hi, Andrew! I think question how sparse arrays look like and what they are is answered. Question for me is what sender expects to get from echoArray sending...
Paul Kulchenko
paulclinger@...
Send Email
Sep 3, 2001
4:23 am

Fair question. If one of the uses of a sparse array is to pass incremental updates, then the array being filled in at the receiving end would reflect the sum...
Andrew Layman
mail@...
Send Email
Sep 3, 2001
4:51 am

Is this accurate? Therefore, an "echoArray" interop test for Sec 5 encoding should be able to echo: 1) members as simple types 2) members as complex types 3)...
Matt Long
mlong@...
Send Email
Sep 3, 2001
12:57 pm

Suggestions for changes to the SOAP specification should be directed to the W3C XML Protocol Working Group. Andrew Layman http://strongbrains.com -- Resources...
Andrew Layman
mail@...
Send Email
Sep 3, 2001
4:53 am

It seems that one problem folks are having is that they think sparse arrays are a generic tool, suitable for *any* array. That's not the case. They are an...
Rich Salz
rsalz@...
Send Email
Sep 3, 2001
2:53 pm

Hi, Rich! ... That was my point too (maybe I didn't state it clearly). I don't expect that toolkit (or application) will use sparse array instead of usual...
Paul Kulchenko
paulclinger@...
Send Email
Sep 3, 2001
3:21 pm

Hello, Does Nbr. 8 make any sense? RC ... to ... implementation and interoperability issues. Please stay on-topic....
Bob Cunnings
cunnings@...
Send Email
Sep 3, 2001
3:01 pm

Hi Bob, I believe it is possible to incorporate offset + position (meaning if you don't you will have a must fault condition when this occurs albeit that the ...
Matt Long
mlong@...
Send Email
Sep 3, 2001
3:09 pm

I would tend to believe that the representation of these 3 arrays are equivalent... thoughts? <myArray SOAP-ENC:arrayType="xsd:string[3]"...
Matt Long
mlong@...
Send Email
Sep 3, 2001
3:22 pm

Hi, Matt! ... I would rather see number 3 as invalid case (apples and oranges) and I still think that sparse array is not exactly the same as usual array with...
Paul Kulchenko
paulclinger@...
Send Email
Sep 3, 2001
3:56 pm

Hi Paul, (inline) ... I can imagine cases where considerable efficiency could exist through the utilization of both. If 3 *is* valid then it must not be...
Matt Long
mlong@...
Send Email
Sep 3, 2001
5:00 pm

Hi Paul, ... I do not think so. If sparse array is not interoperable with usual array, it does not have to be an array. Hash/Map is a possibly good solution...
nahi@...
Send Email
Sep 3, 2001
11:51 pm

Hi, Hiroshi! ... If this is correct then question is "how"? How usual array should look like in this case? In my current implementation, sparse array is the...
Paul Kulchenko
paulclinger@...
Send Email
Sep 4, 2001
12:20 am

Hi Paul, ... In SOAP4R; Using low level API, user application gets an instance of SOAPArray class in either case of usual array/sparse array. Using high level...
NAKAMURA, Hiroshi
nahi@...
Send Email
Sep 4, 2001
8:00 am

... Sorry, but I disagree. Unless you have some more subtle understanding. What do *you* think they are? Unlike the other parts of Sec5, sparse arrays CAN get...
Rich Salz
rsalz@...
Send Email
Sep 4, 2001
12:15 am

I believe it is a MISTAKE to send a sparse array unless the sender and receiver both have out of band information. Sparse arrays are intended to enable...
Rich Salz
rsalz@...
Send Email
Sep 4, 2001
12:29 am

... So two possible ways forward are (1) Add something into a WSDL file saying 'this array can be sparse' (2) Introduce a different type (Map/Hash?) in the...
ajk@...
Send Email
Sep 4, 2001
12:55 am
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help