The SDM utilities 'bop_sinfo' - show information about a class of object - and 'bop_odump' - dump the contents of one or more objects - can be useful here. For example,
bop_sinfo -d cr | find /I "cnt"
...yields all references to the contact object 'cnt' (and to a couple of other objects whose names happen to contain 'cnt') in the CR object:
C:\Users\Administrator>bop_sinfo -d cr | find /I "cnt"
last_mod_by SREL -> cnt.id TENANCY_UNRESTRICTED
notify_list BREL <- lrel_notify_list_cntntf.cr (LREL cnt) {cr = ?}
log_agent SREL -> cnt.id REQUIRED TENANCY_UNRESTRICTED
customer SREL -> cnt.id REQUIRED SERVICE_PROVIDER_ELIGIBLE
audit_userid LOCAL SREL -> cnt.id TENANCY_UNRESTRICTED
requested_by SREL -> cnt.id
orig_user_cost_center SREL -> cost_cntr.id
recip LOCAL SREL -> cnt.id SERVICE_PROVIDER_ELIGIBLE
reciptemp LOCAL SREL -> cnt.id SERVICE_PROVIDER_ELIGIBLE
Using 'bop_odump' you can then extract fields from objects, which will also give you the format and potentially some test data for your web service call, e.g.
C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by
Persid ref_num requested_by
cr:400765 88 8D4A1A8D063B994082FBA2A2C89F1F68
1 objects
Bop_odump supports 'dot' references as well:
C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by.last_name requested_by.first_name
Persid ref_num requested_by.last_n requested_by.first_name
cr:400765 88 James Edward
1 objects
One downside of 'bop_odump' is the 20 character column width (does anyone know how to change that?) which means that unless a UUID is the last attribute displayed it will be truncated. In the example below 'customer' and 'requested_by' are clearly the same UUID, but 'requested_by' is truncated:
C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by customer
Persid ref_num requested_by customer
cr:400765 88 8D4A1A8D063B994082F 8D4A1A8D063B994082FBA2A2C89F1F68
1 objects
Hope that helps, anyway.
James