About this task
Bindings for imports and exports have different purposes. An import binding describes the specific way an external service is bound to an import component. An export binding describes how that export (or service) will be published or made available to clients outside the module.
The kind of binding determines what kind of client is supported; a Web service binding makes the service available to any Web-based client.
When you use the palette in the assembly editor to create an export, you can generate a Web service binding by following these steps:
- If there is no interface defined on the export, add the interface first. See related tasks for instructions on adding the interface.
- Under Inbound Exports, drag Web Service onto the canvas. Add your interface.
- Alternately, under Components, drag an export onto the canvas. Right-click on the export and select Generate Binding > Web Service Binding.
- Select one of the following transports and click Next:
- SOAP1.2/HTTP: Select this transport if your Web service conforms to the SOAP 1.2 specification. This selection is based on the Java API for XML Web Services (JAX-WS), a Java programming API for creating web services.
- SOAP1.1/HTTP (default): Select this transport if your Web service conforms to the SOAP 1.1 specification. This selection is also based on the JAX-WS API.
- SOAP1.1/HTTP using JAX-RPC: Select this transport if you want to create Web services that use a SOAP-encoded message based on the Java API for XML-Based RPC (JAX-RPC).
- SOAP1.1/JMS: Select this transport if your Web service conforms to the SOAP 1.1 specification and receives requests from a JMS queue. Note that the interaction style of SOAP/JMS is synchronous.JAX-RPC versus JAX-WS describes the differences between the two Web services programming models.
- The Specify the Web Service Binding Target Namespace page opens. Select whether you want to use the same namespace as the interface or create a new one:
- Use the port type (interface) namespace - This selection is best suited if you will be merging this service later with other artifacts and exporting everything in a single file. In such cases, the export is simplified if all artifacts share the same namespace.
- Specify a new namespace - This selection is suitable if you want to have a unique namespace for your service.
- A Web service binding is generated without requiring you to supply additional information. Click the Binding tab in the Properties view to see the generated port and service and their namespace. The location of the port is the same as the location of the interface. You can see the port in the Business Integration view.
- Optional: Double-click the binding or the port in the Business Integration view to open the WSDL editor to see the WSDL description and edit it if necessary.
The binding will be generated for the export and its icon will change to indicate the type of binding that it has. To change the binding for an export, you can use Regenerate Binding or Remove Binding actions. Exports have binding properties that can be modified in the Properties view. Select the export in the assembly diagram to see its properties in the Properties view.