Reconfiguring a Web Service by Changing the Transport
This sample documentation describes the way to convert a transport for a Web Service
TIBCO Enterprise Message Service™ must be running.
Sample Description
Converting a transport for a Web Service:
- From SOAP over HTTP to SOAP over JMS
- From SOAP over JMS to SOAP over HTTP
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™.
Converting the Transport from SOAP over HTTP to SOAP over JMS
- Procedure
- Create and configure a JMS Connection shared configuration resource.
- Navigate to the tab and select ZipPort service.
- 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 and specify the JMS Destination value as queue.sample or a custom queue name.
- 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.
- 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
- Create an HTTP Connection shared configuration resource, and configure the HTTP Host and Port details.
- Navigate to the tab and select ZipPort service.
- Click the Bindings tab, and in the Transport Configuration section, change the Transport Type from JMS to HTTP.
- Create the HTTP Connection shared resource with default or custom values using the HTTP Connection wizard after changing the Transport Type to HTTP.
- Click the Generate WSDL for SOAPReferenceBinding binding link in the Binding configuration. Use the Generate WSDL wizard to generate a new concrete WSDL.
- Clear the Embed options (Abstract WSDL and
Schema) check boxes, if both Service and Client are under same project module.
If required, overwrite with the existing Client concrete WSDL file.
- Click OK in the WSDL generated successfully confirmation dialog.
- Navigate to tab and select ZipPort Reference.
- Delete the previous SOAPReferenceBinding configured with JMS transport.
- Optionally, configure the HTTP Client shared resource to override the custom configurations.
- To avoid WSDL cache exceptions, delete the previous concrete WSDL located under that contains JMS transport details.
Result: The Client and Server are executed successfully.