Changing an import Web service binding

You can use a command to change the Web service import bindings of mediation modules that have been deployed to WebSphere Process Server.

Before you begin

You must use the wsadmin tool to run the following commands.

Why and when to perform this task

You might change an import Web service binding if you wanted a particular mediation module to invoke 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 mediation 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 Process Server. The listSCAImports command lists all imports for a particular SCA module and the listSCAExports command lists all exports for a particular SCA module.

Steps for this task

  1. List the deployed SCA modules. $AdminTask listSCAModules
  2. List the imports for a particular SCA module. $AdminTask listSCAImports {-moduleName moduleName}
    Note: In addition to specifying the moduleName, you have the option of specifying the applicationName. Providing an applicationName improves performance.
  3. Modify an import binding, of type WS. $AdminTask modifySCAImportWSBinding -moduleName moduleName -import importName -endpoint targetEndpointName

Result

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 Process Server 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 Process Server assumes that the operations provided are equivalent and no warning is issued.

Example

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

Last updated: Wed 06 Dec 2006 07:08:08

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)