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" under the related topics for more information.
The component that does not have an implementation type, the Java component, the import without a binding, the export, and the selector can have either WSDL or Java interfaces. 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 the other components that require a specific interface type, the options to select WSDL or Java interfaces are not be available, as shown in the following Add Interface dialog:
The instructions in this topic assume that you have a choice in selecting either a WSDL or Java interface.
Instructions to add the interface
When working in the assembly editor, you can add an interface to a node before it is wired, or you can add the interface during the wiring procedure.
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, by dragging the wire handle from the source node, or by using the Advanced wiring dialog. As you add a wire from a source to a target, 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.
Related information