NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
SOAP-ENC:offset


Joined: 19 Aug 2006
Posts: 76
Reply with quote
Hi,

We're running nusoap as our webservices server.

We have a problem and we can't really test it, since the problem comes from a client using our webservices and we can't really know what SOAP client he's using and what is his code.

The problem:

We have a function that accept a parameter that is an Array..

Using nusoap as the client, this function receives the parameter like this (print_r() output):

Code:

Array
(
    [0] => Array
        (
            [aaa] => hello
            [bbb] => 111
            [ccc] => -1
            [ddd] => Array
                (
                )
        )
   
)


When the problematic SOAP client calls the function, we received:

Code:

Array
(
    [0] => Array
        (
            [aaa] => hello
            [bbb] => 111
            [ccc] => -1
            [ddd] =>
        )

    [!SOAP-ENC:offset] => [0]
)


I have no idea what "[!SOAP-ENC:offset]" is but it seems it is sometimes used.

Does nuSoap support this?

How should we deal with this? Just ignore the extra index?

Thank you

JL
View user's profileFind all posts by jlSend private message


Joined: 26 Jan 2007
Posts: 2
Reply with quote
Quote:
A SOAP array member MAY contain a "SOAP-ENC:offset" attribute indicating the offset position of that item in the enclosing array. This can be used to indicate the offset position of a partially represented array (see section 5.4.2.1). Likewise, an array member MAY contain a "SOAP-ENC:position" attribute indicating the position of that item in the enclosing array. This can be used to describe members of sparse arrays (see section 5.4.2.2). The value of the "SOAP-ENC:offset" and the "SOAP-ENC:position" attribute is defined as follows:

arrayPoint = "[" #length "]"

with offsets and positions based at 0.


From http://www.w3.org/TR/2000/NOTE-SOAP-20000508/
View user's profileFind all posts by relytjjSend private message


Joined: 19 Aug 2006
Posts: 76
Reply with quote
relytjj wrote:
Quote:
A SOAP array member MAY contain a "SOAP-ENC:offset" attribute indicating the offset position of that item in the enclosing array. This can be used to indicate the offset position of a partially represented array (see section 5.4.2.1). Likewise, an array member MAY contain a "SOAP-ENC:position" attribute indicating the position of that item in the enclosing array. This can be used to describe members of sparse arrays (see section 5.4.2.2). The value of the "SOAP-ENC:offset" and the "SOAP-ENC:position" attribute is defined as follows:

arrayPoint = "[" #length "]"

with offsets and positions based at 0.


From http://www.w3.org/TR/2000/NOTE-SOAP-20000508/


Thanks for the link.

Now I'm curious to know if nuSOAP supports this in a way or another!
View user's profileFind all posts by jlSend private message
SOAP-ENC:offset
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic