Generating a WSDL and Creating an Operation from your Process Data
Note: Before you generate a WSDL, use the Interface tab to define the data fields (and types) that you want to use to exchange data with the web service. For more information, see
Defining Input and Output Data.
- Procedure
- Select the task or event that you will use to initiate the call to the web service. (This must be either a service task, or a throw intermediate message event, end message event or send task that is configured as a one-way operation.)
- On the
General tab of the Properties view, click
Generate. The
Create WSDL for Activity
dialog is displayed:
- Select the project folder where you want to store the generated WSDL file. The default option is Service Descriptors. (If your process contains multiple service tasks that use generated WSDLs, each task uses its own WSDL.)
- Enter a name for the WSDL file. (The default name is ProcessName-TaskName.)
- Click Next.
- If desired, edit the Target namespace.
- Select the WSDL Binding Style that you want to use - either Document Literal (the default option) or RPC Literal.
- Select the WSDL Type that you want to generate - either Abstract (the default option) or Concrete.
- If you selected
Concrete, change the
SOAP Address to the URI that will be used to contact the service at runtime, in the format
protocol://host:port/path.Note: You can use any values for theprotocol,hostandportcomponents of the address, as these values will be ignored at runtime.At runtime, the
protocol,hostandportcomponents of the address will be supplied from the configuration of the HTTP Client resource template that is referenced by the system participant’s HTTP Client Instance property. - Click Finish.
Result
TIBCO Business Studio - BPM Edition now automatically performs the following tasks:
- It creates the WSDL file.
- It creates a system participant to identify the web service endpoint. For more information, see Using a System Participant to Identify the Web Service Endpoint.
- It populates the
Operation and
Endpoint resolution sections of the selected activity with the relevant service details from the WSDL. (For more information, see Web Service Implementation Properties.)
Note: The Operation Name and Port Type are named respectively, after the name of the service task and the process.
- It creates input and output mappings based on the data defined on the Interface tab of the selected activity. For more information, see Defining Input and Output Mappings.
Subtopics