Mashup XML metadata
A mashup configuration is an XML file, which includes the items that are described in the table.
XML Item | Type of Item | Description |
---|---|---|
mashups |
Element |
Encloses all of the details of a mashup. Contains the definition of one or more individual mashups in an element mashup. |
id |
Attribute (mashup tag) | Unique identifier of the mashup. |
transactional |
Attribute (mashup tag) | Indicates whether the mashup is transactional in nature (true if
transactional). Used for the transaction management task. For all out XAPI calls, set the value to
true . |
description |
Attribute (mashup tag) | Describes the mashup. |
resourceId |
Attribute (mashup tag) |
Unique identifier of the resource that needs to be authorized. Used for the authorization task. If If a |
AlternateResourceIds |
Tag (within mashup tag) |
Defines alternate resource identifiers for a XAPI. Each The alternate resource identifiers are used only if If any alternate resource identifier has permission for a mashup, a user can view the results of the mashup. |
extensible |
Attribute (mashup tag) | Indicates whether the mashup can be extended. |
mashuptype |
Attribute (mashup tag) | XAPI (for XAPI calls) |
classInformation |
Tag (within mashup tag) | Includes a name attribute, which is the fully qualified class name of the mashup implementation. |
mashupRef |
Tag (within mashup tag) | Indicates each XAPI within a multiple XAPI call in a mashup. Includes an id attribute and a namespace tag (APINamespace). |
APINamespace |
Tag (within mashup tag) |
Defines namespace for each XAPI in a multiple XAPI call. Includes the following attributes:
Note: The APINamespace is optional.
|
Here is an example of a mashup XML file.
<mashups>
<mashup endpoint="EP_CONFIG" id="sample_getOrganizationList"
mashuptype="XAPI" transactional="true">
<classInformation name="com.ibm.isccs.common.mashups.SCCSBaseMashup"/>
<API Name="getOrganizationList">
<Input>
<Organization
DisplayLocalizedFieldInLocale="xml:CurrentUser:/user/@Localecode" MaximumRecords="">
<OrgRoleList>
<OrgRole RoleKey="ENTERPRISE"/>
</OrgRoleList>
<DataAccessFilter UserId="xml:CurrentUser:/user/@Loginid"/>
<OrderBy>
<Attribute Desc="N" Name="OrganizationName"/>
</OrderBy>
</Organization>
</Input>
<Template>
<OrganizationList>
<Organization CustomerMasterOrganizationCode=""
LocaleCode="" OrganizationCode="" OrganizationName="">
<BillingPersonInfo City="" Country="" ZipCode=""/>
</Organization>
</OrganizationList>
</Template>
</API>
<APINamespace inputNS="getOrganizationList_input" outputNS="getOrganizationList_output"/>
<AlternateResourceIds>
<AlternateResourceId altResourceId="ISCCSSYS002"/>
<AlternateResourceId altResourceId="ISCCRTORD0001"/>
<AlternateResourceId altResourceId="ISCORD0001"/>
</AlternateResourceIds>
</mashup>
</mashups><mashups>
<mashup id ='m0001'
transactional='true'
resourceId='SC02187'
extensible='true'
mashuptype='XAPI'>
<classInformation name="com.sterlingcommerce.ui.web.framework.mashup.impl.SCUIMashupImplementer"
/>
</mashup>
<mashup ...
/>
<mashup ...
/>
</mashups>
xml:
syntax for XML
request attributes and XML session attributes. The following application-provided
session attributes provide details about the logged in user:- CurrentUser - Contains current user's information such as
Loginid
,Localecode
. - CurrentOrganization - Contains current user's organization information
such as
OrganizationCode
,CustomerMasterOrganizationCode
.