This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Compund type in SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Compund type in SOAP" Watch "Compund type in SOAP" New topic

Compund type in SOAP

Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 206
w3 org depicts:

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

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.
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

Joined: Apr 22, 2008
Posts: 10
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

Regards,<br /> Arun Kumar<br />----------------------------------<br />SCJP 5.0 86%
I agree. Here's the link:
subject: Compund type in SOAP
It's not a secret anymore!