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.

Messages

  Messages Help
Advanced
Sparse array interoperability   Message List  
Reply Message #4948 of 10820 |
Hi All,

I'm trying to echo sparse array as part of interop test round 2 but
I get wrong answers from all the servers. I've used echoArrayStruct
service with only some members of array filled. Here is the message:

<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema" >
<SOAP-ENV:Body>
<ns0:echoStructArray xmlns:ns0="http://soapinterop.org/" >
<inputStructArray SOAP-ENC:arrayType="ns1:SOAPStruct[6]"
xmlns:ns1="http://soapinterop.org/xsd" >
<arg xsi:type="ns1:SOAPStruct" SOAP-ENC:position="[2]">
<varString xsi:type="ns2:string"
xmlns:ns2="http://www.w3.org/2001/XMLSchema" >STRING</varString>
<varInt xsi:type="ns3:int"
xmlns:ns3="http://www.w3.org/2001/XMLSchema" >1</varInt>
<varFloat xsi:type="ns4:float"
xmlns:ns4="http://www.w3.org/2001/XMLSchema" >1</varFloat>
</arg>
<arg xsi:type="ns1:SOAPStruct" SOAP-ENC:position="[4]">
<varString xsi:type="ns5:string"
xmlns:ns5="http://www.w3.org/2001/XMLSchema" >STRING</varString>
<varInt xsi:type="ns6:int"
xmlns:ns6="http://www.w3.org/2001/XMLSchema" >2</varInt>
<varFloat xsi:type="ns7:float"
xmlns:ns7="http://www.w3.org/2001/XMLSchema" >2</varFloat>
</arg>
</inputStructArray>
</ns0:echoStructArray>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It send array of size 6 with only two elements defined at positions 2
and 4. Some SOAP implementations return only array of size 2 and the
other arrays of the correct size but with elements stored in first two
members.

I see no problem in message. Do the server implement sparse arrays? Or
where is the problem?

Thanks,

Martin Frydl
Idoox




Fri Aug 17, 2001 4:39 pm

martin@...
Send Email Send Email

Message #4948 of 10820 |
Expand Messages Author Sort by Date

Hi All, I'm trying to echo sparse array as part of interop test round 2 but I get wrong answers from all the servers. I've used echoArrayStruct service with...
Martin Frydl
martin@...
Send Email
Aug 17, 2001
4:41 pm

Hi, Martin! ... SOAP::Lite should return array of size 4 with two elements stored at positions 2 and 4. Is it wrong? btw, looks like an easy DoS attack: <array...
Paul Kulchenko
paulclinger@...
Send Email
Aug 17, 2001
5:02 pm

... All of the servers? Axis should return (omitting irrelevant details): <item xsi:nil="true"/> <item xsi:nil="true"/> <item href="#id1"/> <item...
Sam Ruby
rubys@...
Send Email
Aug 17, 2001
5:13 pm

Hi all, ... SOAP4R should return like this, too. For now, using SOAP4R, users cannot distinguish sparse array from common array. So echo2DStringArray of...
NAKAMURA, Hiroshi
nahi@...
Send Email
Aug 20, 2001
3:51 am

Hiroshi, you are concerned about "how you can transmit 'nil' itself". You see, a sparse array is just an array where some positions are nil so that's exactly...
Jacek Kopecky
jacek@...
Send Email
Aug 20, 2001
8:41 am

Hi Jacek, ... Thank you for your explanation. I understand it like below; In SOAP data model. 1. sparse-array is only an array with element omission. 2....
NAKAMURA, Hiroshi
nahi@...
Send Email
Aug 20, 2001
11:52 am

... Hi Paul! It is kinda hard to have an element at position 4 in an array of size 4. ; -) SOAP::Lite seems to solve this dilemma by returning these elements...
Sam Ruby
rubys@...
Send Email
Aug 17, 2001
5:13 pm

hi, Sam! ... ok, ok, my math is bad today ;) ... No, it does it right. btw, as soon as you online, maybe you can answer another interop question. I have an...
Paul Kulchenko
paulclinger@...
Send Email
Aug 17, 2001
6:51 pm

Hi Paul, you are right, but the array should have size 6, not 4. Also positions are not correct: My array: [0]=- [1]=- [2]=something [3]=- [4]=something [5]=- ...
Martin Frydl
martin@...
Send Email
Aug 17, 2001
5:35 pm

Hi, Martin! Could you try again please? It was an illusion ;) Best wishes, Paul. ... __________________________________________________ Do You Yahoo!? Make...
Paul Kulchenko
paulclinger@...
Send Email
Aug 17, 2001
5:47 pm

