Events are generated as a result of activity on an application system. You can use these events to trigger an action in your application. For example, SAP R/3 can be configured to generate an event when customer information is updated. If your application needs to perform when this event happens, it becomes the consumer of that event.
To create an iWay event, you must create a port and a channel.
The following dispositions are available when using iWay Explorer integrated with Designer.
This section explains how to first create a port for an event, and then how to associate the port with a channel. In addition, there are procedures on editing and deleting ports and channels.
This section explains how to create a port, and how to edit and delete an existing port.
To create an event port:
The following image shows an expanded SAP adapter node and the Ports node drop-down list.
The New Port - Port Name and Description dialog box opens, as shown in the following image.
The Define Port dialog box opens, as shown in the following image.
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane, as shown in the following image.
To create a port for an iBSP disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
ibsp:[svcName];[mthName];responseTo=[pre-defined port name or another disposition url];errorTo=[pre-defined port name or another disposition url]
The following table lists and defines the parameters for the iBSP disposition.
Parameter | Description |
---|---|
svcName | Name of the service created with iBSP. |
mthName | Name of the method created for the business service. |
responseTo | Location where responses to the business service are posted. Predefined port name or another full URL. This is optional. |
errorTo | Location where error documents are sent. Predefined port name or another full URL. This is optional. |
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane.
To create a port for an MSMQ disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
msmq://[machineName]/private$/[qName];errorTo=[pre-defined port name or another disposition url]
The following table defines the parameters for the MSMQ disposition.
Parameter | Description |
---|---|
machineName | Machine name where the Microsoft Queuing system is running. |
private$ | For private queues only, enter private$. Private queues are queues that are not published in Active Directory. They appear only on the local computer that contains them. Private queues are accessible only by Message Queuing applications that recognize the full path name or format name of the queue. |
qName | Name of the private queue where messages are placed. |
errorTo | Location where error documents are sent. Predefined port name or another full URL. This is optional. |
The new port appears in the list under the Ports node in the left pane. Select the port to see the port details in the right pane.
To create a port for a JMS Queue disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
jmsq:[myQueueName]@[myQueueFac];jndiurl=[myurl];jndifactory=[myfactory ];user=[user];password=[xxx];errorTo=[pre-defined port name or another disposition url]
The following table lists and defines the parameters for the JMS Queue disposition.
Parameter | Description |
---|---|
myQueueName | Name of a queue to which events are emitted. |
myQueueFac | Resource that contains information about the JMS Server. |
jndi_url | URL to use to contact the JNDI provider. The syntax of this URL depends on the JNDI provider that is used. |
jndi_factory | Is JNDI context.INITIAL_CONTEXT_FACTORY and is provided by the JNDI service provider. |
user | User ID associated with this queue. |
password | Password for the user ID. |
errorTo | Location where error logs are sent. Predefined port name or another disposition URL. The URL must be complete, including the protocol. This is optional. |
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane.
To create a port for a SOAP disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
soap:[wsdl-url];soapaction=[myaction];responseTo=[pre-defined port name or another disposition URL];errorTo=[pre-defined port name or another disposition url]
The following table lists and defines the parameters for the SOAP disposition.
Parameter | Description |
---|---|
soap | The URL to the WSDL file that is required to create the SOAP message, for example: http://localhost:7001/ibsp/IBSPServlet/test/service.ibs?wsdl where:
|
soapaction | The method called by the SOAP disposition, for example: service.method@test@@ where:
|
responseTo | Location where responses are posted. Predefined port name or another URL. Predefined port name or another disposition URL. The URL must be complete, including the protocol. This is optional. |
errorTo | Location where error logs are sent. Predefined port name or another disposition URL. The URL must be complete, including the protocol. This is optional. |
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane.
To create a port for an HTTP disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
http://[myurl];responseTo=[pre-defined port name or another disposition url];
where:
Is the URL target for the post operation, for example,
http://myhost:1234/docroot
Is the location where responses are posted, if desired.
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane.
To create a port for an MQSeries disposition:
The New Port - Port Name and Description dialog box opens.
The Define Port dialog box opens.
mqseries:/[qManager]/ [qName];host=[hostname];port=[port];channel=[channnelname];errorTo=[ pre-defined port name or another disposition url]
The following table lists and defines the parameters for the MQSeries disposition.
Parameter | Description |
---|---|
qManager | Name of the queue manager to which the server must connect. |
qName or respqueue | Name of the queue where messages are placed. |
host | Host on which the MQ server is located (MQ Client only). |
port | Number to connect to an MQ server queue manager (MQ client only). |
channel | Case-sensitive name of the channel that connects with the remote MQ server queue manager (MQ client only). The default channel name for MQSeries is SYSTEM.DEF.SVRCONN. |
errorTo | Location where error documents are sent. Predefined port name or another full URL. This is optional. |
The new port appears in the list under the Ports node in the Navigator pane. Select the port to see the port details in the right pane.
To edit an existing port:
The Port dialog box opens, as shown in the following image.
From this dialog box you can change the port description and, from the Protocol tab, the protocol type and destination of the event information.
To delete a port:
A confirmation window opens, asking you to confirm deleting the port.
The port is removed from the Ports list in the Navigator pane.
This section explains how to create a channel, and how to edit and delete an existing channel.
To create a channel:
The New Channel - Channel Name and Description dialog box opens, as shown in the following image.
The Define Channel dialog box opens. The option selections in this dialog box are based on the adapter you are working with and the existing ports for that adapter. The following image is an example of a Define Channel dialog box.
The channel Configuration dialog box opens. The configuration parameters that appear will depend on the adapter you are working with and the type of channel you are creating. The following image is an example of the Configuration dialog box.
The new channel appears in the Channels list of the selected adapter.
To edit an existing Channel:
The Channel dialog box opens. The following image is an example of this dialog box.
From the Channel dialog box you can change the channel configuration values. Use the tabs to access all parameters.
To delete a channel:
A confirmation window opens.
The channel is removed from the Channels list in the Navigator pane.
iWay Software |