Interfaces can be added to a component, an import, or an export in the assembly diagram.
WSDL and Java interfaces
The SCA programming model supports WSDL and Java interfaces. All the components have WSDL type interfaces. Only Java components support Java type interfaces in addition to WSDL type interfaces. If a component, import, or export has more than one interface, all the interfaces must be the same type. See "WSDL and Java interfaces and references" and "Adding interfaces" under the related topics for more information.
The Java component, the import without a binding, and the export can have either WSDL or Java interfaces. Note that the mediation flow component can only have a WSDL interface, therefore an export that is wired to a mediation flow component must also have a WSDL interface.
When adding interfaces to these nodes, the Add Interface dialog will allow you to specify the type of interface; that is, you will have a set of radio buttons for Show WSDL and Java, Show WSDL, and Show Java options, as shown in the following image:
For components that require a specific interface type, the options to select WSDL or Java interfaces will not be available as shown in the following Add Interface dialog:
The instructions in this topic assumes that you have a choice in selecting either a WSDL or Java interface for the node.
Instructions to add the interface
When working in the assembly editor, an interface can be added to a node before it is wired, or you can add the interface during the wiring.
Add the interface before you add the wire
To add an interface to a node before you do the wiring, follow these instructions:
Add the interface as you add the wire
You can add wires by using the wire in the palette, dragging the wire handle from the source node or by using the Advanced wiring dialog. As you add a wire from a source node to a target service, you will be prompted if a matching interface and/or reference are to be added. If you click OK, the interface will be created on the target node. See "Wiring nodes" for more information on the wiring actions.
The interface icon, , on the node, indicates that it has one
or more interfaces.