createSIBWSInboundService command
Use the createSIBWSInboundService command to create a new service integration bus-enabled web services inbound service configuration.
You can create a new inbound service configuration by using the wsadmin tool as described in this topic, or by using the administrative console as described in Making an internally-hosted service available as a web service.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
- 如需可用且具有匯流排功能的 Web 服務指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('SIBWebServices')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
AdminConfig.save()
Purpose
This command creates a new InboundService object that represents a protocol attachment to be used by service requesters. When you run this command you identify a single service element within a template WSDL document, and an existing service destination.
Target object
ObjectName of the service integration bus within which the service is created.
If the WSDL is to be retrieved through a proxy server, the server on which the command is running must have the system properties that identify the proxy server set correctly. If the proxy server requires authentication, then the user ID and password can be set as parameters on the command.
After you have run this command, you can use other commands to further configure the service. For example, you can add an inbound port.
Required parameters
- -name
- The inbound service name. This cannot be longer than 250 characters.
- -destination
- The name of the service destination. If the specified destination does not exist, the command fails.
- -wsdlLocation
- The location of the template WSDL file.
這是網址或是 UDDI 服務金鑰的服務專屬組件。如果您指定了 UDDI 參照,就會將 WSDL 位置假設為 UDDI 服務金鑰。
以下是完整 UDDI 服務金鑰的範例:
這個金鑰的服務專屬組件是最後一個部分:uddi:blade108node01cell:blade108node01:server1:default:6e3d106e-5394-44e3-be17-aca728ac1791
6e3d106e-5394-44e3-be17-aca728ac1791
Conditional parameters
- -wsdlServiceName
- The name of the service within the template WSDL. Only required if the template WSDL contains more than one service, or the WSDL is located through a UDDI registry
- -wsdlServiceNamespace
- The namespace of the service within the WSDL. Only required if the template WSDL contains more than one service, or the WSDL is located through a UDDI registry, or the service is not in the default namespace for the WSDL document.
Optional parameters
- -uddiReference
- If you specified a UDDI service key as the template WSDL location, supply the UDDI reference for the target UDDI registry.
- -userId
- The user ID that you use to retrieve the WSDL.
- -password
- The password that you use to retrieve the WSDL.
Example
- Using Jython:
inService = AdminTask.createSIBWSInboundService(bus, ["-name", "MyService", "-destination", "destName", "-wsdlLocation", "http://myserver.com/MyService.wsdl"] )
- Using Jacl:
set inService [$AdminTask createSIBWSInboundService $bus {-name "MyService" -destination $destName -wsdlLocation "http://myserver.com/MyService.wsdl"}]