WebSphere Enterprise Service Bus, Version 6.2.0 Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows


Changing an import Web service binding using commands

You can use a command to change the Web service import bindings of service modules deployed to WebSphere® ESB.

Before you begin

Use the wsadmin tool to run the following commands.

About this task

You might change an import Web service binding if you wanted a particular service module to call a different Web service. If you change an import binding you must ensure that the import and export match (that is, that the operations provided are equivalent). This might involve reviewing the WSDL. Use the wsadmin tool to complete the following steps.

To modify the Web service binding of a particular service module import, you need to know the specific URL for the target endpoint.

The listSCAModules command lists all SCA modules that have been deployed to WebSphere ESB. The listSCAImports command lists all imports for a particular SCA module and the listSCAExports command lists all exports for a particular SCA module.

Procedure
  1. List the deployed SCA modules. $AdminTask listSCAModules
  2. List the imports for a particular SCA module. $AdminTask listSCAImports {-moduleName moduleName}

    In addition to specifying the moduleName, you have the option of specifying the applicationName.

    Note: Providing an applicationName improves performance.
  3. Modify an import binding, of type WS. $AdminTask modifySCAImportWSBinding -moduleName moduleName -import importName -endpoint targetEndpointName

Results

Changes the import Web service binding for a particular Web service import.

WebSphere ESB issues a warning for each import interface that is not satisfied by an export interface. WebSphere ESB compares the WSDL port type names of import and export, if they are not the same then a warning is issued. However, if the port type names do match, then WebSphere ESB assumes that the operations provided are equivalent and no warning is issued.

Example

$AdminTask modifySCAImportWSBinding {-moduleName myModule -applicationName myApplication -import myImport -endpoint http://myTargetEndpoint}

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.doc/tasks/twesb_changingimportWSbindingviacommand.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).