Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compund type in SOAP

 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
w3 org depicts:

SOAP defines types corresponding to the following structural patterns often found in programming languages:

Struct
A "struct" is a compound value in which accessor name is the only distinction among member values, and no accessor has the same name as any other.
Array
An "array" is a compound value in which ordinal position serves as the only distinction among member values.

The members of a Compound Value are encoded as accessor elements.

I did not get the meaning of the accessor elements over here....what is the use of that?

Thanks in advance.
 
Arun kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess i am not wrong.
In java struct is similiar to a class.
The class can be made as a compound element in soap or xml.
The "accessors" means the getters and setters of the properties or the property itself.

Every class has distinct variable names.
Every struct within it has a distinct accessor.
Both statements are same.

For array , it can be a array of simple objects like java primitives, OR it can be a array of compound objects like class.
The array can be accessed using ordinals aka index.

I hope i made you clear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic