Reconfiguring a Web Service by Changing the Transport
This sample documentation describes the way to convert a transport for a Web Service
Sample Description
Converting a transport for a Web Service:
For more information, see Accessing Samples.Before performing the following steps, import the SOAP over HTTP ZipCodeServiceProvider.zip project from the File Explorer view by double-clicking the project zip file in TIBCO Business Studio™ for BusinessWorks™.
Set the default application profile to match the OS you are running on. For more information, see Setting the Default Application Profile.
Procedure
- Create and configure a JMS Connection shared configuration resource.
- Navigate to the ZipPort service. tab and select
- Click the Bindings tab, and in the Transport Configuration section, change the Transport Type from HTTP to JMS.
- Create the JMS Connection shared resource with default or custom values using the JMS Connection wizard after changing the Transport Type to JMS.
- Change the Messaging Style to Queue in the JMS Connection shared resource.
- Create JNDI Configuration shared resource with default or custom values.
- Test the connection using the Test Connection button.
- Click queue.sample or a custom queue name. and specify the JMS Destination value as
- In the TIBCO Enterprise Message Service server, create a queue with queue.sample name, if a queue was not created earlier, using the TIBCO Enterprise Message Service Administration option.
- Click the Generate Concrete WSDL for SOAPServiceBinding binding link in the Binding configuration. Use the Generate WSDL wizard to generate a new concrete WSDL.
- Delete the previous concrete WSDL, to avoid WSDL cache exceptions, located under that contains HTTP transport details.
- Specify the folder location where you want to generate the concrete WSDL file.
- Clear the Embed options (Abstract WSDL and Schema) check boxes, if both Service and Client are under the same project module.
- Click OK in the WSDL generated successfully confirmation dialog box.
- Overwrite (if required) with ActiveMatrix BusinessWorks 5.x client concrete WSDL file.
- Go to the Web Service Client project (ActiveMatrix BusinessWorks 5.x) in TIBCO Designer and click the Browse option in SOAP Request Reply activities to select the Service/Operation from the newly imported WSDL file. Optionally click Reload to get WSDL configurations.
- Click Transport Connection to test the connection status.
Converting the Transport from SOAP over JMS to SOAP over HTTP
Before performing the following steps, import the ZipCodeLookup.zip project from the File Explorer view by double-clicking the project zip in TIBCO Business Studio for BusinessWorks.
Procedure
Example
Result: The Client and Server are executed successfully.