Hi Sam, I'm sorry, you are right. The problem with Axis is on my side. But there is still one problem with Axis. The first element in returned messages...
Martin Frydl
martin@...
Send Email
Aug 17, 2001
5:50 pm

Hello Paul, now the side and positions are OK, but I think that this is not correct: <item xsi:type="namesp2:SOAPStruct"/> I think this means SOAPStruct with...
Martin Frydl
martin@...
Send Email
Aug 17, 2001
6:23 pm

Hi, Martin! ... I agree with you (except that xsi:null should be "1", not "true"). Here is what I have: <SOAP-ENC:Array SOAP-ENC:arrayType="xsd:ur-type[6]" ...
Paul Kulchenko
paulclinger@...
Send Email
Aug 17, 2001
6:42 pm

Hello, Sparse arrays aren't supported yet in the WM implementation. RC...
Bob Cunnings
cunnings@...
Send Email
Aug 17, 2001
6:26 pm

... messages declares ... Hmmm. I thought we fixed that a while back. Here's what I currently get back for the request: <?xml version="1.0"...
Sam Ruby
rubys@...
Send Email
Aug 17, 2001
6:28 pm

Hi Paul: That's actually because we didn't put an EchoMapArray method into our test server, just EchoMap. :) I just checked one in - Sam, can you update...
Glen Daniels
gdaniels@...
Send Email
Aug 17, 2001
7:01 pm

Hi Paul, Your dump looks correct, but I still get empty structures, not null ones from your end-point: <namesp1:echoStructArrayResponse...
Martin Frydl
martin@...
Send Email
Aug 20, 2001
9:43 am

The SOAP 1.1 specification does not justify some of the assumptions made below. In particular, the below goes wrong at step 2. Element omission does not...
Andrew Layman
mail@...
Send Email
Aug 24, 2001
4:52 pm

Hi Andrew, Thank you for your response. I was looking forward to hear someone's view. ... made ... omission ... absence. I see. This is my first...
nahi@...
Send Email
Aug 25, 2001
3:22 pm

Many programming languages use "null" to represent the omission of information. For example, in C++, Java, C# etc, arrays which have values in some cells and...
Andrew Layman
mail@...
Send Email
Aug 25, 2001
5:25 pm

You might also be interested in a post I recently made to XML-Dist-App: http://lists.w3.org/Archives/Public/xml-dist-app/2001Aug/0201.html . While the subject...
Andrew Layman
mail@...
Send Email
Aug 25, 2001
5:48 pm

Hi, Andrew! ... While I agree that it's not a "sparse array", multiple representations on wire can map to the same representation in the language, and...
Paul Kulchenko
paulclinger@...
Send Email
Aug 25, 2001
6:00 pm

Andrew, Can an array utilize offset + position? <myArray SOAP-ENC:arrayType="xsd:string[10]" SOAP-ENC:offset[4]> <item position="[6]">p6</item> <item...
Matt Long
mlong@...
Send Email
Aug 26, 2001
11:00 am

Hi Andrew, ... app/2001Aug/0201.html . While ... on my ... grammatical ... of I agree. NULL of SQL-92 is not the same as Nothing of VB, Null-pointer of Java,...
nahi@...
Send Email
Aug 26, 2001
2:30 pm

Ok, this is probably going to be ignored by everyone, and its probably the wrong place to bring it up, but *personally* I think sparse arrays should not be in...
Alan Kent
ajk@...
Send Email
Aug 28, 2001
9:11 am

Thanks for the reply, and please accept my apologies for the delay in my response. I'm still digging through a large pile of mail. I understand the goal of...
Andrew Layman
mail@...
Send Email
Aug 31, 2001
4:25 am

"I want to know, in SOAP data model, if omitted element in sparse array and nil are the same or not..." The SOAP 1.1 specification makes no mention of xsi:nil...
Andrew Layman
mail@...
Send Email
Aug 31, 2001
4:26 am

Hi Andrew, ... I see. Thanks. In SOAP data model level, we cannot expect the behaviour of omitted element in sparse array (nil? how should it be echoed?). So...
NAKAMURA, Hiroshi
nahi@...
Send Email
Aug 31, 2001
6:22 am

Hi all, ... I forgot this important option. 5. Echo back as a sparse array. int[1] = 1, int[3] = 2, size = 4 => int[1] = 1, int[3] = 2, size = 4 // NaHi...
NAKAMURA, Hiroshi
nahi@...
Send Email
Aug 31, 2001
6:34 am
First  | < Prev  |  Last 
Advanced

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