EAI3
EAI3
EAI3
Copyright 2005, 2006, Oracle. All rights reserved. The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be errorfree. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. PRODUCT MODULES AND OPTIONS. This guide contains descriptions of modules that are optional and for which you may not have purchased a license. Siebels Sample Database also includes data related to these optional modules. As a result, your software implementation may differ from descriptions in this guide. To find out more about the modules your organization has purchased, see your corporate purchasing agent or your Siebel sales representative. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS. Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs. Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all risks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.
Contents
Chapter 1: Whats New in This Release Chapter 2: EAI Transports and Interfaces Overview
About EAI Transports 11 13
14
17
26 26
31
31
Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Sending Outbound Messages with EAI MSMQ Transport Receiving Inbound Messages with EAI MSMQ Transport 34 41
32
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Contents
49 49
Implementing a Business Service in Java 52 About Exception Handling for the Java Business Service
About the Lifecycle of a Java Business Service Example of a Java Business Service 53 54 54 About Restrictions for Implementing JBS Troubleshooting the Java Business Service
53
56
Features Not Supported for Use with the Siebel JMS Transport About Sending and Receiving XML
About Multi-Step Operations Within a JMS Session Undeliverable Messages in JMS Transport Detailed Input and Output Specifications
JMS Headers and Properties 59 Input Arguments Used by the Dispatch Step About Output of the JMS Transport 63
64
About the JMSSubsys Named Subsystem 65 About the JMS Receiver 65 Creating a JMS Subsystem by Using the Siebel Web Client 66 Sending and Receiving Messages with the JMS Transport 67
70 73
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Contents
Configuring Against BEA WebLogic 74 Configuring Against IBM WebSphere MQ 75 Security Configuration on the JMS Server 75
Troubleshooting for the JMS Transport About Logging for the JMS Transport
76 77
80 81 81 84 93 93 95 99
General Information on How to Send a Message EAI HTTP Transport for Inbound Messages 90
Using the EAI HTTP Transport for Inbound Integration Handling EAI HTTP Transport Business Service Errors Processing and Sending Outbound XML Documents Examples Using HTTP Request 98
Sending and Receiving Messages with the EAI HTTP Transport Creating Custom Headers for the EAI HTTP Transport Service About Sending and Receiving Messages through HTTP About Transport Headers and HTTP Response Headers EAI HTTP Transport Method Arguments 101 100 100
108
109
Configuring the EAI File Transport 109 Using the EAI File Transport Methods 110 Generating Unique Filenames 110 EAI File Transport Parameters 111
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Contents
About the Software Architecture for the Siebel OLE DB Provider Installing the Siebel OLE DB Provider
Configuring and Testing the Siebel OLE DB Provider 116 Multiple Language Considerations for the Siebel OLE DB Provider About Primary and Foreign Key Relationships 119 Viewing Siebel OLE DB Provider Events 119 Viewing Siebel OLE DB Information 120
120
123
Creating and Modifying Siebel OLE DB Rowsets 121 Viewing Siebel OLE DB Rowsets in Microsoft Office Applications
127
Troubleshooting OLE DB
138
145
Schema Generation Support 145 Exchanging Integration Messages 146 Understanding Siebel BizTalk Server Adapter Through Scenarios
147
148
149
Installing and Configuring Software for Servers and Clients Siebel Integration Objects 150
154
Using EAI MSMQ Transport for Outbound Messaging 154 Using EAI MSMQ Transport for Inbound Messages 158
162
176
177
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Contents
181
Invoking the Siebel Code Generator 188 Code Generated for a Business Service 188 About Methods of Java Classes Generated for a Business Service About the Code Generated for an Integration Object 192
191
195
Connect String and Credentials for the SiebelDataBean 196 Connection Parameters for the SiebelDataBean 196 Examples Using Generated Code for Integration Objects 199
201
201
Using the Resource Adapter 201 About the Connect String and Credentials for the Java Connector
Index
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Contents
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Whats New in Transports and Interfaces: Siebel Enterprise Application Integration, Version 7.8, Rev. A
Table 1 lists changes described in this version of the documentation to support Release 7.8 of the software.
Table 1. Topic
New Features in Transports and Interfaces: Siebel Enterprise Application Integration, Version 7.8, Rev. A Description References to TIBCO have been removed from this section and throughout the chapter.
Whats New in Transports and Interfaces: Siebel Enterprise Application Integration, Version 7.8
Table 2 lists changes described in this version of the documentation to support Release 7.8 of the software.
Table 2. Topic
New Features in Transports and Interfaces: Siebel Enterprise Application Integration, Version 7.8 Description Security enhancements added for use with the Siebel Java Message Service Transport. Information about input and output arguments for the EAI JMS Transport added to the guide.
Enabling Authentication and Authorization for the EAI JMS Transport on page 73 Detailed Input and Output Specifications on page 59
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Siebel Enterprise Application Integration (EAI) provides mechanisms for exchanging data between Siebel Business Applications and external systems. This chapter includes the following topics on these mechanisms: About EAI Transports on page 11 Using Named Subsystems for Transport Parameters on page 13 About Object Interfaces and EAI on page 17 Database Level Interfacing on page 18
When business services are invoked from a workflow process, the valid set of encodings is controlled by a picklist. If the business services are invoked through scripting or similar mechanisms, the character set name is supplied textually. NOTE: For data validation or conversion from one encoding to another, you can use the Transcode business service if needed. For details on the Transcode business service, its method and supported character sets, see the Global Deployment Guide.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11
Transports provide connectivity to virtually any communication protocol that can represent data as text or binary messages, including MQSeries from IBM, MSMQ from Microsoft, and HTTP. EAI Transports allow Siebel Business Applications to integrate with Web-based applications as well as legacy systems that are encapsulated using middleware. Transports are interchangeable. If you change technologies at any point, you can reuse existing workflow processes and logic by switching the transport adapter. Transports can: Support bidirectional exchange of messages. Run within the Siebel Object Manager. Invoke and be invoked by Workflow Process Manager and EAI Dispatch Service. Be invoked within an eScript or VBScript. Send and receive messages in XML format. Pass messages through, or convert messages into, property sets for XML and MIME messages.
Available transports include: EAI MQSeries Server Transport. For information on these transports, see Chapter 3, EAI MQSeries Transport. EAI MSMQ Transport. For information on this transport, see Chapter 4, EAI MSMQ Transport. EAI HTTP Transport. For information on this transport, see Chapter 7, EAI HTTP Transport. EAI DLL Transport and EAI File Transport. For information on these transports, see Chapter 8, EAI DLL and EAI File Transports.
NOTE: EAI MQSeries Server Transport, EAI MSMQ Transport, and EAI File Transport business services are not re-entrant. For more information on transport re-entrance, see About the EAI MQSeries Transport Re-Entrance on page 25.
Outbound Methods for a Transport Business Service Available outbound methods depend on the transport business service in use, such as EAI MSMQ Transport. The business service sends messages from the Siebel application using the appropriate communications protocol, such as MQSeries, MSMQ, HTTP, and so on. There are two outbound methods that you use to send requests from a Siebel application to another application:
12
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI Transports and Interfaces Overview Using Named Subsystems for Transport Parameters
Send. Sends a message from a Siebel application when the Siebel application does not need a response. This is an asynchronous request method (with the exception of the EAI HTTP Transport, which expects a correct HTTP response), because the Siebel application does not need to wait for a response before continuing with the process. Send and Receive. Sends a message from the Siebel application when the Siebel application needs to receive a response before continuing. This is a synchronous request and response method, because it requires a response before the Siebel application can continue.
Inbound Methods for a Transport Business Service Available inbound methods depend on the transport business service in use, such as EAI MSMQ Transport. The inbound methods monitor a specified queue and upon receipt of a message, dispatch it to another service. There are three inbound methods that can be used to receive requests from another application: Receive Receive and Execute (ReceiveDispatch) Receive, Execute, Send (ReceiveDispatchSend) Receives an inbound request message and returns it to the caller of the transport. Receives an inbound request message and calls another service with the inbound message as input. This called service is known as the Dispatch Service, and the method that is called is known as the Dispatch Method. This is a request/response method. It receives an inbound request message, calls another service with the inbound message as input, and then sends the output of the called service as a response. To suppress the response, you can create an output property, on the dispatch service, of type EmptyResponse and set it to True.
NOTE: There are server components (called receivers) on top of the inbound methods that run as Siebel Server tasks. When running an EAI receiver such as the SAP IDOC Receiver, MQSeries Server, or MSMQ Receiverusing the methods ReceiveDispatch or ReceiveDispatchSendif the dispatch service has an error, the receiver shuts down. Check the Status column on the Component Tasks for details about the cause of the error.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13
EAI Transports and Interfaces Overview Using Named Subsystems for Transport Parameters
Values for parameters in a named subsystem are common to every user of the subsystem across the enterprise. Subsystem names themselves are parameters for server components. You can logically group parameters into various subsystems. For the two EAI Transport named subsystem parameters, ConnectionSubsystem and DataHandlingSubsystem, two parameters exist for the EAI receivers ReceiverConnectionSubsystem and ReceiverDataHandlingSubsystem. The EAI Receiver looks up these parameters from the server component parameters and copies the corresponding properties (ConnectionSubsystem and DataHandlingSubsystem) to the input property set of the transport business service. NOTE: Parameters specified in business service user properties no longer work as is. You need to create named subsystems and specify the parameters for the subsystems. Then, you need to specify the named subsystems you created as business service user properties in a workflow or through an eScript, or the other usual means. Note that business service user properties work for the SAP Connector and the Oracle Connector business services.
14
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI Transports and Interfaces Overview Using Named Subsystems for Transport Parameters
Table 3.
Dispatch Parameter Usage Use This Parameter... DispatchService. This parameter must be used in conjunction with DispatchMethod. DispatchMethod. This parameter must be used in conjunction with DispatchService. DispatchRuleSet. DispatchWorkflowProcess.
When You Need to... ...call any Business Service ...call any Business Service ...call the Dispatch Rule Set Business Service ...call any Workflow
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15
EAI Transports and Interfaces Overview Using Named Subsystems for Transport Parameters
Table 4.
Common Data Handling Parameters for Transport Methods Description Default is None. The default value for this parameter should be used for self-describing content such as XML and MIME. CharSetConversion specifies if and how a character set conversion needs to occur before or after sending or receiving data from the external system. Legal values are None, UTF-8, and UTF-16. When used with a Receive method, CharSetConversion implies that the external data being read is in whatever charset specified by this setting and must be converted to String. Therefore, the output <Value> is a String whenever CharSetConversion is specified. If no CharSetConversion is specified, the output <Value> is in binary and retains its original encoding. When used with a Send method, CharSetConversion defines the character set for the output data. The data in <Value> is converted to the character set specified by CharSetConversion. Depending on the value of this parameter, transport business services do implicit character set conversions, if necessary. Note that same CharSetConversion is assumed for requests and responses.
ConverterService
Default is EAI XML Converter. This is the name of the business service to use for serializing property sets to a buffer and unserializing buffers to property sets. This parameter receives arguments through business service user properties if the converter service can accept them. Note that not any arbitrary service may be designated to be a converter service. DispatchMethod parameter specifies the dispatch method. Specification of DispatchService is mutually exclusive with specification of a DispatchRuleSet or a DispatchWorkflowProcess. This parameter is only applicable for the ReceiveDispatch and ReceiveDispatchSend methods. DispatchRuleSet specifies the name of the dispatch rule set for the Dispatcher Service. Specification of DispatchRuleSet is mutually exclusive with specification of DispatchWorkflowProcess or Dispatch Service. This parameter is only applicable for the ReceiveDispatch and ReceiveDispatchSend methods. DispatchService specifies the dispatch service. Specification of DispatchService is mutually exclusive with specification of a DispatchRuleSet or DispatchWorkflowProcess. This parameter is only applicable for the ReceiveDispatch and ReceiveDispatchSend methods.
DispatchMethod
DispatchRuleSet
DispatchService
16
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI Transports and Interfaces Overview About Object Interfaces and EAI
Table 4.
Common Data Handling Parameters for Transport Methods Description DispatchWorkflowProcess specifies the name of the workflow process to dispatch to. Specification of DispatchWorkflowProcess is mutually exclusive with specification of DispatchRuleSet or Dispatch Service. This parameter is only applicable for the ReceiveDispatch and ReceiveDispatch Send methods. Default is False. This parameter specifies whether character set conversion errors should be ignored. If False, with any such errors, the transport service propagates the error. Default is False. This parameter indicates whether or not the receiver will execute the incoming request using the default credentials of the receiver or those provided in the incoming XML document. If this parameter is set to True, the receiver will introspect the incoming XML document (<SiebelMessage> element) for the eaiusername and eaipassword credential attributes. If these credentials are found, the receive will attempt to relogin with the credential. If the Impersonate parameter is set to True and the credentials are not found or are not a valid Siebel username or password, an error message will be returned. Default is True. This parameter indicates whether or not to roll back transport transaction if a Dispatch Method fails. This parameter is only available for the transactional transports MQSeries Server and MSMQ. Default is True. This parameter indicates whether or not to nest the Siebel transaction within the transport transaction. This parameter is only available for the transactional transports MQSeries Server and MSMQ. If this parameter is set to False, the transaction support is turned off at the transport level. This setting means that if the transaction fails, then there will not be a rollback at the Siebel transaction level.
IgnoreCharSetConvErrors
Impersonate
RollbackOnDispatchError
SiebelTransactions
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17
Siebel Business Applications that produce Java Data Beans to support J2EE applications. For information, see Chapter 11, Integrating with Java.
18
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter discusses the Siebel EAI MQSeries Transport and includes the following topics: About Siebel EAI MQSeries Transport on page 19 About Message Id Tracking for an Inbound Message on page 26 Invoking a Workflow Process Using MQSeries Server Receiver on page 26
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19
To fix a shared memory segment conflict with the EAI MQSeries Server Transport 5.2 on AIX 1 2
Shut down any queue manager connected to the EAI MQSeries Transport. Edit the file /var/mqm/mqs.ini. In the QueueManager section, for each queue manager of interest, add an additional line explicitly specifying the shared memory segment to use. For example:
20
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
NOTE: This example shows shared number 12 used as the memory segment number. Possible legal values for the IPCCBaseAddress are 4, 5, 8, 9, 10, 11, and 12, although 8 has been found to be problematic. It is possible to run into this error even with the memory segment number set as 12 if the operating system has non-deterministically allocated segment 12 to the EAI MQSeries Server process ahead of the queue manager. If this is the case, a different segment number may need to be specified. If the EAI MQSeries Server Transport business service on AIX continues to fail even after you have followed the previous procedures, you can configure the AIX environment to run Siebel Server with less memory using environment variable LDR_CNTRL. After you have finished, follow the procedures in the preceding section.
To configure the AIX environment to run Siebel Server with less memory 1 2
Shut down Siebel Server. In the shell that you use to bring up Siebel Server, set the environment variable LDR_CNTRL. Using csh: setenv LDR_CNTRL MAXDATA=0x30000000 NOTE: You can save the setting in the siebenv.sh or siebenv.csh.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
21
Table 5.
EAI MQSeries Server Transport Specific Parameters Display Name Receive Acknowledgements Acknowledgement Physical Queue Name Acknowledgement Queue Manager Name Description Default is False. This parameter specifies whether or not delivery and arrival acknowledgements are to be received. If the MqAcknowledgements is set to True, this parameter contains the name of the physical queue for acknowledgements to responses. Defaults to MqQueueManagerName if unspecified. If MqAcknowledgements set to True, this parameter contains the name of the queue manager for acknowledgements to responses. Name of the MQSeries model queue. Name of the MQSeries physical queue. You can also create an alias queue which points to a target queue and use the alias queue name as the input argument physical queue name and send messages to the target queue. NOTE: Using an alias queue will work. However, since the alias queue does not have a backout queue defined, the receiver cannot roll back to the backout queue.
Argument MqAcknowledgements
MqAckPhysicalQueueName
MqAckQueueManagerName
MqModelQueueName MqPhysicalQueueName
MqQueueManagerName
Name of the MQSeries queue manager. If this parameter is not specified, the default Queue Manager Name, as specified in the MQSeries configuration, is used. The Response Queue Manager is the same as MqQueueManagerName. Name of model queue for response connection. Name of physical queue for response connection.
MqRespModelQueueName MqRespPhysicalQueueName
22
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 5.
EAI MQSeries Server Transport Specific Parameters Display Name MQSeries Format Sleep Time Description The format of the message from the Siebel application to the outbound queue. Default is 20000 milliseconds. The timeout interval on receive calls, in milliseconds.
In addition to the EAI MQSeries Server Transport, you can run the MQSeries Server Receiver, which is a server component that periodically checks the MQSeries queues you specify, for inbound messages. NOTE: The persistence of the message is the same as the persistence of the queue itself.
NOTE: If the Backout Requeue Queue has not been specified for the Queue Manager, then the message is sent to the Dead Letter Queue of the current queue manager. If there is no specified Dead Letter Queue for the current queue manager, then the queue defaults to the SYSTEM.DEAD.LETTER.QUEUE.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
23
During the sending business service step (EAI MQSeries Server Transport.Send) within the workflow process, input arguments are added that can modify MQMD headers. Once the property FullMQMDControl is set to TRUE, you can modify other MQMD headers as the examples reflect in Table 6:
.
Table 6. Property
Input Arguments for Certain MQMD Headers Type Literal Literal Literal Literal Literal Literal Literal Values TestMsgHeader 1208 MQENC_NATIVE MQEI_UNLIMITED MQENC_NATIVE MQPER_PERSISTENT MQPRI_PRIORITY_AS_Q_DEF
NOTE: When using the Message Type header (MQMD_S_In_MsgType), make sure that the message type set makes sense in context. For example, if the Send method is used to send a message to MQSeries, the MsgType should not be set to MQMT_REQUEST. If the SendReceive method is used to send and request a response from MQSeries, then the MsgType of MQMT_REQUEST is applicable (this is automatically set by the Siebel application). In Table 6, MsgType is set to TestMsgHeader. Table 7 summarizes the MQMD message headers that are exposed as properties in a property set.
MQMD Message Headers DataType MQCHAR4 MQLONG MQLONG MQLONG MQLONG MQLONG MQLONG MQLONG MQCHAR8 MQLONG Description Structure Identifier. Structure version number. Options for report messages. Message type. Message lifetime. Feedback or reason code. Numeric encoding of message data. Character set identifier of message data. Format name of message data. Message priority. Input/Output Property Not exposed. Output. Output. Input and output. Input and output. Output. Input and output. Input and output. Input and output. Input and output.
24
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 7. Field
MQMD Message Headers DataType MQLONG MQBYTE24 MQBYTE24 MQLONG MQCHAR48 MQCHAR48 MQCHAR12 MQBYTE32 MQCHAR32 MQLONG MQCHAR28 MQCHAR8 MQCHAR8 MQCHAR4 MQBYTE24 MQLONG MQLONG MQLONG MQLONG Description Message persistence. Message identifier. Correlation identifier. Backout counter. Name of reply queue. Name of reply queue manager. User identifier. Accounting token. Application data relating to identity. Type of application that put the message. Name of application that put the message. Date when message was put. Tine when message was put. Application data relating to origin. Group Identifier. Sequence number of logical message within group. Offset of data in physical message form start of logical message. Offset of data in physical message from start of logical message. Length of original message. Input/Output Property Input and output. Output. Output. Output. Input and output. Output. Output. Output. Output. Output. Output. Output. Output. Output. Output. Output. Output. Output. Output.
Persistence MsgId CorrelId BackCount ReplyToQ ReplyToQMgr UserIdentifier AccountingToken ApplIdentityData PutApplType PutApplName PutDate PutTime ApplOriginData GroupId MsgSeqNumber Offset MsgFlags OriginalLength
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
25
Command to create EAI Transport Data Handling Subsystem create named subsystem MYDataSubSys for subsystem EAITransportDataHandlingSubsys with DispatchWorkflowProcess="MQ Inbound Workflow" Command to create EAI Transport Connection Subsystem create named subsystem MYSubSys for subsystem mqseriesserversubsys with MQQueueManagerName=QueueMgr, MQPhysicalQueueName=LocalQueue Command to start a MqSeriesSrvrRcvr start task for component MqSeriesSrvRcvr with ReceiverConnectionSubsystem=MYSubSys, ReceiverDataHandlingSubsystem=MYDataSubSys, ReceiverMethodName=ReceiveDispatch When calling your workflow process by the MQSeries Server Receiver, it is not necessary to include a step to pull the messages off the queue and pass them to the next step. The MQSeries Server Receiver automatically pulls the messages off the queue and passes them on if: You have created a new process property of data type String and a default string of <Value>. This process property stores the inbound message text picked up by the MqSeriesSrvRcvr.
26
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MQSeries Transport Invoking a Workflow Process Using MQSeries Server Receiver
In your workflow process step, where you handle the inbound messages from IBM MQSeries, you insert an input argument of <Value> with type Process Property. The Property Name will be the name of the process property you created in the previous step. NOTE: When you type in <Value>, the display name may change to Message Text or XML Document.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
27
EAI MQSeries Transport Invoking a Workflow Process Using MQSeries Server Receiver
28
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter discusses Siebel Systems implementation of Microsoft MSMQ support with EAI MSMQ Transport and includes the following topics: About MSMQ on page 29 Configuring the EAI MSMQ Transport Servers on page 31 Configuring EAI MSMQ Transport for Various Send and Receive Scenarios on page 32
About MSMQ
Today, many large organizations are integrating various enterprise business applications into application networks. These networks allow applications to communicate with each other and share data, either automatically or by request. Technologies such as Microsoft Message Queuing (MSMQ) provide a messaging infrastructure for transporting data from one application to another, without the need for programming. MSMQ allows applications running at different times to communicate across heterogeneous networks and systems, even when one or many of those systems are temporarily offline. Because applications send messages to queues and read messages from queues, the messages are always available and remain in the queue for as long as required. For example, the messages will still be there when a system that was offline comes back online to retrieve them. Optionally, messages can be sent to a dead letter queue after a predetermined amount of time has passed to help make sure that only timely, relevant messages are received.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
29
30
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Microsoft Windows NT Server Enterprise Edition Windows 2000 Server Windows 2000 Advanced Server
MSMQ Server As many MSMQ Queues as needed Relevant ODBC driver Siebel Server Siebel Gateway Name Server Siebel Web Client Siebel Tools
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
31
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
The MSMQ Client As many MSMQ Queues as needed The relevant ODBC driver Siebel Server Siebel Gateway Name Server Siebel HTML Connected Client
NOTE: The MSMQ Server can reside on either machine. This functionality is independent of the underlying database platform. You can use any of the supported database platforms, including IBM DB2, DB2 UDB for z/OS, Oracle, and Microsoft SQL Server.
Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
The EAI MSMQ Transport and the Siebel Business Process Designer Manager work in tandem to transfer data using MSMQ from one Siebel application to another Siebel application or to an external application. You can set up a workflow and choose attributes and values to define the transport for a particular send or receive scenario.
Table 8.
EAI MSMQ Transport Parameters Description Should be set to True to indicate end of data. Name of the MSMQ Queue. Can be used for both sending and receiving messages. Machine that owns the queue specified by the physical queue name. Machine that owns the queue specified by MsmqRespQueueName.
32
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Table 8.
EAI MSMQ Transport Parameters Description Name of the response queue. Default is 20000 milliseconds. The amount of time that the EAI MSMQ Transport business service waits to receive a message. If no message is received in seconds specified in SleepTime, the TimedOut argument in the Output Property set will be set to True. Default is False. Set to ignore Correlation Id value on the inbound messages. If this flag is True, the message is picked up from the queue regardless of the correlation Id on the message. This parameter is ignored for the SendReceive Method because Correlation Id is required to match the response with the original message. This parameter must be set to True to support BizTalk integration.
IgnoreCorrelationId
LargeMessageSupport
Default is True. Set to enable or disable Large Messages (messages over 4MB) Support. IgnoreCorrelationId should be flagged False for Large Message Support.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
33
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
After you have created an integration object, you can then send the message corresponding to this integration object through EAI MSMQ transport, either as part of a business process flow (using Siebel Business Process Designer Manager), or as a custom business service.
34
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up an MSMQ queue to receive messages from the Siebel application. Give the queue an easyto-identify name, such as fromsiebel, as shown in the following illustration.
The MSMQ queue you create will appear in the list of queues.
Set the queue to be Transactional. NOTE: This flag allows Siebel applications to group a number of Send or Receive messages. This is critical when large data sets are being used because it allows a commit or a rollback to be executed without failure.
4 5
From the Site Map choose Administration - Business Process > Workflow Processes. Set up a workflow process for sending a message to MSMQ. Define the flow as shown in the following figure:
NOTE: For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Create the following process properties in the Process Property applet: Name Employee Message Employee XML Error Code Error Message Data Type Hierarchy Binary String String In/Out In/Out In/Out In/Out In/Out Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
35
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Value
Set up the first step of the workflow, after Start, to use EAI Siebel Adapter with the Query method to query the information from the Siebel Database using the following input and output arguments: Property Name Object Id Property Data Type String
Value -
Set up the second step to use XML Converter with the PropSetToXML method to convert the data extracted from the Siebel Database to XML format using the following input and output arguments: Input Arguments Siebel Message Property Data Type Hierarchy
Value -
Value -
Set up the third step to use EAI MSMQ Transport with the Send method to send the information to the external system, using the following input arguments: Property Data Type Binary
Value -
36
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Property Name -
10 Save the workflow and run it from the Workflow Process Simulator.
Confirm that a message was sent to the queue using the MSMQ Explorer. In this example, a message should be in the fromSiebel queue and should contain an XML file with employee information.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
37
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up a workflow process for sending a message out and receiving a message in response using EAI MSMQ Transport. Define the flow as shown in the following figure:
NOTE: For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Create the following process properties in the Process Property applet: Name Test Message Test XML Error Code Error Message Object Id Siebel Operation Object Id Data Type Hierarchy Binary String String String String In/Out In/Out In/Out In/Out In/Out In/Out In/Out Value -
38
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the first step of the workflow after Start to use EAI Siebel Adapter with the Query method to query the information from the Siebel Database using the following input and output arguments: Property Name Object Id Property Data Type String
Value -
Set up the second step to use XML Converter with the PropSetToXML method to convert the data extracted from the Siebel Database to XML format using the following input and output arguments: Property Name Test Message Property Data Type Hierarchy
Value -
Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
39
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the third step of the workflow process, after Start, to use EAI MSMQ Transport with the SendReceive method to receive the incoming XML message, using the following input and output arguments: Property Data Type -
Value fromsiebel Siebel2001 Machine name where the Siebel MSMQ Transport is running.
Property Name -
MsmqRespQueueMachineName MsmqRespQueueName
Literal Literal
Siebel2001A tosiebel
Value -
10 Set up the fourth step to use XML Converter with the XMLToPropSet method to convert the XML
message to a Siebel property set using the following input and output arguments: Input Arguments XML Document Property Name Test XML Property Data Type Binary
Value -
Value -
11 Set up the last step to use the EAI Siebel Adapter with the Insert or Update method to update
the Siebel Database, using the following input argument: Input Arguments Siebel Message Property Name Test Message Property Data Type Hierarchy
Value -
40
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
12 Save the workflow and run a test using the Workflow Process Simulator.
The Output Property set should have a message in the Value field. Additionally, the EndOfData argument in the property set should be set to True. NOTE: In order to test this scenario adequately, you must have a partner application that can accept the message and return a response. The correlation ID of the response message must be set to the message ID of the message originally sent by the Siebel application.
a b
Name the queue an easy-to-identify name, such as tosiebel. Create a message in the queue.
NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
From the Site Map choose Administration - Business Process > Workflow Processes.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
41
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up a workflow for receiving a message from MSMQ as shown in the following figure:
NOTE: For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Create the following process properties in the Process Property applet: Name Test Message Test XML Error Code Error Message Object Id Siebel Operation Object Id Data Type Hierarchy Binary String String String String In/Out In/Out In/Out In/Out In/Out In/Out In/Out Value -
Set up the first step of the workflow process after Start to use the EAI MSMQ Transport with the Receive method. This step receives the incoming XML message, using the following input and output arguments: Property Name Property Data Type -
Value tosiebel Siebel2001 Machine name where the Siebel MSMQ Transport is running.
Value -
42
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the second step to use the XML Converter with the XMLToPropSet method to convert the XML message to a Siebel property set, using the following input and output arguments: Input Arguments XML Document Property Name Test XML Property Data Type Binary
Value -
Value -
Set up the third object to use the EAI Siebel Adapter with the Insert or Update method to update the Siebel Database, using the following input arguments: Input Arguments Siebel Message Property Data Type Hierarchy
Value -
NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
Save the workflow process and run a test using the Workflow Process Simulator. Confirm that the message is removed from the queue using the MSMQ Explorer. In this example, if the message on the fromSiebel is valid, the Siebel Database should be updated with the message in the fromSiebel queue.
a b
Name the queue an easy-to-identify name, such as toSiebel. Create a message in the queue.
NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
43
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
3 4
From the Site Map choose Administration - Business Process > Workflow Processes. Set up a workflow process for receiving and dispatching a message from MSMQ as shown in the following figure:
NOTE: For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Create the following process properties in the Process Property applet: Name Test Message Test XML Error Code Error Message Object Id Siebel Operation Object Id Data Type Hierarchy Binary String String String String In/Out In/Out In/Out In/Out In/Out In/Out In/Out Value -
Set up the first step of the workflow process after Start to use the EAI MSMQ Transport with the ReceiveDispatch method. This step receives the incoming XML message, using the following input and output arguments: Property Name Property Data Type -
Value tosiebel Siebel2001 Machine name where the Siebel MSMQ Transport is running.
DispatchService DispatchMethod
Literal Literal
Value -
44
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the second step to use the XML Converter with the XMLToPropSet method to convert the XML message to a Siebel property set using the following input and output arguments: Input Arguments XML Document Property Data Type Binary
Value -
Value -
Set up the third object to use the EAI Siebel Adapter with the Insert or Update method to update the Siebel Database, using the following input arguments: Property Data Type Hierarchy
Value -
NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
Save the workflow process and run a test using the Workflow Process Simulator. The contents of the output property set depend on the business service and method specified in the DispatchService and DispatchMethod arguments. Also, the Output Arguments applet should automatically populate and EndOfData should be set to True.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
45
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Create a message in the queue. NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
4 5
From the Site Map choose Administration - Business Process > Workflow Processes. Set up a workflow process for receiving and dispatching a message from MSMQ as shown in the following figure:
NOTE: For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Create the following process properties in the Process Property applet: Name Test Message Test XML Error Code Error Message Object Id Siebel Operation Object Id Data Type Hierarchy Binary String String String String In/Out In/Out In/Out In/Out In/Out In/Out In/Out Value Test Message from Siebel -
46
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the first step of the workflow process after Start to use EAI MSMQ Transport with the ReceiveDispatchSend method to receive the incoming XML message, using the following input and output arguments: Property Data Type -
Value tosiebel Siebel2001 Machine name where the Siebel MSMQ Transport is running.
Property Name -
MsmqResponseMachineName
Literal
Siebel2001A Name of the machine where the queue receiving messages from Siebel application is located.
Value -
NOTE: For illustration purposes, Workflow Utilities Echo method is used as dispatch service method. This could be changed to any dispatch service method as per your business requirements.
Set up the second step to use the XML Converter with the XMLToPropSet method to convert the XML message to a Siebel property set using the following input and output arguments: Input Arguments XML Document Property Name Test XML Property Data Type Binary
Value -
Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
47
EAI MSMQ Transport Configuring EAI MSMQ Transport for Various Send and Receive Scenarios
Set up the third object to use the EAI Siebel Adapter with the Insert or Update method to update the Siebel Database, using the following input arguments: Input Arguments Siebel Message Property Name Test Message Property Data Type Hierarchy
Value -
NOTE: In order to test this scenario adequately, you must have a partner application that can put a valid message for the Siebel application in the queue.
10 Save the workflow process and run a test using the Workflow Process Simulator.
The contents of the output property set depends on the business service and method specified in the DispatchService and DispatchMethod arguments. Confirm that the message is removed from the queue using the MSMQ Explorer. In this example, the Siebel Database should be updated with the message in the fromSiebel queue. Also, a response message will be in the queue specified by the MSMQRespQueueName and MSMQRespQueueMachineName arguments.
48
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter includes the following topics: About the EAI Java Business Service on page 49 Prerequisites for Implementing a JBS on page 49 Creating a Java Business Service on page 51 About the Lifecycle of a Java Business Service on page 53 Example of a Java Business Service on page 53 About Restrictions for Implementing JBS on page 54 Troubleshooting the Java Business Service on page 54
The EAI Java Business Service works by creating a Java Virtual Machine (JVM) in-process with the Siebel application and invoking Java implementations using JNI. Each Siebel process (component) has at most one JVM. JVMs are not shared across components.
The named subsystem supplies the parameters to the JBS. There are three parameters: DLL. The complete path of the Java Runtime Environment library. On Windows, it is jvm.dll; on AIX, libjvm.a; on HP-UX, libjvm.sl; and on Solaris, libjvm.so.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
49
CLASSPATH. The classpath used by the Java virtual machine. The classpath must include the following Siebel JAR files as well as all Java code implementing the desired business service. The required Siebel JAR files are:
Siebel.jar SiebelJI_lang.jar (lang corresponds to the default language for your installation).
VMOPTIONS. Java virtual machine options. On all platforms, except AIX, it is recommended that the option -Xusealtsigs be used to make sure that the signal handlers used by the Siebel Server do not conflict with those of the JVM. NOTE: The option -Xusealtsigs is mandatory for use on the Sun Solaris platform. The JVM options will not load successfully into the object manager without the use of this option.
The following example shows how to create a named subsystem using the Siebel Server Manager: create named subsystem JAVA for subsystem JVMSubSys with DLL="D:\j2sdk1.4.2\jre\bin\server\jvm.dll", CLASSPATH="c:\cp\Siebel.jar;c:\cp\SiebelJI_enu.jar;c:\cp\myJARs.jar;.", VMOPTIONS ="-Xrs -Djava.compiler=NONE" Alternatively, the parameters to the Java Business Service may be specified in the application configuration file instead of a named subsystem. This should only be used in conjunction with the Siebel Mobile and Dedicated Web clients, and not the Siebel Server. [JAVA] DLL = D:\j2sdk1.4.2\jre\bin\server\jvm.dll CLASSPATH = c:\cp\Siebel.jar;c:\cp\SiebelJI_enu.jar;c:\cp\myJARs.jar;. VMOPTIONS = -Xrs -Djava.compiler=NONE
a b c 5
In the Profile Parameters list applet (the bottom applet), set the following values:
50
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Set the Value of the JVM Classpath parameter to one of the following:
The location of the JNDI.properties file (if using the JMS Transport). The JMS provider JAR files (if using the JMS Transport). The Siebel.jar and SiebelJI_enu.jar files. These files can be installed by using either Siebel Tools or the Siebel Server. An example of these files for Microsoft Windows follows: c:\bea\weblogic.jar;c:\siebel\jndi;c:\siebel\siebsrvr\CLASSES\Siebel.jar; c:\siebel\siebsrvr\classes\SiebelJI_enu.jar
b c
Set the Value of the JVM DLL Name parameter to the path where you have the jvm.dll file installed. For example, DLL= D:\j2sdk1.4.2\jre\bin\server\jvm.dll. Set the Value of the JVM Options record to any JVM-specific options that you would like to enable.
Depending on the platform, it is necessary to set certain environment variables to make sure of the proper loading of the JVM: AIX. Make sure that you have the environment variable LIBPATH set to include the JVM's /lib and classic directories. For example: setenv LIBPATH /usr/j2sdk14/lib:/usr/j2sdk14/classic:${LIBPATH} Also, make sure that the LD_LIBRARY_PATH is set correctly. HP-UX. Make sure that you have the environment variable SHLIB_PATH set to include the JVM's /jre and /bin directories and the server directory. For example:
setenv SHLIB_PATH /opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:${SHLIB_PATH}
Set the variable LD_PRELOAD to the full path of the Java library. Solaris, Windows. No additional settings are needed.
When a Java business service is invoked on UNIX from a server component (for example, the JMS Receiver; see Chapter 6, Java Message Service Transport for more information), the necessary settings must be done in the script that creates the component. For the receiver, the script is siebshw; for the application object managers, it is siebmtshw. These scripts are present in the /bin directory where the Siebel Server is installed.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
51
Add a Business Service User Property named @class, whose value is the fully qualified name of the Java class (for example, com.mycompany.siebelBusinessService.ImportCustomer).
52
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
53
If the Java business service states that the com.siebel.data.SiebelPropertySet class is not found, then the Siebel.jar files are not correctly specified in the CLASSPATH. If the Java business service implementation cannot be found, then the .class or .jar file containing its code is not properly specified in the CLASSPATH.
54
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter discusses the Siebel EAI Java Message Service (JMS) Transport and includes the following topics: About the Siebel EAI JMS Transport on page 55 About Synchronous and Asynchronous Invocation on page 56 About the JMS Publish-and-Subscribe Model on page 56 About Operations of the JMS Transport on page 56 Features Not Supported for Use with the Siebel JMS Transport on page 57 About JMS Message Types on page 57 About Sending and Receiving XML on page 58 About Multi-Step Operations Within a JMS Session on page 58 Undeliverable Messages in JMS Transport on page 59 Detailed Input and Output Specifications on page 59 Configuring the JMS Transport on page 64 Receiving, Dispatching, and Sending JMS Messages on page 70 Enabling Authentication and Authorization for the EAI JMS Transport on page 73 Troubleshooting for the JMS Transport on page 76 About Logging for the JMS Transport on page 77
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
55
56
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Java Message Service Transport Features Not Supported for Use with the Siebel JMS Transport
The following is a summary of supported operations for use with the JMS Transport: Receive. Receive a message from a JMS queue. ReceiveDispatch. Receive a message from a JMS queue, then dispatch. ReceiveDispatchSend. Receive a message from a JMS queue, dispatch, and then send the result to a (possibly different) JMS queue. The reply is sent to the SendQueue specified in the input to this method. (The JMSReplyTo header of the received message is ignored.) Send. Send a message to a JMS queue. SendReceive. Send a message to a JMS queue then receive a message from a (possibly different) JMS queue. The JMSCorrelationID header of the reply message must be equal to the JMSCorrelationID of the message sent, unless it is null (if none was provided as an input to SendReceive), in which case it must be the JMSMessageID of the message sent. Subscribe. Receive a message from a JMS topic. The subscriber identifier must be supplied as an input to this method. SubscribeDispatch. Receive a message from a JMS topic, then dispatch. The subscriber identifier must be supplied as an input to this method. Publish. Publish a message to a JMS topic.
Features Not Supported for Use with the Siebel JMS Transport
JMS has a feature called Message Selection, by which a receiver or subscriber may filter the messages it receives by specifying certain criteria. This feature is not supported by Siebel's JMS Transport. Also, it is not recommended that JMS messaging be used concurrently (for a single queue) with nonJMS messaging. For example, it is not recommended that a message be sent by way of JMS and later read using native tools. JMS vendors do not typically support such usage; it may result in the appearance of additional headers or additional obscure data in the body of the message.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
57
Conversely, the input to any method is also a property set. For methods that involve sending or publishing a message, the type of message sent or published depends on the type of the value of the input property set. If the type is Binary, then a BytesMessage is sent and published. If the type is String, then a TextMessage is sent and published. NOTE: The Siebel Business Service Simulator in the Siebel Call Center always creates the input with a value type of String.
58
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Each Dispatch operation is performed within a Siebel transaction. NOTE: ReceiveDispatch and ReceiveDispatchSend should not be attempted from within an existing Siebel transaction, as nested transactions are not supported. Also, as with all Siebel EAI receivers, if an operation fails during the execution of the JMS Receiver, the JMS Receiver component terminates. (A timeout is not a failure.)
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
59
Table 9.
Input
ConnectionFactory ReceiveQueue ReceiveTimeout SendQueue Topic ConnectionUsername ConnectionPassword SendUsername SendPassword ReceiveUsername ReceivePassword TopicUsername TopicPassword SubscriberIdentifier
Send
Publish
Receive
Receive
Subscribe
* * OPT
*1
OPT OPT OPT OPT -
JMS Headers
JMSPriority JMSDeliveryMode JMSExpiration JMSReplyTo +JMSType +JMSCorrelationID
-4
OPT OPT
-3
Dispatch
++ConnectionSubsyste m +++DataHandlingSubsy stem
OPT -
OPT -
OPT -
OPT
OPT -
OPT OPT
OPT OPT
OPT OPT
60
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 9.
Input
DispatchService DispatchMethod DispatchWorkflowProc ess DispatchRuleSet ++++ConverterService
Send
Publish
Receive
Receive
Subscribe
Some special notes regarding particular values in Table 9: OPT2: These values are assigned to the reply message during the Send step. OPT5: One of 3 combinations is required for these method arguments: (DService && Dmethod), DWProcess, or DRuleSet. *1: The JMSReplyTo header of the received message is ignored. The reply is always sent to the configured SendQueue. The JMSReplyTo header of the reply will be set to this value. -3: The JMSCorrelationID of the reply message cannot be set directly. The JMSCorrelationID of the reply message is set to the JMSCorrelationID of the received message, unless empty, in which case it is set to its JMSMessageID. -4: The JMSReplyTo header of the sent message is set to the value of the ReceiveQueue argument. +: An input argument that can also be used as an output argument. ++: For this input argument, a subsystem may be provided instead of the connection parameters. However, it must contain the same required method arguments as used for the connection parameters. +++: For this input argument, a subsystem may be provided instead of the dispatch parameters. However, it must contain the same required method arguments as used for the dispatch parameters. ++++: This input argument is used to process the output of the received message before dispatching. The ConnectionUsername and ConnectionPassword input parameters apply to IBM MQ only. The SendUsername, SendPassword, ReceiveUsername, ReceivePassword, TopicUsername, and TopicPassword input parameters apply to BEA WebLogic only.
In lieu of providing the arguments individually, the single argument ConnectionSubsystem may be provided. Its value must be the name of a valid named subsystem of type JMSSubsys, and it must include all of the arguments that are required by the method to which it is passed. See About the JMS Receiver on page 65 for more information about that named subsystem.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
61
JMS message properties are also supported as input arguments (properties) as described in JMS Headers and Properties on page 59. Table 10 provides details for each input argument about the allowable values, default values, and special values, as well as the behavior if an invalid value is passed.
ConnectionUsername ConnectionPassword SendQueue SendUsername SendPassword ReceiveUsername ReceivePassword TopicUsername TopicPassword Topic SubscriberIdentifier
NONE NONE NONE NONE NONE NONE NONE NONE NONE NONE NONE
Valid username Valid password JNDI queue name Valid username Valid password Valid username Valid password Valid username Valid password JNDI topic name ANY STRING ERROR N/A ERROR
JMS Headers
JMSCorrelationID JMSPriority NOT SET javax.jms.Message.DEFAUL T_PRIORITY ( = 4) javax.jms.DeliveryMode.P ERSISTENT javax.jms.Message.DEFAUL T_TIME_TO_LIVE (= 0) NOT SET SiebelJMSMessage ANY STRING ANY INTEGER 0 <= x <= 9 PERSISTENT, NON_PERSISTENT ANY INTEGER x >= 0 0: Message never expires (0 lowest; 9 highest) N/A DEFAULT
JMSDeliveryMode JMSExpiration
DEFAULT DEFAULT
JMSReplyTo JMSType
ERROR N/A
Dispatch
ConnectionSubsystem NONE A JMSSubsys named subsystem ERROR
62
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
DataHandlingSubsystem
Table 11 enumerates for each method of JMS Transport the JMS headers and other distinguished properties that appear as properties of the output property set of the method. An asterisk (*) means the argument is present; a dash (-) means the argument is absent.
Table 11.
Output
TimedOut +JMSType +JMSCorrelationID JMSRedelivered
Send
Publish
Receive
Receive
Subscribe
* * * *
* * * *
* * * *
* -
* -
* -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
63
Table 11.
Output
JMSTimestamp JMSMessageID DispatchError
Send
Publish
Receive
Receive
Subscribe
*1 -
*1 -
* *2 -
* *2 -
* *2 -
*1 *
Some special notes regarding the information in this table: *1: JMSMessageID, the value assigned by the JMS server of the sent (or published) message. *2: JMSMessageID, the value assigned by the JMS server of the received (or subscribed) message. +: An output argument that can also be used as an input argument.
All other message properties (user-defined; not JMS headers) are provided as output properties with SIEBEL_JMS: prepended to the original property name, and the value is converted to a String. For the multi-step methods ReceiveDispatch, ReceiveDispatchSend, and SubscribeDispatch, properties are passed between the individual steps according to the following rules: All outputs of the Receive (or Subscribe) step are passed as inputs to the subsequent Dispatch step. In the case of an error during the Dispatch step, its output is returned. The input to the Dispatch step includes all properties in the original input as well as properties returned by the Receive (or Subscribe) step.
64
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
To verify that the CLASSPATH and jndi.properties are properly configured, refer to Troubleshooting for the JMS Transport on page 76.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
65
For a discussion of named subsystems for the Siebel EAI, see Chapter 2, EAI Transports and Interfaces Overview. For more information on administering named subsystems, see the Siebel System Administration Guide.
a b c 5
In the Profile Parameters list applet (the bottom applet), specify the parameters required for the type of operations the subsystem will need to support (for example, Receive or ReceiveDispatchSend). For example, if this subsystem needed to support the ReceiveDispatchSend operation, at least the following values must be set:
a b c d e
ConnectionFactory name = examples.jms.QueueConnectionFactory JVM Subsystem name = JAVA ReceiveQueue name = examples.jms.fromSiebel SendQueue name = examples.jms.toSiebel Receive Timeout = 1000
66
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Set up a JMS queue to send messages to the Siebel application. Refer to your JMS provider documentation on how to administer, monitor and define new persistent queues.
a b
Give the queue an easy-to-identify name, such as toSiebel. Create a message in the queue.
NOTE: In order to test this scenario adequately, you must have a partner application that can place a valid message for the Siebel application in the queue.
3 4
From the Site Map choose Administration - Business Process > Workflow Processes. Configure and deploy a workflow process for sending a message out and receiving a message in response using the EAI JMS Transport. Define the flow as shown in the following figure.
For details on the Business Process Designer, see the Siebel Business Process Designer Administration Guide.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
67
Create the following process properties in the Process Properties applet: In/ Out In In
examples.jms.ConnectionFactory
Name OrderXML
JMSConnectionFactory
Default String
Comments
JNDI name of the JMS connection factory JNDI name of the queue JNDI name of the queue
JMSReceiveQueue
In In In In
examples.jms.toSiebel
JMSSendQueue
JMSReceiveTimeout
examples.jms.fromSiebel
180000
Order Message
Set up the first step of the workflow to use the Siebel Order ASI with the QueryById method to query the information from the Siebel database using the following input and output arguments: Input Argument PrimaryRowId Type Process Property Value Property Name Object Id
Value
Set up the second step of the workflow to use the EAI XML Converter with the IntObjHierToXMLDoc method to convert the data extracted from the Siebel database to XML using the following input and output arguments: Input Argument
GenerateProcessingInstructions
Value False
Property Name
SiebelMessage
Order Message
Value
68
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Set up the third step of the workflow process, after Start, to use the EAI JMS Transport with the SendReceive method using the following input and output arguments: Input Argument <Value> ConnectionFactory ReceiveQueue ReceiveTimeout SendQueue Type Process Property Process Property Process Property Process Property Process Property Value Property Name OrderXML JMSConnectionFactory JMSReceiveQueue JMSReceiveTimeout JMSSendQueue
Value
Set up the fourth step to use the EAI XML Converter with the XMLDocToIntObjHier method to convert the XML message to an Integration Object using the following input and output arguments: Input Argument <Value> Type Process Property Value Property Name OrderXML
Value
10 Set up the last step to use the Siebel Order ASI with the Synchronize message to update the
Siebel database using the following input and output arguments: Input Argument SiebelMessage Type Process Property Value Property Name Order Message
Value
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
69
Java Message Service Transport Receiving, Dispatching, and Sending JMS Messages
Set up a JMS queue to send messages to the Siebel application. Refer to your JMS provider documentation on how to administer, monitor and define new persistent queues.
a b
Give the queue an easy-to-identify name such as toSiebel. Create a message in the queue.
NOTE: In order to test this scenario adequately, you must have a partner application that can place a valid message for the Siebel application in the queue.
3 4
Navigate to Administration - Business Process > Workflow Processes. Configure and deploy a workflow process to process the incoming XML request. The following workflow process receives the incoming XML document and converts it to an integration object, executes a query using Siebel Order application service, and converts the response to an XML document as shown in the following figure:
70
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Java Message Service Transport Receiving, Dispatching, and Sending JMS Messages
Create the following process properties in the Process Properties applet: Default String <Value>
Set up the first step of the workflow process, after Start, to use the EAI XML Converter with the XMLDocToIntObjHier method. This step will convert the incoming XML document to an integration object representation using the following input and output arguments: Input Argument <Value> Type Process Property Value Property Name <Value>
Value
Set up the second step to use the Siebel Order ASI with the QueryByExample method. This step will query the Order business object based upon the provided XML document using the following input and output arguments: Input Argument SiebelMessage Type Process Property Value Property Name Order Message
Value
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
71
Java Message Service Transport Receiving, Dispatching, and Sending JMS Messages
Set up the third step to use the EAI XML Converter with the IntObjHierToXMLDoc method. This step will convert the integration object to a well-formed XML document using the following input and output arguments: Input Argument SiebelMessage Type Process Property Value Property Name Order Message
Value
Save and deploy the workflow process. For details on deploying workflow processes, see the Siebel Business Process Designer Administration Guide.
10 Define a JMS Connection subsystem using SrvrMgr (command line utility) or the Server
Administration screen. NOTE: The Siebel Server needs to be restarted in order for the new subsystem to be available. Following is an example using SrvrMgr. NOTE: ConnectionFactory, ReceiveQueue and SendQueue require JNDI names, which will vary depending upon the JMS provider and your implementation. create named subsystem JMSToFromSiebel for subsystem JMSSubsys with ConnectionFactory="jndiName.ConnectionFactory", ReceiveQueue="jndiName.toSiebel ", SendQueue="jndiName.fromSiebel", ReceiveTimeout=3000
11 Define a data handling subsystem to dispatch the message from the toSiebel queue to the
workflow process defined as previously defined (JMS Query Order). NOTE: The Siebel Server needs to be restarted in order for the data handling subsystem to be available. create named subsystem QueryOrder for subsystem EAITransportDataHandlingSubsys with DispatchWorkflowProcess="JMS Query Order"
12 After restarting the Siebel Server, start a new JMS Receiver from the SrvrMgr command line.
Following is an example that instructs the receiver to use the JMSToFromSiebel connection subsystem defined in Step 10, the QueryOrder data handling subsystem defined in Step 11, and instructs the receiver to use the ReceiveDispatchSend method of the EAI JMS Transport. start task for comp JMSReceiver with ReceiverConnectionSubsystem= JMSToFromSiebel, ReceiverDataHandlingSubsystem=QueryOrder, ReceiverMethodName=ReceiveDispatchSend
72
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Java Message Service Transport Enabling Authentication and Authorization for the EAI JMS Transport
The responsibility of the Siebel EAI JMS Transport business service as a JMS client is twofold: Provide configuration mechanism and read credentials from the Siebel application configuration file. Establish proper security context for executing privileged operations.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
73
Java Message Service Transport Enabling Authentication and Authorization for the EAI JMS Transport
Send and receive credentials are specified separately because some JMS business service methods (SendReceive and ReceiveDispatchSend) contain both send and receive operations, and it is possible that SendQueue and ReceiveQueue are protected by different credentials.
To configure the EAI JMS Transport business service against the BEA WebLogic JMS server 1 2 3
Authorize a user to send from SendQueue using SendUsername and SendPassword. Authorize a user to receive from ReceiveQueue using ReceiveUsername and ReceivePassword. Authorize a user to publish and subscribe to and from Topic using TopicUsername and TopicPassword. By default, the BEA WebLogic server does not require a username or password to connect to or lookup JNDI objects. If the server does require this, configure the EAI JMS Transport business service following Step 4 and Step 5.
74
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Java Message Service Transport Enabling Authentication and Authorization for the EAI JMS Transport
ConnectionUsername and ConnectionPassword are set to a user that can connect to the JMS server, but the user has no privileges for any JMS destinations. ConnectionUsername and ConnectionPassword can also be left blank if the JMS server accepts anonymous connections.
If JNDI lookup is protected, then jndi.properties file should contain the java.naming.security.principal and the java.naming.security.credentials parameters that are used to perform the JNDI lookup. NOTE: The JNDI principal and credentials are set to a user who can only perform the JNDI lookup, but has no privileges for any JMS destinations.
2 3
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
75
Table 12 contains more details of the arguments for use with the JMS Transport. The arguments listed are used by all three methods.
Arguments to Use with the JMS Transport for Certain Methods Argument
ConnectionFactory
Display Name
Connection Factory
Type
Input
Description The JNDI name for the JMSConnectionFactory. The JNDI name for the queue (optional). The JNDI name of the topic (optional).
CheckJNDIObjects CheckJMSServer
SendQueue
Send Queue
Input
CheckAll
Topic Topic Input
76
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Java Message Service Transport About Logging for the JMS Transport
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
77
Java Message Service Transport About Logging for the JMS Transport
78
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter discusses EAI HTTP Transport, its methods, and workflow examples illustrating using EAI HTTP Transport with different methods. This chapter consists of the following topics: About the EAI HTTP Transport on page 79 Using POST and GET on page 80 EAI HTTP Transport Named Subsystems on page 81 General Information on How to Send a Message on page 81 Using the EAI HTTP Transport for Inbound Integration on page 84 EAI HTTP Transport for Inbound Messages on page 90 Handling EAI HTTP Transport Business Service Errors on page 93 Processing and Sending Outbound XML Documents on page 93 Sending and Receiving Messages with the EAI HTTP Transport on page 95 Examples Using HTTP Request on page 98 About Transport Headers and HTTP Response Headers on page 100 EAI HTTP Transport Method Arguments on page 101
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
79
Each method has its own arguments, techniques, and applications. The EAI HTTP Transport allows you to send messages across the Internet using the standard HTTP protocol. Using this transport, you can send messages to any URL. The XML document sent can then be acted upon by any Webbased application, including those written in Java, JavaScript, VBScript, or any other Web-enabled technology.
80
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
The EAI HTTP Transport imposes certain restrictions on your use of transport features when using POST or GET method. Table 13 identifies restrictions on these HTTP methods.
Restrictions on GET and POST Methods with EAI HTTP Transport Restriction The HTTP Body has no significance when using GET. During a GET process, only the universal resource locator (URL) is used for the request. The HTTP Body is relevant only when using POST. The HTTP Body is encoded with a default mechanism used to encode URLs.The HTTP Content-Type application/xxxform-urlencoded is the default content type used for request bodies. The content is sent as it is without any special content encoding, such as Base64.
NOTE: You previously specified properties by means of .cfg file entries. You can continue to do so, but you should switch over to using named subsystems because *.cfg file entries will not be supported in future releases. Only named subsystems will work for new functionality such as Dispatch Service and Character Set Conversions. You can create additional named subsystems as needed using Siebel Server Manager. For a discussion of named subsystems for Siebel EAI, see Chapter 2, EAI Transports and Interfaces Overview. For more information on named subsystems, see the Siebel System Administration Guide.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
81
Refine the integration object created in Step 1 to specify just those business components and fields that you want to exchange with the external application. NOTE: For details about integration objects, see the Integration Platform Technologies: Siebel Enterprise Application Integration guide.
Create a workflow process, using Business Process Administration, to send this information to an external system as shown in the following figure:
Create the following process properties in the Process Property applet: Data Type Integration Object Binary String String String String In/Out In/Out In/Out In/Out In/Out In/Out In/Out Value -
Name Account Message Account XML Error Code Error Message Object Id Siebel Operation Object Id
Row Id of an account
-
Set up the first step of the workflow after Start to use the EAI Siebel Adapter with the Query method to query the information from the Siebel Database, using the following input and output arguments: Property Name Object Id Property Data Type String
Value -
82
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Set up the second step to use the EAI XML Converter with the IntObjHierToXMLDoc method to convert the data extracted from the Siebel Database to XML format, using the following input and output arguments: Input Arguments Siebel Message Property Name Account Message Property Data Type Integration Object
Value -
Value -
Set up the third step to use the EAI HTTP Transport with the Send method to send the information to the external system, using the following input arguments: Property Name Account XML Property Data Type String
Value -
e 4
Specify how this workflow will be invoked using one of the following methods:
Configure the RunTime Events to trigger the workflow. Create a button on the appropriate view in the Siebel application to call this workflow process. Use workflow policies on the opportunity business object to trigger the workflow process.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
83
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
To configure the SWE to run the EAI HTTP Transport for inbound integration 1 2 3
Open your eapps.cfg file in a text editor. Look for the section [/eai_lang]. Where lang is the three-letter language code for the language you are using, such as enu for U.S. English. Add the EnableExtServiceOnly configuration parameter or set it as follows, if it already exists, to enable the HTTP inbound transport. This example shown is for use with UNIX in an English environment. [/eai_enu] ConnectString = Connect String EnableExtServiceOnly = TRUE For the virtual directory, you need to set the ConnectString parameter. The syntax for the ConnectString is:
84
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
transport = TCPIP or http. encryption = none or mscrypto. compression = none or zlib. SiebelServer = the name of your Siebel Server. SCBPort = Listening port number for the SCBroker component (default is 2321). EnterpriseName = the name of your Siebel Enterprise Server. XXXObjMgr_lang = the type of Object Manager for the Siebel Business Application you are
installing and the language code used for this installation. The following example shows the connect string using TCP/IP, with no encryption, no compression, and the server name and default port. In addition, you need to point to the Siebel Object Manager specific to the Siebel Business Application you are installing. In the example connect string, the Siebel Business Application installed is Siebel Sales, and the Siebel Object Manager is called EAIObjMgr.
ConnectString = siebel.TCPIP.None.None://server1:2321/siebel77/EAIObjMgr_enu
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
85
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
To view the session mode from an HTTP application into an EAI HTTP Transport 1 2
Log in to the Siebel application. If successful, an HTTP session cookie gets returned in HTTP setcookie header. Submit one or more requests. Each request is intended as a call to a Siebel business service. Requests must contain the session cookie from Step 1 in the HTTP cookie header.
Log off. The request must contain the session cookie from Step 1 in the HTTP cookie header. The cookie refers to the session to be closed. The Session cookie is passed to the caller after a successful login request as in Step 1. The caller then should use that cookie for subsequent data requests in Step 2 and the log off request in Step 3.
NOTE: For session mode inbound HTTP requests, the expiration date of the cookie sent to the client application will not be set as it is expected that this cookie will be used to send multiple requests within the same session.
Login HTTP Request Example 1 In this example, if the call completes successfully, it will return a session cookie. Using HTTP GET URL = http://webserver/path/ start.swe?SWEExtSource=source&SWEExtCmd=ExecuteLogin&UserName=username&Password=pa
ssword
Using HTTP POST URL = http://webserver/path/start.swe
HTTP Body = SWEExtSource=source&SWEExtCmd=ExecuteLogin&UserName=username&Password=password Table 14 presents each of the Login HTTP Request variables for session mode.
Session Mode Variables Description URL of the Web server that has Siebel Web Engine installed, such as www.myserver.com. Virtual path on the server referring to specific SWE configuration. This value should be eai.
webserver path
86
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
Session Mode Variables Description If you are not using named subsystems, this is the name of the Business Service Source as specified in [HTTP Services] section in the .cfg file that describes the Business Service call. Siebel user name for the Siebel Object Manager login. Password for the login user name above.
username password
Example Login URL http://www.myserver.com/eai/ start.swe?SWEExtSource=SiebelQuery&SWEExtCmd=ExecuteLogin&UserName=user1&Password= login123 Login HTTP Request Example 2 In this example, for the call to complete successfully, it must include the session cookie from the login.
Using HTTP GET URL = http://webserver/path/start.swe?SWEExtData=data text Using HTTP POST URL = http://webserver/path/start.swe HTTP Body = data text where data text is the business service input data. Most of the time, this is the text of an XML document that on the server side is converted to a PropertySet and passed to the business service.
Example Request URL http://www.myserver.com/eai/start.swe?SWEExtData=<?xml version="1.0" encoding="UTF8"?><SiebelMessage MessageId="" MessageType="Integration Object" IntObjectName="Sample Account"> <ListofSampleAccount> <Account> <Name>A. K. Parker Distribution</Name> <ListOfContact> <Contact> <FirstName>Stan</FirstName>
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
87
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
<LastName>Graner</LastName> </Contact> </ListOfContact> </Account> </ListofSampleAccount> </SiebelMessage> To use this URL, you change the WebServer address www.myserver.com to the actual server URL you will be using. Data that is sent as part of the URL should be Unicode-encoded before being URLencoded. POST requests can send the data without URL encoding and should include the ContentType HTTP header. The Content-Type should specify the charset of the incoming data as in ContentType=text/xml;charset="UTF-8. NOTE: For XML messages being received by way of the Inbound HTTP Transport, only a Unicode (UTF-8 or UTF-16) format (with accordant encoding XML-processing header attribute and encoded XML data) is allowed. No ISO or Windows code pages are accepted.
Logoff HTTP Request This request must include the session cookie from Login.
Using HTTP GET URL = http://webserver/path/start.swe?SWEExtCmd=Logoff NOTE: HTTP GET should always be used for the Logoff HTTP Request.
88
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Using the EAI HTTP Transport for Inbound Integration
Using HTTP GET URL = http://webserver/path/ start.swe?SWEExtSource=source&SWEExtCmd=Execute&UserName=username&Password=passwor d&SWEExtData=data text NOTE: Unlike session mode, the SWEExtCmd is Execute, not ExecuteLogin.
Using HTTP POST URL = http://webserver/path/start.swe HTTP Body = SWEExtSource=source&SWEExtCmd=Execute&UserName=username&Password=password&SWEExtDa ta=data text NOTE: When using the sessionless mode with the POST method, the XML data text must be URLencoded to prevent any errors. Table 15 presents each of the variables for sessionless mode.
Sessionless Mode Variables Description URL of the Web server that has Siebel Web Engine installed, such as www.myserver.com. Default is eai. Virtual path on the server referring to specific SWE configuration. If you are not using named subsystems, this is the name of the Business Service Source as specified in [HTTP Services] section in the .cfg file that describes the Business Service call. Siebel user name for the Siebel Object Manager login. Password for the login user name. Business service input data. Most of the time, this is the text of an XML document that on the server side is converted to a PropertySet and passed to the business service. For more information on how to pass Properties and PropertySet to Business Services, see the Siebel Business Process Designer Administration Guide.
Example Sessionless Mode URL NOTE: This sample URL should be entered as a single line of text. The URL is presented here on separate lines for clarity. http://www.myserver.com/eai/start.swe?SWEExtSource=SiebelQuery& SWEExtCmd=Execute&UserName=user1&Password=login123 &SWEExtData=<?xml version="1.0" encoding="UTF-8"?><SiebelMessage MessageId="" MessageType="Integration Object" IntObjectName="Sample Account"> <ListofSampleAccount>
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
89
<Account> <Name>A. K. Parker Distribution</Name> <ListOfContact> <Contact> <FirstName>Stan</FirstName> <LastName>Graner</LastName> </Contact> </ListOfContact> </Account> </ListofSampleAccount> </SiebelMessage> To use this URL you will: Change the WebServer address, www.myserver.com, to your actual Web server URL. Verify that the SWEExtSource argument has a corresponding section in your eai.cfg file in the [HTTP Services] section. Change the Username and Password arguments to a valid system user, such as SADMIN/ SADMIN.
Both steps are explained in this section. This scenario assumes incoming XML. Your business requirements dictate if and how you need to adapt these steps to fit your needs.
90
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
a b
Enter ProcessName in the Name column. Enter EAITEST in the Value column, as shown in the following illustration.
5 6 7
Compile a new .srf file and copy it to the SIEBSRVR_ROOT\Object directory. Restart the Siebel Server. Verify that the EAI Object Manager has started.
Select the Process Properties tab and add the following properties: Default String <Value>
Name IncomingXML
In/Out In/Out
Description By creating the IncomingXML process property, anything that is sent as data will be placed in this variable. This allows you to then perform a given action on that data. If the POST method was used, the data sent in the Body will be stored in this property. If the GET method was used, the data sent in the URL will be stored in this property. This is hierarchy format of the incoming XML.
Account Message
Hierarchy
In/Out
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
91
Default String -
Description Used to get the XML string that has been read or converted. It indicates the content type of the response body. If you want to see the response in the same Web page then you need to set this parameter to text/ html.
Set up the first step of the workflow after Start to use the EAI XML Converter with the XML Document to Integration Object Hierarchy method. This step converts the message, using the following input and output arguments. Property Name IncomingXML Property Data Type Hierarchy
Value -
Value -
Set up the second step to use the EAI Siebel Adapter with the Insert or the Update method and the following input and output argument to update the Siebel Database. Input Arguments Siebel Message Type Process Property Value Property Name Account Message Property Data Type Hierarchy
Type Literal
Output Argument -
NOTE: The HTTP response for inbound requests is determined by looking at the <Value> portion of the output property set. HTTP response headers can be set by setting properties on the output property set.
Save your workflow process and test it using the Workflow Simulator.
92
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Handling EAI HTTP Transport Business Service Errors
Specifying Parameters as Business Service User Properties You specify parameters as business service user properties in Siebel Tools. These parameters go into effect when you have compiled the .srf file. When using this method, keep the following in mind:
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
93
These parameters stay in effect as long as you continue to use the same .srf file and do not recompile it with a newer specification for the business service parameters. If you define the same parameter as a subsystem parameter or as a run-time property, the subsystem parameter or run-time property overrides any values you have defined in Siebel Tools and compiled into the .srf file.
Specifying Parameters as Subsystem Parameters You can specify parameters on either the client side or the server side, depending on whether you use the client or server version.
4 5
Save the file and exit the text editor. In the workflow process, specify HTTPSubSys in the Connection Subsystem parameter value.
a b c 5
In the Profile Parameters list applet (the bottom applet), specify the parameters required for the type of operations the subsystem will need to support:
a b
Then, in the workflow process on the Siebel Web Client, you will specify the Connection Subsystem input argument to the HTTP Transport, and the value will be the named subsystem that you created. For the case above, it will be HTTP_test. You can run the workflow process in Simulator using the Siebel Web Client.
94
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Sending and Receiving Messages with the EAI HTTP Transport
About Parameters as Run-Time Properties You specify HTTP parameters as run-time properties by passing them as values in an input property set to the EAI HTTP Transport business service. You can pass the values to the business service by way of a workflow or through a program that calls the EAI HTTP Transport business service directly. NOTE: Subsystem parameters take precedence over run-time parameters.
About Parameters in Parameter Templates Parameter templates allow you more flexibility in specifying parameters. You can use variables to specify certain elements of a given parameter value. The following example shows how to specify a variable for a login password, rather than hard-coding a password into the parameter. HTTPLoginURLTemplate = http://www.srvr.com/login?Username=ronw&Password=$PWD$ where PWD = 421ax7 The business service, EAI HTTP Transport in this case, receives the parameter template. The token, shown above as $PWD$, indicates that the business service should look for a parameter called PWD from a user property or run-time parameter. Dollar signs ($) delimit the token in the template definition. The token specifies the actual password variable. The token is case-sensitivePwd is different from PWD or pwd. The token must be defined as either a business service user property or as a run-time parameter in the input property set. For example, you could specify the HTTPLoginURLTemplate as a user property of the business service, and username and password as run-time properties. Any logins that specify the template will always use the same template, but different users can specify unique user names and passwords at run time.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
95
EAI HTTP Transport Sending and Receiving Messages with the EAI HTTP Transport
Create a named subsystem MyEchoSubsys for subsystem EAITransportDataHandlingSubsys using the following lines: DispatchService=Workflow Utilities DispatchMethod=ECHO
In your eai.cfg file, add the following line in the [HTTP Services] section: MyEcho = MyEchoSubsys
4 5 6
Log in to the Siebel client as an administrator connected to the server. From the Site Map choose Administration - Business Process > Workflow Processes. Create a new workflow process as shown below.
Select the Process Properties tab and add the following properties. Default String 1-548 -
Name Employee Message Employee XML Error Code Error Message Object Id Response
96
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Sending and Receiving Messages with the EAI HTTP Transport
Retrieve employee message using the EAI Siebel Adapter with the Query method to query the information from the database using the following input and output arguments. Property Name Object Id Property Data Type Sting
Value -
Convert the message to XML using the EAI XML Converter with the Integration Object Hierarchy to XML Document method and the following input and output arguments to convert the message. Property Name Employee Message Property Data Type Hierarchy
Value -
Value -
10 Send and receive the converted XML message using the EAI HTTP Transport with the Send and
Receive Response method and the following input and output arguments. Property Name Employee XML Property Data Type String -
Value HTTPsendreceive_conn
Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
97
11 Write the message to the file using the EAI File Transport with the Send method and the following
input arguments. Input Arguments Message Text File Name Property Name Response Property Data Type Binary -
Value C:\SendRec.txt
12 Save your workflow process and test it using the Workflow Simulator.
HTTPRequestURLTemplate = "http://$ServerPath$/start.swe?SWEExtData=<Prop>somedata</
Prop>
HTTPRequestMethod=GET"
The following URL logs off from the server: HTTPLogoffURLTemplate = "http://$ServerPath$/start.swe?SWEExtCmd=Logoff"
98
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI HTTP Transport Creating Custom Headers for the EAI HTTP Transport Service
In the preceding example, the ServerPath variable value of siebel1/eai is substituted for the token $ServerPath$. The Source variable value of testdoc is substituted for the $Source$ token, the Username variable value of pdavis for the token $Username$, and the Password variable value of 1234abcd for the $Password$ token. Any XML document represented by the entry for SWEExtData can be put into the body. This would change the sample code so that the HTTPRequestURLTemplate would read as:
HTTPRequestURLTemplate = "http://$ServerPath$/start.swe?
HTTPRequestMethod = "POST" HTTPRequestURLTemplate = "https://accounts.mypartner.com/server/login.asp" HTTPRequestBodyTemplate = "Acct=ABCIntl&User=$Username$&pwd=$Password$" Username = "acctuser" Password = "123456789abcdefg"
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
99
EAI HTTP Transport About Sending and Receiving Messages through HTTP
HDR.CustomHttpHeader httpInPS.SetProperty("HDR.CustomHttpHeader","MyValue"); httpSvc.InvokeMethod("SendReceive", httpIn, httpOut); A custom HTTP header with a name of "CustomHttpHeader", and a value of "MyValue" is the result.
100
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Each cookie in the transport header has a distinct name. Two cookies with the same name cannot be present in the transport header at the same time. The second cookie will overwrite the first one. Therefore, since the transport header is implemented as a CSSMapStringToPtr class, each cookie is hashed in the transport header based on its name.
Type HTTP Version 1 and above. Preliminary Netscape cookie spec type.
When a ToString function is called on the transport header, it scans through the header and collects all the cookies in the header and creates a request transport header (based on the cookie category). The transport header is cleared when the connection is terminated. During SendReceive, the HTTP response has HTTP headers associated with it. Expose those response HTTP headers as properties of the output property set. All these HTTP header properties are distinguished from other properties by appending the prefix HDR. in front of the property (header) name.
Also, HTTP Status code for the HTTP request sent by way of EAI HTTP Transport is exposed as a property in the output property set. The property is called StatusCode.
Table 16.
EAI HTTP Transport Send and SendReceive Arguments Display Name User-Defined Message Text S SL Description Input and Output data passed as a string. This is the value stored in the Value field of the property set, either input or output. If you specify the HTTPRequestBodyTemplate, the <Value> parameter is ignored and the HTTPRequestBodyTemplate parameter is used instead. Template for the request URL, which is the address to which the data is sent or from which a response is requested.
Parameter <Value>
HTTPRequestURLTemplate
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10 1
Table 16.
EAI HTTP Transport Send and SendReceive Arguments Display Name Request Method Request Body Template Login URL Template S SL Description HTTP method to use with the data request, such as Post and Get. HTTP Body to use with the POST method. This overrides any body specified in the Value field of the input property set. Template for the URL used for the login operation. This operation is separate from the request operation and assumes communication mode is session mode. If there is a separate login, one or more request and response messages are expected. HTTP method to be used for logging in. If no Login Method is specified, this parameter defaults to the HTTPRequestMethod value. Specifies the HTTP request body that should be used when HTTPLoginURLMethod is POST. By putting login information into the HTTP body (as opposed to putting it into the URL) for sending, this method provides stronger security than sending the login information in the URL. Generally, the login parameters in a login query are specified in the body of the request that uses the POST method. This is required for session mode only if the HTTPLoginMethod parameter is set to POST. Template for the URL that is used for the logoff operation. This operation is separate from the request operation and assumes that the mode of communication is session mode. If set, the logoff operation will be completed. Otherwise, logoff is skipped. The purpose of the logoff operation is to end a session that was started with the corresponding login.
HTTPLoginURLTemplate
HTTPLoginMethod
Login Method
HTTPLoginBodyTemplate
HTTPLogoffURLTemplate
102
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 16.
EAI HTTP Transport Send and SendReceive Arguments Display Name Log Off Method HTTP Accept S SL Description Defaults is HTTPLoginMethod. HTTP method to be used for logging off. Default is text/*. The explicit value for the Accept: header to override the default. Specifies the MIME types accepted by the sender. Default is application/xxx-formurlencoded. The explicit value for the Content-Type: header to override the default. Specifies the type of data sent in the body of the request. Default is Mozilla/4.0. The explicit value for the User-Agent: header to override the default. Specifies the name/version of the client program. Maximum number of seconds to allow connections to be idle. After the elapsed max idle time, the connection is invalidated and restarted. Default is N. By default, the responses for specific URL addresses are not cached by the EAI HTTP Transport. Set this flag to Y to enable caching. Note that this can lead to undesirable side effects, as old data from earlier requests can be exposed from the cache buffer.
HTTPContentType
HTTPUserAgent
HTTPMaxIdleSeconds
HTTPAllowCaching
Allow Caching
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10 3
Table 16.
EAI HTTP Transport Send and SendReceive Arguments Display Name Allow Persistent Cookies S SL Description Default is N. A session cookie is used to tie requests and logoff operations to the user session started at the login, when communicating with any session-cookie-based system. Leaving this flag set to N leaves the persistence of cookies in the control of the EAI HTTP transport, which is the default behavior. All session cookies persist in memory only as long as the current session. Session cookies are not written to disk. If you want to use persistent cookies that is, if persistence between logins is required and you want cookies written to disk and then set the parameter to Y.
Parameter HTTPAllowPersistentCookies
HTTPIsSecureConn
Is Secure Connection
Default is N. If set to N then the security mode defaults to whatever the URL specifies, either HTTP or HTTPS. Setting this parameter to Y enables the Secure flag for SSL communications; thus, it forces the use of secure mode. If you choose to use SSL encryption, you must establish valid certificates and SSL capabilities on both the client and server. Using the HTTPS: designation in an URL, by default enables the Secure flag and specifies clear text unencrypted communications.
HTTPNoAutoRedirect
No Auto Redirect
Default is N. This means auto-redirect is enabled. Setting this parameter to Y disables auto-redirection of messages to other URLs.
104
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 16.
EAI HTTP Transport Send and SendReceive Arguments Display Name Sleep Time S SL Description Default is 120000 milliseconds. The timeout interval on login, send, and logoff requests in milliseconds. Default is False. This is implicit character set detection for incoming data and should not be set to True for self-describing documents like XML. If set to True, this overrides the CharSetConversion parameter.
Parameter HTTPSleepTime
HTTPImplicitCharsetDetection
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10 5
106
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
This chapter discusses the EAI DLL and EAI File Transports and includes the following topics: About EAI DLL Transport on page 107 About the EAI File Transport on page 109
Table 17.
EAI DLL Transport Parameters Description Name of the (request/response) DLL. Function in the DLL to invoke. The return value from the function called. This value is an output property.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10 7
EAI DLL and EAI File Transports About EAI DLL Transport
2 3 4 5 6
Set the first business service, after the Start, to use the EAI DLL Transport. Usually, this object is named Send. Double-click to set the input properties for the EAI DLL Transport. Select a method, either Send, or Send and Receive Response. Select the input arguments that you want to use from the list, as presented in Table 17 on page 107. Enter any output arguments required and save your work.
To make a DLL 1 2 3
Open a VC++ project (Open > New). Select a Win32 Dynamic Link Library and give the name of the project. In the next dialog box, select the option Simple dll project. Following files are created by default:
Make the following changes in the StdAfx.h and Main.cpp files and check the results in the process simulator. StdAfx.h struct XMLDataBuf { int nLength; void* pData; };
108
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI DLL and EAI File Transports About the EAI File Transport
extern "C" int __declspec(dllexport) TestEAI(const XMLDataBuf* Value, XMLDataBuf* pReply); Main.cpp #include "stdafx.h" #include <string.h> #include <stdio.h> #include <io.h>
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } extern "C" int __declspec(dllexport) TestEAI(const XMLDataBuf* Value, XMLDataBuf* pReply) { FILE *p; p = fopen("c:\\test.txt","w"); fprintf(p,"before test"); fprintf(p,"%s After Test",Value->pData); //strcpy(s,"Hello World"); fclose(p); return 0; }
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
10 9
EAI DLL and EAI File Transports About the EAI File Transport
2 3 4 5 6
Set up a step in the workflow to use the EAI File Transport. Usually, this object is named Send. Double-click to set the input properties for the EAI File Transport. Select a method that fits your business needs. Select the input arguments that you want to use from the list of arguments. The full list is presented in Table 18 on page 111. Enter any output arguments required and save your work.
110
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
EAI DLL and EAI File Transports About the EAI File Transport
Table 18.
EAI File Transport Parameters Argument AppendToFile Description Default is False. A value of True means that if the file exists, the method appends the message to the existing file. A value of False specifies that the method should overwrite any existing file. Default is False. A value of True means that an attempt is made to delete the file after receiving it. If permissions prevent deletion, no error is given, but the information is traced. The name of the file to be received by the file transport. For the Send method, if a file name is not provided, a random name is used for the output file. You must specify an explicit path for file name. You can also use $$ as the wildcard symbol in the file name. For example, if you specify a file name of file$$.xml, then Siebel creates files like file1-134.xml, fileA25.xml, and file242_12B.xml. For the Receive method, a specific file name must be provided. The use of wildcards such as $$ is not allowed. The source file is deleted upon receiving if set to True. If set to False (the default), the source file is not deleted.
DeleteFile
File Name
FileName
RespFileName FileSleepTime
Name of the file containing the response when using the SendReceive Method. The timeout interval on receive calls, in milliseconds. This specifies the maximum amount of time that the service waits for a response. Default is 20000 milliseconds.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11 1
EAI DLL and EAI File Transports About the EAI File Transport
112
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
The Siebel OLE DB Provider conforms to Microsofts OLE DB data access specifications and provides a unidirectional method for retrieving data from the Siebel Database and viewing it in any supported OLE DB-enabled application. This chapter includes the following topics: About Microsoft OLE DB on page 113 About the Siebel OLE DB Provider on page 113 About the Software Architecture for the Siebel OLE DB Provider on page 114 Installing the Siebel OLE DB Provider on page 115 Connecting Siebel Data Using OLE DB Consumers on page 120 How Scripts and Custom Applications Affect Your Data on page 127 Troubleshooting OLE DB on page 138
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11 3
Using Siebel OLE DB Provider About the Software Architecture for the Siebel OLE DB Provider
Most third-party business intelligence tools provide powerful Web-based ad hoc query tools that let you access, navigate, and explore relational data to make key business decisions in real time. This insight helps companies improve target marketing efforts and forge closer, more responsive, relationships with customers. For example, your job might require forecasting sales opportunities. Using a third-party query and reporting tool such as Seagates Crystal Reports, you could retrieve opportunities from Siebel Systems operational data store using Siebel OLE DB Provider. You could even create a heterogeneous query across multiple data stores to get the level of detail required to make better business decisions. As another example, you could determine the success of your Web marketing campaign by evaluating the number of hits your Web site received last month, last weekeven todayand contrast that information with the number of products (or services) purchased. You might also have a portal where customers can look up outstanding orders, and service requests. Using Siebel OLE DB Provider invoked from an ASP file on a Windows Server, the Siebel System Administrator could expose the orders and service requests, and the Web Developer could create a Web-based query which would: Gather information on orders and service requests from the Siebel application Populate a customized view of outstanding information related to the customer
114
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Windows Server. Using a third-party business intelligence tool such as Seagates Crystal Reports or Cognos allows for the distribution of Siebel OLE DB rowsets through their query and reporting interface. You can add predefined queries or reports to the Siebel client Reports Menu using the Siebel Tools Reports Administrator. NOTE: Siebel OLE DB Provider must be installed on the IIS system in order to gain access to the defined OLE DB rowsets.
Siebel Web Client, Mobile Web Client, and Dedicated Web Client. As noted previously, using a third-party business intelligence tool installed on Windows Server is used to output to these clients. Figure 1 illustrates the architecture of the Siebel OLE DB Provider.
Figure 1.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11 5
To use Siebel OLE DB Provider with Microsoft SQL, the full version of Microsoft SQL Server must be installed and operational. To create an Active Server Page (ASP) application, the Siebel OLE DB Provider and Microsoft IIS must be installed and operational. The OLE DB Consumer used depends on how the Siebel OLE DB Provider is accessed: When accessing the Siebel OLE DB Provider from ASP pages (this includes access from the client application Internet Explorer or other Web browser), IIS is the OLE DB Consumer. When accessing the Siebel OLE DB Provider from SQL Server (this includes access from the client application Query Analyzer), SQL Server is the OLE DB Consumer. When accessing the Siebel OLE DB Provider from Excel or Access, Excel or Access is the OLE DB Consumer.
The Siebel OLE DB Provider is installed as a default interface within the Siebel Mobile Client and the Siebel Server applications. You can also install this on different systems using the custom EAI install from Siebel Server. The Siebel OLE DB Provider supports the following OLE DB and ActiveX Data Object (ADO) foundation versions: Microsoft OLE DB Microsoft ADO
The required base-level operating systems validated for the use of Siebel Systems products contain the necessary foundation versions of OLE DB and ADO to support the Siebel OLE DB Provider. See the System Requirements and Supported Platforms on Siebel SupportWeb for further information. This section covers the following topics: Configuring and Testing the Siebel OLE DB Provider on page 116 Multiple Language Considerations for the Siebel OLE DB Provider on page 118 About Primary and Foreign Key Relationships on page 119 Viewing Siebel OLE DB Provider Events on page 119 Viewing Siebel OLE DB Information on page 120
116
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Siebel OLE DB Provider Connection Properties Description The connection string as explained in Using Siebel Tools. In the .cfg file, make sure the DataSource property in the [Siebel] section is set for the local client using Local, Sample, or Serverfor example, set this property to Sample for the sample database. Your Siebel user ID. Your Siebel password.
User ID Password
When you have entered these values, test the connection to the data source by clicking the Test Connection button on the Microsoft Data Link Properties dialog box. If the connection is valid, you receive a confirmation. If you receive a successful connection confirmation, you can use the same data source name with any OLE DB-enabled application to connect to the Siebel OLE DB Provider.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11 7
About the Siebel OLE DB Provider Local WIN32 Siebel Client Mode
In the local client mode, the Siebel Business Object Manager allows the Siebel OLE DB Provider to connect to the Siebel application residing on the same machine. In the local client mode, the Data Source name defines a path to the Siebel configuration file. Table 20 below defines the syntax.
Data Source Syntax Database Uses the default database Uses the local database regardless of the default setting Uses the server database regardless of the default setting
CAUTION: When you install using the Siebel EAI Connectors installation option, the Siebel OLE DB Provider can only be used in the Server Connected Mode. The Local Client Mode is not available. A sample Excel query that uses Siebel OLE DB Provider in the local client mode follows: QueryType=OLEDB Version=1 Connection=Provider=SiebelOLEDB.Provider.1;Password=SADMIN; User ID=SADMIN;Data Source=c:\Program Files\SiebelApp\bin\siebel.cfg,lang=ENU CommandType=Default CommandText=select * from Contact where 'Job Title'=Manager
118
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
4 5
Highlight the key Parameters. Right-click to select New > DWORD Value.
a b 6
Set the Name of the new value to EnablePkFk. Set the value in the Value Data field to 1.
Select File > Exit to close the Windows Registry and save your changes.
The first event identifies Siebel OLE DB Provider DLL, ssceolpr.dll and the executable that loaded the DLL. The second event identifies the connection string used.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
11 9
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
bin\ssceolpr.dll bin\ssceolwr.dll bin\language\ssceolrs.dll Where: language is the Siebel code for the Language Pack you are installing for this server, such as enu for U.S. English.
2 3 4
Select Properties from the pop-up menu. Select the Version tab in the Properties dialog. Verify that the fields have the appropriate values. NOTE: You can also view this information within Siebel Tools and any COM-related development tool, such as the Object Browser in Microsoft Visual Studio.
120
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
NOTE: Microsoft Access XP is not supported as a Siebel OLE DB Provider. This section explains how to use the Siebel OLE DB Provider with these applications. After you have installed Siebel OLE DB provider library files and created your OLE DB rowsets within Siebel Tools, you are ready to use Siebel data within the framework. NOTE: Siebel OLE DB Provider allows you to retrieve information from the Siebel Database on a read-only basis. You can review the data and incorporate it into spreadsheets, databases, and Web pages as needed. You cannot make changes to the data or affect the Siebel Database in any way with Siebel OLE DB Provider.
a b 4 a b
Select the EAI tab. Select the OLE DB Rowset icon and click OK.
Select the items from the drop-down lists to define your rowset as follows: Choose the locked project from which you will be creating the OLE DB rowset. Choose the Siebel business object that represents the data you want as the basis of your OLE DB rowset. The wizard displays the business components that are used by this business object.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
12 1
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
Choose the business component you want to use to populate your OLE DB rowset with data. The system automatically generates a unique name for your OLE DB rowset by concatenating the business object name and the business component name and adding a unique number (starting with 1), such as Account_Contact_1. You can change this name as needed. NOTE: Siebel Tools limits this field to a maximum of 75 characters. If the combination of the business object and the business component names is more than 75 characters, the name will be truncated, starting from the right. Again, you can change this name as needed. It is recommended that you use the following: Business Object_Business Component_Unique Identifier.
Choose the Visibility Type for the rowset. NOTE: You can limit the data users are allowed to see based on their Siebel-defined responsibility and visibility privileges. Visibility levels can be set for each rowset.
Click Next to select the fields you want to include in your OLE DB table. You can select one or more fields by using the following standard techniques:
To select a single field, click on a field name, then click the right arrow button to move the field name to the scrolling field on the right. To select multiple fields, click on a field name, hold down the Ctrl key on your keyboard and click on another field name. Repeat this process to select any number of field names. Alternatively, you can click on a field name, then hold down the Shift key on your keyboard and click on another field name farther down the list. This selects all the field names between and including your two selections.
Rearrange the order of the field names, if necessary, by clicking the up and down arrow buttons to move a selected field name in one direction or another. NOTE: Rearranging the field names at this point in the process can make it easier to view the data in a more meaningful order when you access the OLE DB table from another application.
Click Next. The OLE DB Wizard displays the OLE DB Rowset. This page allows you to review and confirm your selections.
To change one or more of your selections, click Back to return to the previous page of the wizard.
8 9
If you are satisfied with your choices, click Finish. The OLE DB wizard creates the OLE DB integration object. Recompile the .srf file. Siebel OLE DB Provider retrieves integration object information from the .srf file.
122
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
You can now access the Siebel OLE DB integration object using any external OLE DB-enabled applications. NOTE: Integration objects are created slightly differently by the OLE DB Rowset wizard than by any other integration object wizard. In other chapters of this guide, you read that integration objects provide the interface between external data objects and the Siebel property set format. The OLE DB Provider integration objects you create convert data between Siebel Business Object Interfaces and OLE DB rowsets.
5 6 7
Click Next and select the fields you want to include in your OLE DB table and deselect others that you want to remove. Rearrange the order of the field names, if necessary, by clicking on the up and down arrow buttons. Click Next to get to the finish page to review and confirm your selections.
To change one or more of your selections, click Back to return to the previous page of the wizard.
8 9
If you are satisfied with your choices, click Finish. The OLE DB wizard modifies and saves the OLE DB integration object. Recompile the .srf file. Siebel OLE DB Provider retrieves the integration object information from the .srf file. You can now access the Siebel OLE DB integration object using any external OLE DB-enabled applications.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
12 3
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
Business analysts find the Siebel OLE DB Provider support useful for analyzing account data and other information stored in the Siebel Database and incorporating that data in an Excel spreadsheet. To use Siebel OLE DB Provider from Excel, you create an external query that connects to Siebel OLE DB Provider.
The following example connects to Siebel OLE DB Provider and sends a command to retrieve all records from the Contact virtual table where the position is equal to Manager. You can store any query in a *.rqy file and execute the query at a later time. The properties identify the contents of the file as an OLE DB type query and provide the connection parameters and query text. The properties QueryType, Version, Connection, CommandType and CommandText are required. The structure defined is mandatory and cannot be changed. Table 21 shows the required properties for an Excel query file.
Excel Query Properties Value/Description OLEDB. 1. Default. Set to the text of the query to be executed by the Siebel OLE DB Provider. Several parameters, each separated by a semicolon: Provider. Set to the Siebel OLE DB Provider COM component, SiebelOLEDB.Provider.1. Data Source. Set to the Siebel OLE DB Provider connection string. User ID and Password are optional. If not set, OLE DB Provider prompts for them.
For example:
124
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
QueryType=OLEDB Version=1 Connection=Provider=SiebelOLEDB.Provider.1;Password=db2; User ID=SADMIN;Data Source=siebel://10.24.20.5/siebel/sseobjmgr; CommandType=Default CommandText=select "City" from Contact_Contact_1 where "Bill To City"="Menlo Park" NOTE: You should not have any blank lines between each commands such as QueryType and CommandText. Connection information should be on one continuous line. You can use Microsoft Access to create ad hoc reports. Using the Access Data Access Page Designers drag-and-drop capabilities, you can create Web pages by selecting, dragging, and dropping Siebel OLE DB tables onto the Access form. The underlying OLE DB infrastructure writes the necessary information, and the newly created Web page accesses the Siebel virtual table data transparently.
5 6 7 8
Select the Provider tab. Select Siebel OLE DB Provider from the picklist and click Next. On the next page, fill in the parameters, including the Data Source and User name properties. Click OK to save the changes. The Siebel OLE DB Provider login dialog appears.
Provide the password and click OK. You are presented with the designer and the Field List dialog box displaying the available integration objects.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
12 5
Using Siebel OLE DB Provider Connecting Siebel Data Using OLE DB Consumers
126
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
Enter the SQL Server query text in the query window, as shown in the following illustration.
Enter a connect string similar to this (providing your actual ID, password, selection criteria, and so on): SELECT * from OPENROWSET('SiebelOLEDB.Provider.1','siebel://10.1.55.16/siebel/ sseobjmgr/blitzlab32'; 'SADMIN';'db2', 'select "Address ID","Created By","Bill To First Name" from test_table_1 where 'Bill To City'="Menlo Park"')
This section explains how to use the Siebel OLE DB Provider with these technologies. After you have installed Siebel OLE DB provider library files and created your OLE DB rowsets as integration objects within Siebel Tools, you are ready to use Siebel data within the support framework. NOTE: Siebel OLE DB Provider allows you to retrieve information as needed from the Siebel data repository on a read-only basis. You can review the data and incorporate it into spreadsheets, databases, and Web pages, as needed, but you cannot make changes to the data and affect the Siebel data repository in any way using Siebel OLE DB Provider connection. This section covers these topics:
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
12 7
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
Writing an OLE DB Consumer Retrieving Siebel Data Using VB and ASP on page 130
About Siebel OLE DB DataSource Object You can use any OLE DB-compliant products to access Siebel objects. These products include Microsoft Excel, Microsoft Access, and others. These applications are referred to as consumers. You must create the DataSource object by defining the object in an OLE DB consumer. During the creation process, you provide the properties and parameters required for the DataSource object to connect to the Siebel environment. The consumer then uses the DataSource object to create one or more Session objects. The following DataSource object OLE DB interfaces are supported in the current version of Siebel OLE DB Provider: IDBCreateSession IDBInitialize IDBProperties IPersist ISupportErrorInfo
128
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
You must specify DataSource properties to successfully initialize and authorize the connection to the Siebel environment, as shown in Table 22.
Table 22.
OLE DB DataSource Properties Description A Siebel user name. The password assigned to the Siebel user. The connect string or the path to the local configuration file. Default is DBPROMPT_NOPROMPT. Specifies the prompt mode supported for data source initialization. This provider supports every prompting mode.
About Siebel OLE DB Session Object The DataSource object creates and uses the Session object to create one or more Rowset objects. The following Session object OLE DB interfaces are supported in the current version of Siebel OLE DB Provider: IDBCreateCommand IGetDataSource IOpenRowset ISessionProperties IDBSchemaRowset ISupportErrorInfo
About Siebel OLE DB Command Object The OLE DB Command object supports and provides a subset of SQL commands that you can use to query the Siebel business objects supported by Siebel OLE DB Provider. The OLE DB consumer creates the Command object by executing IDBCreateCommand:CreateCommand. Multiple commands can be created and executed during a single session. Siebel OLE DB Provider supports the following OLE DB interfaces on the Command object: IAccessor ICommand ICommandWithParameters ICommandProperties ICommandText IColumnsInfo IConvertType
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
12 9
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
ISupportErrorInfo
About Siebel OLE DB Provider Command Syntax Siebel OLE DB Provider Command object supports a subset of SQL, which allows OLE DB consumers to issue simple query statements against one virtual table. The following query is an example of the type of statement you can execute: SELECT 'First Name', 'Last Name' FROM Contact WHERE 'Job Title' = Manager; The general syntax of Siebel OLE DB Provider Command language is as follows: Required terms are delimited by square brackets ([ ]). Optional terms are delimited by angle brackets (< >). SELECT [ column/list of columns/* ] FROM [ table_name ] <WHERE> [ column = value ] <AND> [ column=value ] <ORDER BY> [ column ]; NOTE: The current Command language does not support the JOIN construct. A command can be issued against only one virtual table.
About Siebel OLE DB Rowset Object The Session object creates the Rowset. The consumer can also call ICommand:Execute to create a Rowset. The data in the Rowset object is displayed in tabular format. The following Rowset object OLE DB interfaces are supported in the current version of Siebel OLE DB Provider: IAccessor IColumnsInfo IConvertType IRowset IRowsetInfo ISupportErrorInfo
130
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
'Setup program parameters. ProviderString = "SiebelOLEDB.Provider.1" DataSourceString = "siebel://MyGateway/MyEnterprise/MyObjMgr/MyServer" UserIdString = "MyUserId" PasswordString = "MyPassword" OutFileString = "output.txt"
'Build the connection string. ConnectString = "Provider=" & ProviderString & ";User Id=" & UserIdString & ";Password=" & PasswordString & ";Data Source=" & DataSourceString & ";"
'Ask the user if they are ready to establish a connection and retrieve the data. Message = "Ready to connect using" & Chr(13) & Chr(10) & ConnectString & Chr(13) & Chr(10) & "Do you want to continue?" Continue = MsgBox(Message, vbYesNo, "Ready to Connect")
If Continue = vbYes Then 'Create the output file for storing the data. Set Fso = CreateObject("Scripting.FileSystemObject") Set File = Fso.OpenTextFile(OutFileString, 2, True)
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13 1
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
Connection.Open ConnectString
'Execute a query to create a record set. 'Retrieve all accounts involved in any electrical related business. QueryString = "Select * from Account_Account_1 where 'Line of Business' = 'Electrical*'" Set RecordSet = Connection.Execute(QueryString)
'If there is any data then write a header record with column names. If Not RecordSet.EOF Then First = True For Each Field in RecordSet.Fields 'Write each field within double quotes and a tab separator between them. If First Then File.Write """" First = False Else File.Write """" & Chr(9) & """" End If File.Write Field.Name Next File.WriteLine """" End If
'Keep track of the number of records. RecordCount = 0 Do While Not RecordSet.EOF First = True For Each Field in RecordSet.Fields 'Write each field within double quotes and a tab separator between them.
132
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
If First Then File.Write """" First = False Else File.Write """" & Chr(9) & """" End If File.Write Field.Value Next File.WriteLine """" RecordCount = RecordCount + 1 RecordSet.MoveNext Loop
'Clean up local variables. RecordSet.Close Connection.Close Set RecordSet = nothing Set Connection = nothing File.Close Set File = nothing Set Fso = nothing
'Notify the user of the number of records retrieved and stored. Message = "Successfully retrieved and stored " & RecordCount & " records in " & OutFileString MsgBox Message, vbOkOnly, "Data Retrieved" End If Programmers, Webmasters, and others who need to display data from the Siebel Database in a Web page or portal find Siebel Systems OLE DB Provider support useful for such tasks.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13 3
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
134
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
</BODY> </html>
Create an Active Server Page (ASP) file that retrieves the input parameters, connects to the Siebel OLE DB Provider and builds the output to be sent back and displayed in the browser. Use the following HTML code: <HTML> <HEAD> <TITLE>Account Information</TITLE> </HEAD> <BODY> <FONT FACE="Verdana, Arial, Helvetica" SIZE=2> <!-- Display the time the request was processed --> Your request has been processed at <%Response.Write time%>.<br><br> <!-- Get the form input data --> <% UserId = Request.Form("UserId") Password = Request.Form("Password") AccountId = Request.Form("AccountId") 'Connect to Siebel and retrieve the account information as an OLE DB Rowset. Set Connection = Server.CreateObject("ADODB.Connection") ConnectString = "Provider=SiebelOLEDB.Provider.1;User Id=" + UserId + ";Password=" + Password + ";Data Source=siebel://MyGateway/MyEnterprise/ MyObjMgr/MyServer;" Connection.Open ConnectString If Len(AccountId) = 0 Then Query = "Select * from Account" Else Query = "Select * from Account where Id = '" + AccountId + "'" End If Set RecordSet = Connection.Execute(Query)
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13 5
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
If Not RecordSet.EOF Then %> This is your current account information. <br><br> <!-- Build a table to display the data --> <TABLE CELLPADDING=4> <!-- BEGIN column header row --> <TR> <%For Each Field in RecordSet.Fields%> <TH><FONT SIZE=2><%Response.Write Field.Name%></FONT></TH> <%Next%> </TR> <%Do While Not RecordSet.EOF%> <TR> <%For Each Field in RecordSet.Fields%> <TD><FONT SIZE=2><%Response.Write Field.Value%></FONT></TD> <%Next%> </TR> <% RecordSet.MoveNext Loop %> </TABLE> <% End If ' Clean up variables. RecordSet.Close Connection.Close Set RecordSet = nothing Set Connection = nothing
136
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Using Siebel OLE DB Provider How Scripts and Custom Applications Affect Your Data
%> </FONT> </BODY> </HTML> The form created by the HTML page prompts the user for input, as shown in Figure 2.
Figure 2.
Figure 3.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13 7
Troubleshooting OLE DB
This section describes common connection problems when using OLE DB. Consult the Windows Event Log to view the details on other OLE DB and Siebel OLE DB Provider errors.
Error Initialization of the data source failed with following error: Check the database server or contact your database administrator. Make sure the external database is available, and then try the operation again. If you see this message again, create a new data source to connect to the database.
Cause You have selected an invalid .cfg file in your Connection string or the .cfg file you have selected has not been updated to support OLE DB.
Sample Problem Code QueryType=OLEDB Version=1 Connection=Provider=SiebelOLEDB.Provider.1;Persist Security Info;Data Source="c:\siebel\client\bin\enu\uagnet.cfg,ServerDataSrc"; CommandType=Default CommandText= select * from LabRowset Solution Check to make sure you have set the Security Info parameter in your connection string.
Error The query did not run or the database table could not be opened and you received the following error: Check the database server or contact your database administrator. Make sure the external database is available and has not been moved or reorganized, then try the operation again.
Cause The database name in your .cfg file is not set correctly or the name of the table in your query is incorrect.
Sample Problem Code QueryType=OLEDB Version=1 Connection=Provider=Siebel OLEDB Provider.1;Persist Security Info=True;Data Source="c:\siebel\client\bin\enu\siebel.cfg,ServerDataSrc"; CommandType=Default CommandText= select * from LabRowset
138
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Resolution Check to make sure that the Provider parameter is set correctly and also that the table used for the CommandText is a valid table.
Error SQL Query Analyzer error message. The following error is generated in the SQL Query Analyzer when the Object Manager on the Server is not initialized: Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'SiebelOLEDB.Provider.1' reported an error. Provider caused a server fault in an external process. Cause This error typically occurs when Object Manager is not initialized or may be related to SQL Server caching of the OLEDB datasource or to the servers not being successfully restarted.
Cause Failure to set the DataSource property in the [Siebel] section correctly generates this error when testing the connection. You also get an entry in Windows Event Log regarding this failure.
Resolution Check your connection in the Siebel.UDL file and test it by providing the correct username and password. Also in the .cfg file, make sure the DataSource property in the [Siebel] section is set to the correct data sourcefor example, set to Sample for Sample database.
Problem Receiving Could not process object select * from GPTest2 error message
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
13 9
Description If you did not make the custom OLE DB available to the Siebel Server Object Manager, you see the following error when you run the query: Server: Msg 7357, Level 16, State 2, Line 1. Could not process object 'select * from GPTest2' Sample Problem Code n/a
Solution Make sure that you have copied the latest .srf to the Server\objects directory and have restarted the server. These actions make the custom OLE DB available to the Siebel Server Object Manager.
Problem Provider "SiebelOLEDB.Provider.1 supplied inconsistent metadata for a column. information was changed at execution time" Metadata
Description The length of the columns in the two applications does not match.
Solution When SQL Server reports inconsistent metadata, the user can modify the field length in the rowset definition in Siebel Tools.
Description When a connection is established with one type of connection string and then another connection is attempted with a different type of connection string, it fails on the second connection attempt, and generates the following error message: Error message with MSSQL: OLE DB provider "siebelOLEDB.Provider.1"reported an error. Provider caused a server fault in an external process. Sample Problem Code n/a
140
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
14 1
142
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
14 3
XML Support. To simplify B2B and internal systems data exchange, document exchanges made through the Siebel BizTalk interface are in W3C-standard XML. Document transformation is in W3C-standard XSLT. XML messages are the key substrate of application integration. Siebel applications can exchange XML messages with other application systems through Microsofts BizTalk Server over standard protocols and transports. The interface between Siebel applications and BizTalk Server supports both the Siebel application as the message sender and the Siebel application as the message receiver. The Siebel BizTalk interface provides a comprehensive mechanism for interacting with Siebel APIs in order to both get (extract) and put (insert or update) information. On an outbound request from the Siebel client, the Siebel application converts the external interface object into XML and sends it to its destination. On an inbound transaction from an external system, the Siebel application receives an XML message, which is then validated against the appropriate Siebel integration object. NOTE: For more information on Siebel applications and XML, see the XML Reference: Siebel Enterprise Application Integration guide.
Support for Multiple Transports and Protocols. To allow for different options when sending and receiving data through BizTalk Server. The Siebel BizTalk adapter supports Hypertext Transfer Protocol (HTTP), Microsoft Message Queuing (MSMQ), Application Integration Component (AIC), Component Object Model (COM), and File.
Table 23.
Other Information Sources Reference Chapter 7, EAI HTTP Transport in this book Using Siebel Tools Using Siebel Tools Microsoft BizTalk Server documentation. (Available with BizTalk or download from http://www.microsoft.com.) Siebel Installation Guide for the operating system you are using Integration Platform Technologies: Siebel Enterprise Application Integration Siebel Business Process Designer Administration Guide XML Reference: Siebel Enterprise Application Integration
Technology EAI HTTP Transport eScripts ActiveX Microsoft BizTalk Server (BTS) Siebel Installation Siebel Integration Objects Siebel Workflow XML (Siebel-specific)
144
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Figure 4.
As shown in Figure 4, interfacing between a Siebel application and BizTalk Server is a three-step process:
1 2 3
First, expose any Siebel integration object to BizTalk Server using the Schema Generator Wizard in Siebel Tools. Next, import the schema into BizTalk to create document specifications. Finally, exchange integration messages over any O/S, using the appropriate choice from the supported transports, using BizTalk Server for mapping and message transfer.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
14 5
Schema Wizard. You use the Schema Generator Wizard in Siebel Tools to generate DTD or XDR Siebel integration objects. The exposed integration objects are imported into BizTalk and stored on WebDAV as BizTalk document specifications. Data Mapping. The document specifications created in BizTalk are used to map between the Siebelpublished schema and partner applications schema using the Microsoft GUI tool, BizTalk Mapper. Maps are stored on WebDAV in XSLT format.
For Windows-only environments, the Siebel application and BizTalk communicate using:
COM (Component Object Model) AIC (Application Integration Component) File (read and write) HTTP (Hypertext Transfer Protocol) Message Queuing (MSMQ)
Figure 5.
146
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Asynchronous Messaging. The Siebel client sends an outbound message without waiting for an acknowledgment. It is free to process other events. Synchronous Messaging. The Siebel client sends an outbound message and expects a reply within a given timeframe. After the return message has been received, the Siebel application resumes processing of any events that were waiting to proceed.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
14 7
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
The first Siebel application sends a message to the second Siebel application to pass along sales opportunities. A new opportunity is created in the first Siebel application and is assigned to a partner. This new opportunity is sent using Siebel EAI to the second Siebel application. The second Siebel application receives the message and adds the new opportunity. Finally, the Product Catalog is updated in real time. The product information is added or changed on the Siebel application and the changed product information would then be sent to the Siebel application. In one last scenario, the Siebel application sends an order in XML format to the IT groups BizTalk Server over the HTTP protocol (or by calling BizTalk Server Interchange COM interface). The IT groups BizTalk Server sends the order to SAP by first converting the XML order into an SAP IDOC and sending it by means of HTTP (or any other protocol as defined in BizTalk Port specifications) to SAP. SAP creates the order in SAP R/3 and sends back an Order Status in IDOC format to the IT groups BizTalk Server. The IT groups BizTalk Server converts the SAP IDOC into an XML Order Status document and the BizTalk Server sends the document by means of HTTP or AIC to the Siebel application, where the corresponding order is updated with the new order status.
148
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
Installing Software and Creating BizTalk Doc Specs for Siebel Integration Objects
Use the following checklist as a guideline to install software and create BizTalk doc specification for Siebel integration objects. Checklist Set up BizTalk Server and each Siebel client that will be communicating with BizTalk (a one-time operation). For details, see Installing and Configuring Software for Servers and Clients on page 149. Generate the DTD or XDR schema for the integration objects you want to use and import them to BizTalk Server, where they become BizTalk document specifications, BizTalks proprietary XDR hybrid format (one time for each integration object). For details, see Siebel Integration Objects on page 150 and About Siebel Data Types Mappings in BizTalk on page 153.
Siebel Server
BizTalk Server
Siebel Clients
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
14 9
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
Install on your preferred platform: Microsoft Windows NT, Windows 2000 Server, or Windows 2000 Advanced Server UNIX OS: AIX or Solaris
Microsoft BizTalk Server 2000 and 2002 requirements: BizTalk Server Microsoft Windows 2000 Server, or Windows 2000 Advanced Server Windows 2000 SQL Server or SQL Server 2000 Microsoft Visio 2000 Microsoft Internet Explorer
Microsoft Windows NT or Windows 2000 Microsoft Internet Explorer Siebel Mobile Web Client Siebel Tools
Microsoft Internet Information Server Siebel Server Siebel Web Engine (SWE) Siebel Gateway Name Server SQL Server (Siebel DB) Siebel EAI Transports
150
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
You export either DTD or XDR schema. These exported files are imported into BizTalk where they are converted into document specifications. BizTalk Server adds BizTalk-specific XML tags that convert the standard XDR format to BizTalks document specification format. Figure 6 depicts how the Siebel integration objects are exposed to BizTalk Server.
Figure 6.
Document specifications are stored in the WebDAV BizTalk Repository and are available to any client that can connect to WebDAV. You can retrieve stored document specifications from WebDAV and create maps to perform data transformations from within BizTalk Mapper. BizTalk maps, which are XSLT (Extensible Stylesheet Language)-based, are also stored in WebDAV. NOTE: To use the Siebel BizTalk Server interface, you need to have integration objects defined for each trading partner. You can either use existing integration objects for this purpose, or you can create new ones depending upon your business requirements.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15 1
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
In the Types tab, click here to display the list of integration objects
Select the integration object that you want to expose and click the Generate Schema button at the top of the window as shown in the following figure.
Click the Generate Schema button after you select the integration object
a b
152
Select EAI XML XDR Generator from the Business Service drop-down list. Select EAI Siebel Message Envelope Service from the Envelope drop-down list.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Preparing to Use the Siebel BizTalk Adapter
c 5
Browse to a file location and type a file name to generate the schema, for example, ListOfSiebelOrder.xml, and click Save.
Click Finish to complete the process. A file (for example, ListOfSiebelOrder.xml.) has now been created in the file location you specified.
Copy the newly generated schema from the Siebel client machine to the BizTalk Server machine.
5 6 7
Choose File > Store to WebDav. Give the file a name (such as Siebel Orders). Click Save. NOTE: The XDR schema is now saved in the BizTalk Documentation Specification format on WebDav.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15 3
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
Table 24 presents data types for the Siebel Field object type and the current corresponding mapping to XDR data types.
Table 24.
Siebel Data Type Mappings in BizTalk XDR Data Types string char (1) number string string string string int string number number
Siebel Data Type DTYPE_TEXT DTYPE_BOOL DTYPE_CURRENCY DTYPE_DATE DTYPE_DATETIME DTYPE_TIME DTYPE_ID DTYPE_INTEGER DTYPE_NOTE DTYPE_NUMBER DTYPE_PHONE
154
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
Set up the organization, port, and channel (collectively known as BizTalk configuration objects) for use with the EAI MSMQ Transport. For details, see Setting Up an MSMQ Queue for Sending Messages.
Create the workflow to process outbound documents from Siebel applications using EAI MSMQ Transport. For details, see Sending Outbound Messages with EAI MSMQ Transport on page 34.
a b c d 6 a b c d e f
In the Destination Organization window, select an organization, such as Oracle. Click Browse under Primary Transport. Select the appropriate transport for your trading partner. Complete the remaining pages as needed and click Finish to complete.
Create a new channel for the port created Step 5. Create a new channel From an Application such as, Siebel To Oracle Channel. Click Next. Select the appropriate inbound document definition, such as Siebel Order. Select the appropriate outbound document definition for your trading partner, such as Oracle Order. Select an appropriate map, if necessary. Complete other pages as required and select Finish to complete.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15 5
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
Create a Message Queuing Receive Function in the BizTalk Server Administration (for example, Siebel MSMQ Receive) to specify the queue (for example, fromSiebel) that the receive function polls. This queue is the same queue that Siebel uses to send the message using EAI MSMQ Transport.
NOTE: For information on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Set up the process properties for your workflow as follows: Name OrderMessage <Value> Object Id Data Type Hierarchy String String Value -
Set up the first step after Start to use the EAI Siebel Adapter with the Query method to query the order from Siebel Database, using the following input and output arguments: Property Name Object Id Process Property Type String
Value -
156
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
Set up the second step to use the EAI XML Converter with the Integration Object Hierarchy to XML Document method and the following input and output arguments to convert the order object to an XML document: Property Data Type Hierarchy
Value UTF-16 -
Value -
Set up the last step to use EAI MSMQ Transport with the Send method and the following input arguments: Process Property Type -
Value private$\name of
Property Name -
the queue
Machine Name that owns the MSMQ queue False -
<Value>
String
NOTE: XML documents must be sent in UTF-16 format for BizTalk Server to parse. In order for message queuing to work properly with BizTalk, you should disable large message support as shown above.
Save your workflow process and test it using Workflow Simulator. NOTE: For details on setting up and using Siebel EAI MSMQ Transport, see Chapter 4, EAI MSMQ Transport.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15 7
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
3 4
Create a new organization and name it as is appropriate. For example, if your trading partner is Oracle, enter Oracle. Create a document definition for previously created document specification from WebDAV and name it, for example, Siebel Order. See To import schema into BizTalk Server to save it as a BizTalk document specification on page 153. Set up a new BizTalk Server port to send the document to the Siebel application (for example, Siebel Sales) with the Primary Transport of Message Queuing.
a b c
Using BizTalk Messaging Manager, create a new port named Siebel MSMQ BTS. Specify the primary transport type to be Message Queuing. Specify the address to point to the queue on which you will be sending the message to, such as DIRECT=OS: machine\ToSiebel. Refer to the BizTalk documentation for queue supported format names. Save your work.
158
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
a b c d e f 7
Create a new channel From an Organization such as Oracle To Siebel MSMQ Channel.Click Next. Select the appropriate inbound document definition, such as Oracle Order. Select the appropriate outbound document definition for your trading partner, such as Siebel Order. Select an appropriate map, if necessary. If required, configure the Advanced properties in the final Channel Configuration page to provide authentication information. Complete other pages as required and select Finish to complete.
Configure a File Receive Function from BizTalk Server Administration to poll a file location and deliver to the channel configured in Step 6. NOTE: This example uses File transport to receive documents from trading partners for the sake of illustration. In your actual business situations, a trading partner can deliver messages to a Siebel application over any supported transport.
a b c
Open BizTalk Server Administration, expand Microsoft BizTalk Server, and expand the server group to which you want to add the File receive function. Select Receive Functions. Choose Action > New > File Receive Function and provide the information.
Name. The name of the File receive function, such as Oracle to Siebel MSMQ. Comment. Add a brief description (optional). Server. Server on which the receive function runs. Polling Location. Enter c:\MSMQ.
NOTE: This is the location where your trading partner delivers the XML documents for the Siebel applications so the channel can pick it up from there and send it to Siebel application for processing.
File Types To Poll For. Type the extension of the files that BizTalk Server receives. In this case, type *.xml.
d 8
Click the Advanced tab and enter a Channel Name, such as Oracle to Siebel MSMQ Channel.
Click OK to finish.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
15 9
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
NOTE: For information on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Set up the process properties for your workflow as follows: Name OrderMessage <Value> Object Id Data Type Hierarchy String String Value -
Set up the first step after Start to use the EAI MSMQ Transport business service with the Receive method and the following input and output arguments: Property Name <Value> Property Data Type String -
Value private$\name of the queue Machine Name that owns the MSMQ queue False True
LargeMessageSupport IgnoreCorrelationId
Literal Literal
Value -
NOTE: Large Message Support must be disabled and Ignore Correlation Id must be set to True for Siebel applications to pick up messages from BizTalk. Correlation Id must be ignored because BizTalk always populates the information on the sent messages. The messages with Correlation Id are considered response messages by Siebel applications. For details on setting up and using the Siebel EAI MSMQ Transport, see Chapter 4, EAI MSMQ Transport.
160
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using EAI MSMQ Transport
Set up the next step to use the Transcode Service business service to convert the incoming data to UTF-8 format. NOTE: XML documents are sent in UTF-16 format from BizTalk Server to Siebel applications. In order for the XML Converter to correctly process, the incoming document must be converted to UTF-8 format through the Transcode Service. Property Name Property Data Type <Value>
Value
Set up the third step to use the EAI XML Converter with the XML Document to Integration Object Hierarchy method using the following input and output arguments. This step converts the XML document to a Siebel object. Property Name <Value>
Value -
Value -
Set up the last step to use the EAI Siebel Adapter with the Insert or Update method to update the Siebel Database, using the following input argument. Property Data Type Hierarchy
Value -
Save your workflow process and test it using the Workflow Simulator. NOTE: For information on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
16 1
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
162
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Copy these files to the Siebel client machine and then, on the Siebel client machine, run the *.MSI file to install the remote client for BizTalk Server.
Repeat the steps above for each Siebel client that will need to communicate with BizTalk Server.
Checklist Set up the Siebel COM Outbound Transport. For details, see Setting Up the COM Outbound Transport on page 162. Create configuration objects in BizTalk, by setting up new organizations, ports, and channels (once for each trading partner). For details, see To set up BizTalk configuration objects on page 164, and COM Outbound Transport Parameters on page 163. Create a new workflow in the Siebel application to convert data in the Siebel application and send the data as messages to BizTalk. For details, see To create the Siebel workflow for COM Outbound on page 165.
COM Outbound Transport Parameters When defining the workflow for COM Outbound transport to BizTalk, you can optionally choose from a number of parameters. These parameters correspond with the BizTalk Server IInterchange Submit() and SubmitSync() parameters.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
16 3
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Table 25.
COM Outbound Parameters Type String String String String String String String String Description The document instance submitted. The name of the BizTalkDocument object associated with the instance of the document being submitted. The qualifier of the source organization and indicates how the Source is to be interpreted. The value of the qualifier of the source organization. The qualifier of the destination organization, it indicates how the DestinationID parameter is to be interpreted. The value of the qualifier of the destination organization. Contains the name of the BizTalkChannel object that is executed for this document. Specifies a fully qualified path that contains the document to be submitted, rather than submitting the document directly as a string. Contains the name of the envelope specification to use to break the interchange into documents.
Envelope
String
NOTE: For more details on these parameters, see your Microsoft BizTalk Server documentation.
2 3
Set up your home organization as Siebel and then set up applications for the home organization. Create a new organization and name it appropriately, such as Oracle. NOTE: Throughout this chapter, many steps are illustrated with the use of an example. This example uses Oracle, but your actual business requirements dictate the name you give to the actual destination organizations that you set up for your trading partners.
Create a document definition for the previously created document specification in WebDAV and name it, such as Siebel Order. See To import schema into BizTalk Server to save it as a BizTalk document specification on page 153. Create a messaging port to your trading partner.
164
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
b c d 6 a b c d e
Click Browse under Primary Transport. Select the appropriate transport for your trading partner. Complete the remaining pages as needed and click Finish to complete.
Create a new channel for the port created in Step 5. Create a new channel From an Application such as Siebel To Oracle Channel.Click Next. Select the appropriate inbound document definition, such as Siebel Order. Select the appropriate outbound document definition for your trading partner, such as Oracle Order. Select an appropriate map, if necessary. Complete other pages as required and select Finish to complete.
NOTE: For information on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Set up the process properties for your workflow as follows: Name OrderMessage <Value> Object Id Data Type Hierarchy String String Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
16 5
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Set up the first step after Start to use the EAI Siebel Adapter with the Query method to query the order from Siebel Database, using the following input and output arguments: Property Name Object Id Process Property Type String
Value -
Set up the second step to use the EAI XML Converter with the Integration Object Hierarchy to XML Document method and the following input and output arguments to convert the order object to an XML document. Property Data Type Hierarchy
Value -
Value -
166
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Set up the last step to use the EAI BTS COM Transport with the Send or the SendReceive method and the following input arguments. NOTE: You may require asynchronous or synchronous communication, using Send and SendReceive respectively, depending on your unique situation. Input Arguments <Value> Channel Property Name <Value> Property Data Type String -
Value Siebel to Oracle Channel (The channel you created in To set up BizTalk configuration objects on page 164.)
NOTE: Optionally, you can set any one of the other available input parameters in the pick list, such as Destination, DocumentName, and so on. For the full list of these parameters and their meanings, refer to Table 25 on page 164.
Make other modifications to your workflow as your situation requires and save the workflow.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
16 7
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Checklist Install the necessary Siebel EAI ActiveX Data Controls and Siebel Application Integration Components on the BizTalk Server machine (one-time operation). For details, see To install Siebel ActiveX Data Controls and AIC on the BizTalk Server machine on page 168. Register the Siebel AIC on the BizTalk Server machine (one-time operation). For details, see To register AIC as a COM+ Server Application on the BizTalk Server machine on page 168. Copy the required Siebel Active Server Pages (ASP) to the BizTalk Server machine. For details, see To configure BizTalk Server Messaging Manager with new ASP files on page 172. Make sure that the Siebel application has the capability to run workflowsBizTalk Server sends named workflows to Siebel application expecting the Siebel application to be able to execute them. For details, see To configure Siebel Server to run workflows on page 173.
To install Siebel ActiveX Data Controls and AIC on the BizTalk Server machine 1 2 3
On the BizTalk machine, insert the Siebel Enterprise Server Installation CD and choose Custom Install. Deselect other options so that only the EAI Connectors are installed. Follow online prompts to complete the remaining pages and click Finish to install the Siebel EAI ActiveX Data Controls for BizTalk on the BizTalk Server machine.
Enter the name for the new application to be created, such as Siebel BizTalk Interface for AIC Transport or Siebel BizTalk HTTP Adapter for the HTTP Inbound Transport.Select the Activation Type of Server application and click Next.
168
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
On the next screen, select the Application Identity of Interactive user - the current logged on user and click Next and then Finish. You should now have a new COM+ application (which you named in Step 5), as shown in the following sample figure.
Expand this newly created COM+ Server Application by double-clicking on it. You see folders appear where the COM+ applications were.
Click the Components folder and choose Action > New > Component. The Welcome to COM Component Install Wizard appears.
a b c
Select Install new component or components and click Next. On the next page, click Add. Browse to the SIEBSRVR_ROOT\eaiconn\bts\aic directory and select the AIC component, sscaeiba.dll. You should see BizTalk.SiebelBizTalkAIC component registered and you should be able to see the AIC interfaces and methods. Or, for the HTTP Inbound Transport, browse to the c:\AIC directory (the directory where you originally copied your .dll from the Siebel Server machine) and select the AIC component, sscaeibh.dll. You should see the Siebel.BizTalkHTTPAIC component registered and you should be able to see the AIC interfaces and methods.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
16 9
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Setting Up the AIC Inbound Transport to Run Remotely on the Siebel Server
This section explains how to set up the required components for running the AIC Inbound Transport remotely on the Siebel Server machine.
Checklist Copy required BizTalk Dynamic Link Library (DLL) and Type Library (TLB) files from the BizTalk Server to the Siebel Server. For details, see To copy BizTalk Server DLL and Type Library files to the Siebel Server on page 170. Register the Siebel BizTalk AIC as a COM+ Server Application on the Siebel Server machine. For details, see To register AIC as a COM+ package remote communication on page 171. Create a COM+ communications link between the Siebel machine and the BizTalk Server machine. For details, see To create a COM+ package remote communication on the Siebel machine on page 171. Copy the required Siebel Active Server Pages (ASP) to the BizTalk Server machine. For details, see To configure BizTalk Server Messaging Manager with new ASP files on page 172. Make sure that the Siebel application has the capability to run workflowsBizTalk Server sends named workflows to Siebel application expecting the Siebel application to be able to execute them.For details, see To configure Siebel Server to run workflows on page 173.
To copy BizTalk Server DLL and Type Library files to the Siebel Server 1
Copy dependency shared DLLs stored in %Program Files%\Common Files\Microsoft Shared\Enterprise Servers\Commerce from BizTalk (Commerce server shared DLL) to the Siebel Server machine:
170
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Register the type library by using the regsvr32 and regtlb utilities, respectively, as shown in the following illustration.
Enter the commands one at a time, as shown, and press Enter. As each file is registered, additional information displays in the DOS window.
NOTE: The regtlb utility ships with BizTalk Server and is available in the Microsoft BizTalk Server\Setup directory.
On the Siebel machine, go to the Start menu. Select Programs > Administrative Tools > Component Services.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17 1
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
In the tree pane, click Component Services, and expand Computers. Under Computers, expand My Computer, and then expand COM+ Applications. Click Siebel BizTalk Adapter (the COM+ Application you created previouslyyou may have given it a different name). A sample tree pane is shown in the following illustration.
3 4 5 6 7
On the Action menu, click Export. On the Welcome to COM Application Export Wizard dialog, click Next. Enter the name of the export installation package to be created. In the Export As area, select the Application proxy radio button and click Next. Click Next to finish the wizard. You should see a Thank you page. Click Finish. You should now have two files, named as you specified in Step 5. The files will have two extensions: .MSI and .cab.
8 9
Copy these files to the BizTalk Server machine. Run the .MSI file to install the remote client for the Siebel AIC that is on the BizTalk Server machine.
SIEBSRVR_ROOT\eaiconn\bts\scripts
to BizTalk Machine:
172
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
The Siebel Application Integration Components receive documents from BizTalk Server and deliver them to the Siebel workflow specified in the BizTalk Server channel configuration. AIC also invokes the Siebel Workflow Engine to run the workflow on either the Siebel client or the Siebel Server using ActiveX Data Controls. NOTE: For details on enabling server components and connecting to the Application Object Manager using ADC, see the Siebel Installation Guide for the operating system you are using and the Using Siebel Tools guide.
To create a workflow to receive inbound XML documents over AIC from BizTalk 1
From the Site Map choose Administration - Business Process > Workflow Processes.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17 3
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
Set up the workflow process, as shown below, to receive and process XML document from AIC and give it a name, such as Write XML Doc. NOTE: For details on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Create the following two new process properties for your workflow: Name InputBizdoc SiebelMessage Data Type String Hierarchy Default String <Value> -
NOTE: AIC passes the XML Document received from BizTalk Server to the process property with Default String set to <Value>. The same process property could be used to retrieve and process the XML document. For example, write this process property to a file or update the Siebel Database by calling EAI Siebel Adapter.
Convert to the property set using the EAI XML Converter with the XML Document to Integration Object Hierarchy method and the following input and output arguments: Input Argument MessageText Type Process Property Value Property InputBizdoc
Write to the database using the EAI Siebel Adapter with the Upsert method and the following input argument: Name Siebel Message Type Process Property Property Siebel Message
After you create the workflow, the workflow information must be supplied to the Siebel Application Integration Component (see Step 1 in the To supply the workflow information for AIC Inbound procedure). The Siebel AIC, which is a pipeline component, is implemented as a special kind of COM object that the BizTalk Server state engine calls to deliver data to an application. Therefore, you need to configure a BizTalk Server port and channel in BizTalk to include use of this Siebel AIC pipeline component for application integration.
174
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Interfacing with Microsoft BizTalk Server Connecting to BizTalk Using COM and AIC
After you have specified AIC as the primary transport for document interchange with Siebel information, you need to supply BizTalk with configuration data specific to Siebel AIC. You do so by creating a new channel (see Step 2 on page 175). For details, see Microsoft BizTalk Server documentation. This data is passed to the Siebel AIC component through the BizTalk Management Desk. One of the configuration items that is passed to the Siebel AIC component is the name of the workflow you defined within the Siebel application. AIC dynamically invokes the Siebel Workflow engine and passes the XML document to the workflow specified in the channel AIC properties. After Siebel AIC is implemented, the property sheet contains the properties specific to the Siebel AIC implementation, one of which is Siebel Workflow Name. You can optionally create maps using BizTalk Mapper if data transformation is required for the documents received by Siebel application from the external application. For information on the mapping capabilities of BizTalk, see Microsoft BizTalk Server online documentation.
a b c d
Set up a Home Organization for Siebel applications, such as Siebel Sales. Set up a Siebel Trading Partner to be the Destination Organization, such as Oracle. Create new document specification for the XDR document definition stored in WebDav. Set up a new BizTalk Server port to send the document to the Siebel application with the Primary Transport of Application Integration ComponentBizTalk SiebelBizTalkAIC.Using BizTalk Messaging Manager, create a new port named Siebel AIC BTS. Specify the primary transport type to be Application Integration Component. Specify the Component Name to be the AIC component name, BizTalk.AppIntegrationSiebel. Save your work. BizTalk is now configured to deliver messages to Siebel BizTalk AIC.
e f g
a b
Configure the Advanced properties in the final Channel Configuration page. Provide the Siebel Workflow name to be invoked as previously defined in Step 2 of To create a workflow to receive inbound XML documents over AIC from BizTalk on page 173.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17 5
Enter the user name, password, and connect string for the Active X Data Control to connect to Siebel Server. For example: host="siebel.tcpip.none.none://SiebelServer:2321/EnterpriseServer/ SCCObjMgr_enu lang="ENU" Where: SiebelServer = the machine name where the Siebel Server is installed. lang = the language of the Siebel Server. The default lang is ENU, but for other languages you have to provide this value. Also note that the quotes shown in the example are required. CAUTION: Make sure the connect string you type is using the correct format, including the use of quotes. The correct connect string format is very important in order for ADC to correctly connect to Siebel Server.
Configure a File Receive Function from BizTalk Server Administration to poll a file location and deliver to the channel configured in Step 2. NOTE: This example uses File Transport to receive documents from trading partners for the sake of illustration. In your actual business situations, a trading partner can deliver messages to a Siebel application over any supported transport.
a b c
Open BizTalk Server Administration, expand Microsoft BizTalk Server, and expand the server group to which you want to add the File receive function. Select Receive Functions. Choose Action > New > File Receive Function and provide the information.
Name. The name of the File receive function, such as Oracle to Siebel AIC. Comment. Add a brief description (optional). Server. Server on which the receive function run. Polling Location. Enter c:\AIC.
NOTE: This is the location where you copy the XML Instance you created earlier. The channel can then pick it up from there and send it to the Siebel application.
File Types To Poll For. Type the extension of the files that BizTalk Server receives. In this case, type *.xml.
d 4
Click the Advanced tab and enter a Channel Name, such as AIC Oracle To Siebel Channel.
Click OK to finish.
176
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Checklist HTTP Outbound Transport requires a virtual directory. This directory needs to reside on the IIS to which Siebel outbound XML documents will be sent. Typically, this is on the same machine as BizTalk Server. For details, see To create a virtual directory for HTTP Outbound on page 177. Copy the sample ASP file to the virtual directory. You can modify the Active Server Page to meet your business requirements. This section provides you with a sample ASP file to serve as a general guideline. For details, see To copy the ASP files to the new HTTP Outbound directory on page 177.
Create a new virtual directory on IIS using the new directory you created. Name the directory, for example, BizTalkReceive.
NOTE: The virtual directory can be on either the Siebel Server or the BizTalk Server. If the Internet Information Server is on the Siebel Server machine, you need to register the BizTalk Server Interchange Application to the Siebel Server. If IIS is on the BizTalk Server, you do not need to register Interchange application, because it is already a part of the BizTalk Server installation. See your Microsoft Internet Information Server (IIS) documentation for details on setting up virtual directories.
SIEBSRVR_ROOT\eaiconn\BTS\SCRIPTS
to the new directory you just created, for example: c:\BizTalkReceive\
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17 7
Checklist Set up the Siebel HTTP Outbound Transport. For details, see Siebel HTTP Outbound Transport on page 177. Set up the organization, port, and channel (collectively known as BizTalk configuration objects) for use with the HTTP Outbound Transport. For details, see To set up BizTalk configuration objects for HTTP Outbound, below. Create the workflow to process outbound documents from Siebel using EAI HTTP Transport. For details, see To create the Siebel workflow for HTTP Outbound on page 179.
3 4
Create a new organization and name it as is appropriate. For example, if your trading partner is Oracle, enter Oracle. Create a document definition for previously-created document specification from WebDAV and name it, for example, Siebel Order. See To import schema into BizTalk Server to save it as a BizTalk document specification on page 153. Create a messaging port to your trading partner.
a b c 6 a b c d e f
In the Destination Organization window select the organization, such as Oracle. Click Browse under Primary Transport. Select the appropriate transport for your trading partner. Complete the remaining pages as needed and click Finish to complete.
Create a new channel for the port created in Step 5. Create a new channel From an Application such as Siebel To Oracle Channel. Click Next. Select the appropriate inbound document definition, such as Siebel Order. Select appropriate outbound document definition for your trading partner, such as Oracle Order. Select an appropriate map, if necessary. Complete other pages as required and select Finish to complete.
178
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
a b
Search for sChannel in the file. Remove the comment designator from this statement: sChannel = Channel Name you just created
NOTE: For information on creating workflow processes, see the Siebel Business Process Designer Administration Guide.
Set up the process properties for your workflow as follows: Name OrderMessage <Value> Object Id Data Type Hierarchy String String Value -
Set up the first step after Start to use the EAI Siebel Adapter with the Query method to query the order from Siebel Database, using the following input and output arguments: Property Name Object Id Process Property Type String
Value -
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
17 9
Set up the second step to use the EAI XML Converter with the Integration Object Hierarchy to XML Document method and the following input and output arguments to convert the order object to XML document: Input Arguments Siebel Message Type Process Property Value Property Name Order Message Property Data Type Hierarchy
Value -
Set up the last step to use the EAI HTTP Transport with the Send or the SendReceive method and the following input arguments. Input Arguments Message Text Request Method Request URL Template Property Name <Value> Property Data Type String -
Value POST The URL to which the document will be postedfor example, http://WebServer/virtual directory name/ SiebelBizTalkOutHTTP.asp where:
WebServer is the name of your Web server and virtual directory name is the virtual
directory you set up in To create a virtual directory for HTTP Outbound on page 177, such as BizTalkReceive. NOTE: You may require asynchronous or synchronous communication, using Send and SendReceive respectively, depending on your unique situation.
Save your workflow process and test it using the Workflow Simulator.
180
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
For details on each of these steps, see Chapter 7, EAI HTTP Transport.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
18 1
Register the Siebel AIC on the BizTalk Server machine (one-time operation). For details, see To register AIC as a COM+ Server Application on the BizTalk Server machine.
Copy the required Siebel HTTP AIC Active Server Pages (ASP) to the BizTalk Server machine. For details, see To copy the required Siebel HTTP AIC Active Server Pages (ASP) to the BizTalk Server machine on page 182.
To copy HTTP-based AIC DLL from Siebel Server to BizTalk Server Machine Copy the sscaeibh.dll file from SIEBSRVR_ROOT\eaiconn\bts\http\ on the Siebel Server to a
newly created directory, such as c:\AIC on the BizTalk Machine.
To copy the required Siebel HTTP AIC Active Server Pages (ASP) to the BizTalk Server machine
Copy the Siebel_BizTalkHTTPAIC_1_post.asp page and the Siebel_Biz page from Siebel Machine: TalkHTTPAIC_1.asp
SIEBSRVR_ROOT\eaiconn\bts\scripts
to BizTalk Machine:
Checklist Set up the Siebel HTTP Inbound Transport. For details, see How to Use EAI HTTP Transport to Receive Documents from BizTalk on page 181. Set up the EAI HTTP Transport Named Subsystem and the HTTP Receive function to receive and process incoming XML documents. For details, see EAI HTTP Transport Named Subsystems on page 81. Set up the organization, port, and channel (collectively known as BizTalk configuration objects) for use with the HTTP Inbound Transport. For details, see To set up BizTalk configuration objects for HTTP inbound below.
182
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
b c 2
Set up a Siebel Trading Partner to be the Destination Organization, such as Oracle. Create new document specification for the XDR document definition stored in WebDav.
Set up a new BizTalk Server port to send the document to the Siebel application with the Primary Transport of Application Integration Component, Siebel.BizTalkHTTPAIC.
a b c d
Using BizTalk Messaging Manager, create a new port named Siebel HTTP AIC Port. Specify the primary transport type to be Application Integration Component. Specify the Component Name to be the AIC component name, Siebel.BizTalkHTTPAIC. Save your work.
When you have finished setting up this port, BizTalk is configured to deliver messages to Siebel BizTalk AIC.
Set up a new channel for the port created in Step d, such as Siebel HTTP AIC Channel. After you have specified HTTP AIC as the primary transport for document interchange with Siebel information, you need to supply BizTalk with configuration data specific to Siebel HTTP AIC. You do so by creating a new channel. For more information on setting up ports and channels, see Microsoft BizTalk Server documentation. This configuration data is passed to the Siebel HTTP AIC component through the BizTalk Server. One of the configuration items that is passed to the Siebel HTTP AIC component is the name of the HTTP Service you defined within Siebel application. HTTP AIC dynamically invokes the HTTP Service within the Siebel application and passes the XML document to the HTTP Service through the Siebel Web Engine. You can optionally create maps using BizTalk Mapper if data transformation is required for the documents received by the Siebel application from the external application. For information on the mapping capabilities of BizTalk, see Microsoft BizTalk Server online documentation.
a b
Configure the Advanced properties in the final Channel Configuration page. Provide the input parameters as required by the EAI HTTP Transport: Web Server is the server where SWE is running (format is defined as webserver:Port), Source is the new HTTP Service you previously created, and the user name and password to connect to the Siebel Server.
Configure a File Receive Function from BizTalk Server Administration to poll a file location and deliver to the channel configured in Step 2. NOTE: This example uses File Transport to receive documents from trading partners for the sake of illustration. In your actual business situations, a trading partner can deliver messages to a Siebel application over any supported transport.
a b c
Open BizTalk Server Administration, expand Microsoft BizTalk Server, and expand the server group to which you want to add the File receive function. Select Receive Functions. Choose Action > New > File Receive Function and provide the following information.
Name. The name of the File receive function, such as Siebel HTTP AIC.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
18 3
Comment. Add a brief description (optional). Server. Server on which the receive function runs. Polling Location. Enter c:\http.
NOTE: This is the location where your trading partner delivers the XML documents for the Siebel application so the channel can pick it up from there and send it to the Siebel application for processing.
File Types To Poll For. Type the extension of the files that BizTalk Server receives. In this case, type *.xml.
d 5
Click the Advanced tab and enter a Channel Name, such as Siebel HTTP AIC Channel.
Click OK to finish. NOTE: If there are any errors while sending the document to the Siebel Server, they are written to the Application Event log with details.
184
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
In all cases, the Java code acts as client-side proxy stub to the corresponding object on the Siebel Server. It does not implement the functionality of the object in Java. For ease of use, the Siebel Code Generator can be used to produce Java code based on the Siebel Java Data Bean for any specific business service or integration object. This generated code has an API specific to the chosen business service or integration object. Additionally, Siebel applications support the J2EE Connector Architecture with the Siebel Resource Adapter. The Siebel Resource Adapter supports the invocation of business services.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
18 5
The first step in using the Siebel Java Data Bean is to log in to the Object Manager of the Siebel Server. The first parameter, the connection string, specifies the protocol, server name, enterprise name, and object manager name. Once logged into the Object Manager, the methods getBusObject and getBusComp are used to obtain business objects and their business components. The code sample activates fields to allow the query to retrieve data for the specific fields, specifies the search criteria, and executes the query. If the query is successful, the first and last name of the contact are printed to the standard output. import com.siebel.data.*; public class ObjectInterfaceExample { public static void main(String[] args) throws SiebelException { String connectString = "siebel://mymachine:2321/siebel/SCCObjMgr_enu"; SiebelDataBean dataBean = new SiebelDataBean(); dataBean.login(connectString, "USER", "PWD", "enu"); SiebelBusObject busObject = dataBean.getBusObject("Contact"); SiebelBusComp busComp = busObject.getBusComp("Contact"); busComp.setViewMode(3); busComp.clearToQuery(); busComp.activateField("First Name"); busComp.activateField("Last Name"); busComp.activateField("Id"); busComp.setSearchSpec("Login Name", "thomas"); busComp.executeQuery2(true,true); if (busComp.firstRecord()) { System.out.println("Contact ID: " + busComp.getFieldValue("Id")); System.out.println("First name: " + busComp.getFieldValue("First Name")); System.out.println("Last name: " + busComp.getFieldValue("Last Name")); } busComp.release(); busObject.release(); dataBean.logoff(); } If the query results in multiple records, the record set can be iterated as follows: if (busComp.firstRecord()) { // obtain the fields/values from this record while (busComp.nextRecord()){ // obtain the fields/values from the next record } }
186
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
There are several ways to invoke a business service. The simplest way is using the Siebel Java Data Bean directly, as shown in the following example. Alternatively, Siebel Tools provides a Code Generator which creates, for any business service, Java classes that invoke the business service. The generated code may invoke the business service either using the Siebel Java Data Bean or using the Siebel Resource Adapter. The creation and use of generated code is described in the next section. The Siebel Resource Adapter is part of the J2EE Connector Architecture, which is described in About the Siebel Resource Adapter on page 201. Following is an example of invoking a business service directly using the Siebel Java Data Bean. import import import import com.siebel.data.SiebelDataBean; com.siebel.data.SiebelException; com.siebel.data.SiebelPropertySet; com.siebel.data.SiebelService;
public class BasicDataBeanTest { public static void main(String[] args) throws SiebelException { SiebelDataBean dataBean = new SiebelDataBean(); dataBean.login("siebel://mymachine:2321/siebel/SCCObjMgr_enu", "USER", "PWD", "enu"); SiebelService businessService = dataBean.getService("Workflow Utilities"); SiebelPropertySet input = new SiebelPropertySet(); SiebelPropertySet output = new SiebelPropertySet(); input.setValue("Please echo this"); businessService.invokeMethod("Echo", input, output); System.out.println("Output: " + output.toString()); } }
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
18 7
Select the desired business service (or integration object), as shown in the following illustration for an integration object. On the right top corner of the Integration Object list, there is a set of three buttons. The following illustration shows the Sample Account integration object highlighted.
4 5
a b c d
Leave the business service as is (there is only one available: the Siebel Code Generator). Select either Java(JDB) (Java Data Bean) or Java(JCA) (J2EE Connector Architecture/Siebel Resource Adapter) for the Supported Language. Browse to select an existing folder as the output folder. Your Java code for the selected business services or integration objects is stored in subdirectories there, as explained next. Click Finish. The code is generated and the wizard closes, returning you to the Business Service or Integration Object form.
188
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
ASI business services based on the data sync service have integration objects as part of the input or output of their methods. The JavaBeans representing these integration objects must be generated separately from the business service. The classes for a given business service reside in a package in one of the following:
Depending on whether the beans are based on the Java Data Bean or the Siebel JCA Resource Adapter. For example, generated JDB code for the EAI Siebel Adapter resides in the package com.siebel.service.jdb.eaisiebeladapter. The Code Generator creates the standard Java directory structure reflecting the package structure. As shown in Figure 7, a subfolder named com is created in the folder specified during the generation process. Below the com folder is a folder named siebel containing a folder named service, containing a folder named jdb (or jca), containing a folder named for the business service. This last folder contains the classes for the business service. Each class is defined in its own file.
A folder is created under jdb (or jca) for every business service generated. The folder holds several Java files.
Figure 7.
One Java class is generated to represent the business service itself. The name of the class is the name of the business service with all special characters replaced by underscores (_) and BusServAdapter appended to the end. For example, the class representing EAI Siebel Adapter is EAI_Siebel_AdapterBusServAdapter. The Java class has one method for each method of the business service. Its name is the name of the method with m prepended. For code based on the Java Data Bean, the class is a subclass of com.siebel.integration.adapter.SiebelJDBAdapterBase. For code based on the Siebel Resource Adapter, the class is a subclass of com.siebel.integration.adapter.SiebelJCAAdapterBase.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
18 9
Additionally, for each method of the business service defined in Siebel Tools, one Java class is created for the method's input and one for the method's output. The name of the class is the name of the method with Input or Output appended. The class encapsulates all input (or output) arguments for the method. Each argument is represented as a field whose name is that of the argument with f prepended. For each field, public set and get methods are provided Java methods for reading and writing their values. For example, the business service CC XML Converter, which has two methods, PropSetToXML and XMLToPropSet, generates the following four classes: CC_XML_Converter BusServiceAdapter PropSetToXMLInput PropSetToXMLOutput XMLToPropSetInput
The first class, CC_XML_Converter BusServiceAdapter, represents the business service as a whole; it has methods mPropSetToXML and mXMLToPropSet. The other three classes represent the input or output parameters of the two methods. (Notice there is no class XMLToPropSetOutput because that method has no outputs.) Those three classes each have methods to read and write the individual parameters, as well as methods to convert to and from a com.siebel.data.SiebelPropertySet.
190
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 26.
Methods of the Java Class com.siebel.service.jdb.GenericServiceBusServAdapter Generated for an Example Business Service, GenericService, Having the Business Service Method GenericMethod Description Constructor that uses the default properties file, siebel.properties. Constructor that reuses the resources of an existing SiebelDataBean. Constructor taking the name of the properties file to use. Constructor taking the username, password, and connect string. Constructor taking the username, password, connect string, and language. Invokes the specified business service method.
Method GenericServiceBusServAdapter() GenericServiceBusServAdapter(SiebelDataBean) GenericServiceBusServAdapter(String) GenericServiceBusServAdapter(String, String, String) GenericServiceBusServAdapter(String, String, String, String) mGenericMethod(GenericMethodInput)
Methods of the Java Class com.siebel.service.jdb.GenericMethodInput Generated for an Example Business Service Method, GenericMethod Description Constructor. Constructor that sets its fields from the given property set. Copies fields values from the given property set. Returns a SiebelPropertySet with the properties and values corresponding to the fields of this object. Returns the value of business service method argument. Sets the value of a business service method argument.
getfGenericArgument() setfGenericArgument(String)
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19 1
Methods of the Java class com.siebel.service.jdb.GenericMethodOutput Generated for an Example Business Service Method, GenericMethod Description Constructor. Constructor that sets its fields from the given property set. Copies fields values from the given property set. Returns a SiebelPropertySet with the properties and values corresponding to the fields of this object. Returns the value of business service method argument. Sets the value of a business service method argument.
getfGenericArgument () setfGenericArgument ()
One folder is created under local for each integration object that is generated. It contains all Java files for that integration object.
Figure 8.
192
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
For example, the integration object Sample Account; which has five components Account, Account Attachment, Account_Organization, Business Address, and Contact; generates the following six classes: Sample_AcccountIO AccountIC Account_AttachmentIC Account_OrganizationIC Business_AddressIC ContactIC
The first class, suffixed with IO, represents the entire integration object. It has methods to construct the object, to read and write fields, to add integration object components, and to convert to and from a SiebelPropertySet. The other five classes, suffixed with IC, represent the individual integration object components and provide methods that are for constructing the component to read and write fields and to convert to and from a SiebelPropertySet.
Methods of the Java Class com.siebel.local.GenericIntObjIO Generated for an Example Integration Object, GenericIntObj Description Adds an integration object component object to the integration object. Returns a copy of the integration object. Determines whether integration object has the same data as the integration object passed. Copies the data from the given property set to the integration object. Returns a String containing the format of the integration object. Returns the integration object name property. Returns a Vector representation of the integration object. Returns the MessageId property of the integration object. Returns the MessageType property of the integration object.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19 3
Methods of the Java Class com.siebel.local.GenericIntObjIO Generated for an Example Integration Object, GenericIntObj Description Returns the OutputIntObjectName property of the integration object. Default constructor. Creates an integration object (and its hierarchy) based on a property set. Sets the IntObjectFormat property of the integration object. Sets the IntObjectName property of the integration object. Sets the MessageId property of the integration object. Sets the MessageType property of the integration object. Sets the OutputIntObjectName property of the integration object. Returns a SiebelPropertySet representation of the integration object.
getfOutputIntObjectName Generic_ObjectIO() Generic_ObjectIO(SiebelPropertySet ps) setfIntObjectFormat setfIntObjectName setfMessageId setfMessageType setfOutputIntObjectName toPropertySet
Table 30.
Methods of the Java Class com.siebel.local.GenericIntCompIC Generated for an Example Integration Object, GenericIntComp Having Child Component GenericIntCompChild and Field GenericField Description Adds to the integration object component the given child integration object component. Returns a copy of the integration object. Determines whether the integration object component has the same data as the passed integration object component.
clone equals(Object)
194
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Table 30.
Methods of the Java Class com.siebel.local.GenericIntCompIC Generated for an Example Integration Object, GenericIntComp Having Child Component GenericIntCompChild and Field GenericField Description Populates the integration object component based upon the contents of a property set. Returns a Vector containing all child integration object components of type ChildIntObjComp associated with the integration object component. Returns the value of the field GenericField. Default constructor. Creates an integration object component from a property set. Sets the value of the field GenericField. Returns a property set representation of the integration object component.
getfGenericIntCompChildIC
These jar files are provided with the standard Siebel installation under the directory INSTALLED_DIR\classes. Documentation of individual classes is provided in the form of javadoc (Siebel_JavaDoc.jar), which is installed when installation option Siebel Java Integrator (a component of the Siebel Tools or the Siebel Server installer) is chosen. This .jar file contains the up-to-date javadoc for the Siebel Java Data Bean, Siebel Resource Adapter, and dependent classes. NOTE: The Siebel Data Bean is not thread-safe: simultaneous access by different threads is not supported. This restriction applies to all objects obtained from the same instance of SiebelDataBean. For example, if two instances of SiebelBusObj are obtained from the same SiebelDataBean, methods on them are not invoked simultaneously by different threads.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19 5
The connect string has the following form: siebel://SiebelServerName:SCBPort/EnterpriseName/XXXObjMgr_lang For example, siebel://mymachine:2321/mysiebelenterprise/SCCObjMgr_enu When using generated code, by default, these parameters are taken from the file siebel.properties, which must be in the classpath of the JVM. These properties are read from siebel.properties at the time an instance of the generated business service class is created using the parameterless constructor. They may be overridden by calling the methods setConnectString, setUserName, setPassword, and setLanguage any time prior to calling initialize() or invoking a business service method (such as mGenericMethod in Table 26). This is the behavior when the default (parameterless) constructor of the generated Java class is used. Alternatively, the generated class provides the following four constructors with arguments: One String argument: the name of the property file to be used. Three String arguments: the connect string, username, and password. No properties file is used. Four String arguments: the connect string, username, password, and language. No properties file is used. SiebelDataBean argument: the SiebelDataBean passed should already have parameters assigned and its login method executed.
196
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
The following table, Table 31, gives the details of these parameters.
Properties in the siebel.properties File Description The number of milliseconds to wait after sending a request to the Siebel Server. Must be a positive integer; other values are ignored. The default is 600000 milliseconds (10 minutes). For each object manager process, a pool of open connections is maintained and shared by all users of that process. This parameter specifies the maximum number of connections that will be stored in the pool. Its value must be a positive integer less than 500; other values are ignored. The default is 2. The number of seconds the Siebel Server will wait before disconnecting an idle client session. Its value must be a nonnegative integer. The default is 2700 seconds (45 minutes). Determines whether encryption of transmissions is done using Java Cryptography Extension or RSA (if the connection uses encryption). 1 indicates JCE; 0 indicates RSA. The default is 0. The number of attempts to be made at establishing a connection (opening a session) before giving up. Must be a positive integer. The default is 3. A listing of virtual servers representing a group of like servers that perform the same function, for example, call center functions. An incoming login for the call center Virtual Server will try servers from the list in a round-robin fashion. An example of such a list follows:
siebel.conmgr.txtimeout
siebel.conmgr.poolsize
siebel.conmgr.sesstimeout
siebel.conmgr.jce
siebel.conmgr.retry
siebel.conmgr.virtualhosts
VirtualServer1=sid1:host:port,sid2:host:port...;Virt ualServer2=...
where:
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19 7
Properties in the siebel.properties File Description The level of messages to be logged. Must be a positive integer less than 6. Other values are ignored or throw an exception. 0 causes only FATAL messages to be logged; 1 ERROR; 2 WARN; 3 INFO; 4 DETAIL; 5 DEBUG. The default is 0. NOTE: The siebel.loglevel parameter is used only in conjunction with the generated code for the SiebelJCAAdapterBase subclass.
siebel.loglevel
siebel.logfile
The name of a file to which logging should be directed. Strings that cause a FileNotFoundException cause an error to be logged and are ignored. The default is to print to the JVMs standard output. NOTE: The siebel.logfile parameter is used only in conjunction with generated code for the SiebelJCAAdapterBase subclass.
The Siebel username to be used for logging in to the Siebel Object Manager. The Siebel password to be used for logging in to the Siebel Object Manager. The language code indicating the natural language to be used for messages and other strings. Default is enu. The name of a subclass of com.siebel.data.SiebelDataBean to use instead of SiebelDataBean. Strings that do not specify a valid class or specify a class that is not a subclass of SiebelDataBean cause an error log to be logged and SiebelDataBean to be used instead.
Here is a sample siebel.properties file: siebel.connection.string siebel.user.name siebel.user.password siebel.user.language siebel.user.encrypted siebel.conmgr.txtimeout siebel.conmgr.poolsize siebel.conmgr.sesstimeout siebel.conmgr.retry siebel.conmgr.jce siebel.loglevel = = = = = = = = = = = siebel:// 172.20.94.55:2321/siebel/EAIObjMgr_enu User1 password enu false 3600 5 300000 5 1 0
198
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
public class JDBSiebelAccount { public static void main(String[] args) throws SiebelException { Siebel_AccountBusServAdapter svc = new Siebel_AccountBusServAdapter("USER", "PWD","siebel://mymachine:2321/siebel/SCCObjMgr_enu","enu"); // Create the example-accounts starting with "Ai": AccountIC acctIC = new AccountIC(); Sample_AccountIO acctIO = new Sample_AccountIO(); acctIO.addfintObjInst(acctIC); acctIC.setfName("Ai*"); QueryByExampleInput qbeIn = new QueryByExampleInput(); qbeIn.setfSiebelMessage(acctIO); // Call QueryByExample QueryByExampleOutput qbeOut = svc.mQueryByExample(qbeIn); acctIO = new Sample_AccountIO(qbeOut.getfSiebelMessage().toPropertySet()); Vector ioc = acctIO.getfintObjInst(); // print the name of each account returned: if (!ioc.isEmpty()) { for(int i=0; i < ioc.size(); i++) { acctIC = (AccountIC) ioc.get(i); System.out.println(acctIC.getfName()); } } }
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
19 9
The following example uses the generated code for the business service EAI Siebel Adapter. An instance is instantiated using the constructor that takes an instance of SiebelDataBean. The QueryPage method is called; its output is actually a SampleAccount integration object, but the object returned is not strongly typed and instead is used to construct a SampleAccount instance. The generated code for SampleAccount is also needed for this example. import import import import import import import com.siebel.data.SiebelDataBean; com.siebel.data.SiebelException; com.siebel.local.sampleaccount.AccountIC; com.siebel.local.sampleaccount.Sample_AccountIO; com.siebel.service.jdb.eaisiebeladapter.EAI_Siebel_AdapterBusServAdapter; com.siebel.service.jdb.eaisiebeladapter.QueryPageInput; com.siebel.service.jdb.eaisiebeladapter.QueryPageOutput;
public class DataBeanDemo { public static void main(String[] args) throws SiebelException { SiebelDataBean m_dataBean = new SiebelDataBean(); String conn = "siebel://mymachine:2321/siebel/SCCObjMgr_enu"; m_dataBean.login(conn, "USER", "PWD", "enu"); // Construct the EAI Siebel Adapter, using the data bean EAI_Siebel_AdapterBusServAdapter svc = new EAI_Siebel_AdapterBusServAdapter(m_dataBean); svc.initialize(); try { // Set values of the arguments to the QueryPage method. QueryPageInput qpInput = new QueryPageInput(); qpInput.setfPageSize(Integer.toString(10)); // Return 10 records. qpInput.setfOutputIntObjectName("Sample Account"); qpInput.setfStartRowNum(Integer.toString(0)); // Start at record 0. QueryPageOutput qpOutput = svc.mQueryPage(qpInput); // Construct the integration object using the QueryPage output Sample_AccountIO acctIO = new Sample_AccountIO(qpOutput.getfSiebelMessage().toPropertySet()); // Convert the results to a vector for processing Vector ioc = acctIO.getfintObjInst(); // Print name of each account if (!ioc.isEmpty()) { for (int i = 0; i < ioc.size(); i++) { AccountIC acctIC = ((AccountIC) ioc.get(i)); System.out.println(acctIC.getfName()); } } } catch (SiebelException e) {} finally { m_dataBean.logoff(); } } }
200
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
The resource adapter archive, or RAR file, may also be required for deployment. Refer to the documentation of the J2EE application server for more information on deploying a JCA adapter on the server. The following sections contain code samples for both managed and non-managed environments.
About the Connect String and Credentials for the Java Connector
The Java Connector Architecture allows for credentials to be supplied using either ContainerManaged Sign-on or Application-Managed Sign-On. With Container-Managed Sign-On, the application server's container identifies the principal and passes it to the JCA adapter in the form of a JAAS Subject. Application servers provide their own system of users and roles; such a user must be mapped to Siebel user and password for the purpose of the JCA adapter. Application servers allow the specification of such mappings. With ContainManaged Sign-On, the Siebel connect string and language must be specified in the deployment descriptor of the adapter (ra.xml). If a Siebel username and password are present in the descriptor, they will be used by the application server only to create an initial connection to the Siebel application when the application server is started, which is not necessary.
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
20 1
With Application-Managed Sign-On, the client application must provide the credentials and connect string. This is done just as for the Java Data Bean, as described in About Running the Java Data Bean on page 195, by either supplying them in siebel.properties or setting them programmatically using setUserName, setPassword, setConnecString, and setLanguage. If any of these parameters are supplied using Application-Managed Sign-On, then all four of them should be supplied in that manner. NOTE: Connection parameters beginning with siebel.conmgr are read from siebel.properties, whether the adapter is being used in managed or non-managed mode.
public class ManagedConnectionServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { PrintWriter reply = response.getWriter(); try { EAI_File_TransportBusServAdapter bs = new EAI_File_TransportBusServAdapter(); InitialContext jndi = new InitialContext(); SiebelConnectionFactory scf = (SiebelConnectionFactory)jndi.lookup("siebelJCA"); bs.setConnectionFactory(scf); // Username and password obtained from JAAS Subject passed by server at runtime. // Connect string and language obtained from deployment descriptor, ra.xml. ReceiveInput input = new ReceiveInput(); input.setfCharSetConversion("UTF-8"); input.setfFileName("D:\\helloWorld.txt"); ReceiveOutput output = bs.mReceive(input); reply.println(output.getf_Value_()); } catch (Exception e) { reply.println("Exception:" + e.getMessage()); } } }
202
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
public class BookshelfNonManagedConnectionSample extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { PrintWriter reply = response.getWriter(); try { EAI_File_TransportBusServAdapter bs = new EAI_File_TransportBusServAdapter(); bs.setConnectionFactory(new SiebelNoTxConnectionFactory()); // Credentials, connect string, and language are read from siebel.properties, // which must be in the classpath of the servlet. // Alternatively, these may be set here programmatically: //bs.setUserName("USER"); //bs.setPassword("PWD"); //bs.setConnectString("siebel://mymachine:2321/siebel/SCCObjMgr_enu"); ReceiveInput input = new ReceiveInput(); input.setfCharSetConversion("UTF-8"); input.setfFileName("D:\\helloWorld.txt"); ReceiveOutput output = bs.mReceive(input); reply.println(output.getf_Value_()); } catch (Exception e) { reply.println("Exception:" + e.getMessage()); } } }
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
20 3
204
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Index
Symbols
.cfg file entries, future support of 81 .jar files about and list of 201 .rqy file, about using to store query 124
99
B
batch loading, about 18 BEA, about deploying in J2EE Application Server 201 BizTalk Server about 143 Active Server Pages, copying to BizTalk Server 182 BizTalk configuration objects, setting up for HTTP inbound 182 channel, setting up 175 configuration objects, setting up 164 configuration objects, Siebel HTTP Inbound Transport 158 configuration objects, Siebel HTTP Outbound Transport 178 configuration objects, Siebel MSMQ Outbound Transport 155 document specifications, creating 153 exposing integration objects, checklist 151 features 143 formats 143 HTTP-based AIC DDL, copying from Siebel Server 182 HTTP-Based AIC, setting up to run on 181 IInterchange Submit parameter 163 information sources (table) 144 installation and document specification checklist 149 integration objects, about exposing 150 interface architecture 145 Messaging Manager, configuring 172 receiving messages from 173 required components for HTTP 177 schema, about generating 145 schemas importing 153 Server DLL, copying to Siebel Server 170 Siebel data type mapping 153 Siebel HTTP Outbound Transport, checklist 178 SubmitSync parameter 163 Type Library files, copying to Siebel Server 170 UNIX considerations 149 BizTalk Server adapter
A
Access ad hoc reports, about using for 125 Siebel application data, viewing in 125 Siebel OLE DB Provider, about accessing 116 Access XP, about support of 121 Active Server Pages BizTalk Server Messaging Manager with ASP files, configuring 172 BizTalk Server, copying to 182 HTTP Outbound directory, copying to 177 Siebel OLE DB Provider, about accessing 116 viewing Siebel application data, code sample 134 Active X Data Control, connect string 176 addfChildIntObjComp integration object component 194 addfIntObject method, about 193 AIC Inbound Transport about 167 BizTalk Server, setting up to run locally (checklist) 168 BizTalk Server, setting up to run on 181 installing 168 receiving BizTalk messages, checklist for 173 registering as a COM+package remote communication 171 registering as a COM+server application 168 Siebel Server setup checklist 170 Siebel workflow information, supplying 175 XML documents, creating workflow for 173 AIX configuring with less memory 21 AMI (MQSeries Application Messaging Interface) See EAI MQSeries Server Transport ANSI X12 format 143 Application Integration Components Inbound Transport See AIC Inbound Transport
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
20 5
Index C
installation and document specification checklist 149 preparing to use 148 servers and clients, installing and configuring 149 Siebel integration objects 150 BizTalk Server, connecting to EAI MSMQ Transport, checklist for using inbound messaging 158 EAI MSMQ Transport, checklist for using outbound messaging 154 Siebel AIC Inbound Transport, setting up 167 Siebel COM Outbound Transport, setting up 162 Siebel COM Outbound Transport, using to send messages 163 Siebel HTTP Outbound Transport, checklist 177 business objects, SQL commands for querying 129 business services EAI HTTP Transport, setting up for 90 parameter templates, using 95
D
data Active Server Pages, using to view Siebel data 134 Siebel data, using Visual Basic to view 131 data handling parameters (table) 16 data mapping, OLE DB consumers 113 data transfer, about high volume 18 database table, troubleshooting, could not be opened 138 DataHandlingSubsystem, about using 13 DataSource objects DataSource properties (table) 128 interfaces supported 128 Session object, relation to 129 DBPROP_AUTH_PASSWORD property 129 DBPROP_AUTH_USERID OLE DB property 129 DBPROP_INIT_DATASOURCE property 129 DBPROP_INIT_PROMPT property 129 dead letter queue, about 29 dispatch error handling for EAI MQSeries Server Transport 23 Dispatch method, about 13 Dispatch parameter usage, table of 15 Dispatch service, about 13 DispatchMethod parameter, about 16 DispatchRuleSet parameter, about 16 DispatchService parameter, about 16 DispatchWorkflowProcess parameter, about 17 distribution list, role in BizTalk transport 147 DLL properties, viewing 120 DLLs, external DLL, making 108 EAI DLL Transport, using to call a function 108 methods, supported 107 parameters, about 107 document specifications checklist for creating 149 importing schema 153 Document Type Definition (DTD) format importing into BizTalk, overview 145 new schema, generating 152
C
.cfg file entries, future support of 81 character conversion argument, availability of 11 CharSetConversion parameter, about 16 clone integration object component 194 clone method, about 193 COM Outbound Transport BizTalk communication link, establishing 162 parameters (table) 163 sending messages, checklist 163 COM+ package AIC, registering 171 BizTalk Server, registering on 168 remote communication, creating 171 Command object, about and interfaces supported 129 CommandType property 124 connect string local client mode, Siebel OLE DB Provider 118 Siebel OLE DB Provider, server connected mode 117 TCP/IP example 85 Connection property 124 ConnectionSubsystem parameter, about using 13 consumers
E
EAI BTS COM Transport, about using EAI Connectors, BizTalk Server 167
206
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Index E
integration 149 EAI DLL Transport DLL, making 108 external DLL, calling a function 108 methods, supported 107 parameters, about 107 EAI File Transport about 109 EAI XML Read from File, compared to 109 file names, generating 110 parameters (table) 111 supported modes (table) 109 workflow, creating 110 EAI HTTP Transport about and methods 79 business service, selecting 80 external system, using messages returned from 100 HTTP outbound, basic authentication with 99 HTTP request in session mode 98 inbound messaging, about 84 inbound messaging, specifying HTTP parameters 84 network (HTTP protocol), login HTTP request example 1 86 network (HTTP protocol), login HTTP request example 2 87 network (HTTP protocol), logoff HTTP request 88 POST and GET methods, about and restrictions 80 send and receive messages, creating workflow process 95 Send and SendReceive arguments (table) 101 sending messages, process overview 81 sessionless mode, secure request in 99 sessionless mode, using in 88 Siebel Server, setting configuration parameters 85 system requirements 80 EAI HTTP Transport, inbound business service, setting up 90 error handling 93 usage checklist 90 workflow process, creating 91 EAI HTTP Transport, outbound HTTP parameter templates 95 HTTP parameters as run-time properties 95 parameters, about specifying 93 server-side parameters, specifying 94 EAI MQSeries Server Transport See also inbound messages AIX environment, configuring with less
memory 21 configuring 20 dispatch error handling 23 MQMD headers, exposing 23 MQSeries Server Receiver, about using 23 parameters (table) 22 re-entrance process, about using 25 using about 19 EAI MSMQ Outbound, setting up BizTalk configuration objects 155 EAI MSMQ Transport See also BizTalk Server, connecting to; MSMQ Transport; MSMQ Transport Server, configuring about 29 inbound messages, receiving 41 integration objects, defining 33 messages, receiving, dispatching, and sending 45 MSMQ, receiving messages from 41 MSMQ, sending literal to and receiving a response 37 outbound messages, sending with 34 parameters (table) 32 prerequisites, about 32 receiving and executing messages 43 Siebel application, sending messages from 34 EAI XML Read from File, compared to EAI File Transport 109 EDIFACT format 143 Electronic Data Exchange (EDI) format 143 Electronic Data Interchange for Administration, Commerce and Transport (EDIFACT) format 143 equals integration object component 194 equals method, about 193 error dispatch service error, receiver shuts down (troubleshooting) 13 workflow, capturing error in workflow 26 error handling EAI HTTP Transport 93 EAI MQSeries Server Transport, for 23 Excel query properties (table) 124 Siebel application data, viewing in 124 Siebel OLE DB Provider, about accessing 116 external OLE DB-enabled applications See Microsoft OLE DB external system messages, using returned from 100 Siebel application, sending messages from 30
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
20 7
Index F
F
file names, generating 110 foreign keys, using 119 fromPropertySet method integration object 193 integration object component 195
G
GET method about and restrictions (table) 80 Session Cookie mode login example 86 getfChildIntOb integration object component 195 getfFieldName integration object component 195 getfIntObjectFormat method, about 193 getfIntObjectName method, about 193 getfintObjInst method, about 193 getfMessageId method, about 193 getfMessageType method, about 193 getfOutputIntObjectName method, about 194
H
HTTP inbound, setting up for BizTalk configuration objects 182 HTTP Session Cookie mode login examples 86
I
IAccessor interface Command object 129 Rowset object 130 IBM MQSeries See EAI MQSeries Server Transport IBM MQSeries client, about connecting to 20 IBM WebSphere, about deploying in J2EE Application Server 201 IColumnsInfo interface Command object 129 Rowset object 130 ICommand interface 129 ICommandProperties interface 129 ICommandText interface 129 ICommandWithParameters interface 129 IConvertType interface Command object 129 Rowset object 130 IDBCreateCommand interface 129
IDBCreateSession interface 128 IDBInitialize OLE DB interface 128 IDBProperties OLE DB interface 128 IDBSchemaRowset interface 129 IGetDataSource interface 129 IgnoreCharSetConvErrors parameter, about 17 IIS See Microsoft Internet Information Server (IIS) Inbound EAI HTTP Transport business service See EAI HTTP Transport, inbound inbound messages See also EAI MQSeries Server Transport about 84 EAI Transport, receiving 41 HTTP parameters, specifying 84 Message Id tracking 26 Siebel Server, setting configuration parameters 85 inbound methods about 13 dispatch service error, receiver shuts down (troubleshooting) 13 list of 13 InputBizdoc process property 174 integration objects about exposing 150 checklist for creating 149 EAI MSMQ Transport, defining for 33 exposing, checklist for 151 Java code directory structure 191 Java code, generating 188 new schema, generating 152 OLE DB differences in 123 OLE DB rowsets 120 OLE DB rowsets, relationship to 114 Sample Account integration object, generated JavaBean for 192 Siebel OLE DB Rowset object, creating 121 Siebel Server workflow, configuring for 173 for trading partners 151 Integration_ObjectIO method, about 194 IntObjCompIC integration object component, default Java methods 195 integration object component, default method (SiebelPropertySet) 195 IOpenRowset interface 129 IPersist OLE DB interface 128 IRowset interface 130 IRowsetInfo interface 130 ISessionProperties interface 129
208
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Index J
ISupportErrorInfo interface Command object 129 Rowset object 130 ISupportErrorInfo OLE DB interface 128
J
J2EE Connector Architecture, about support for Siebel Resource Adapter 201 Java code, integration objects directory structure 191 generating 188
L
language, support of multilingual operation 118 local client mode, about connecting to Siebel OLE DB Provider 118 login HTTP request example 1 86 HTTP request example 2 87 logoff HTTP request 88
M
Message Id tracking for inbound messages 26 Message queuing API (MQI) See EAI MQSeries Server Transport messages EAI MSMQ Transport, receiving, dispatching, and sending messages 45 external system, sending messages to 30 inbound messages, receiving with EAI MSMQ Transport 41 Message Id tracking for inbound messages 26 outbound messages, sending with EAI MSMQ Transport 34 sending and receiving messages, methods for 30 Siebel application to an external system, sending 30 Microsoft Access ad hoc reports, about using for 125 Siebel application data, viewing in 125 Siebel OLE DB Provider, about accessing 116 Microsoft Access XP, about support of 121 Microsoft ADO version 2.1 116 Microsoft BizTalk Server 2000 See BizTalk Server Microsoft Excel query properties (table) 124 Siebel application data, viewing in 124
Siebel OLE DB Provider, about accessing 116 Microsoft Excel 2000, OLE DB connection to 117 Microsoft Internet Information Server (IIS) BizTalk Server 177 OLE DB Consumer 116 Microsoft Message Queuing Transport See MSMQ Transport Microsoft OLE DB See also Siebel OLE DB Provider about 113 supported foundation version 116 Microsoft SQL Server, distributed queries 126 Microsoft Visual Basic, using to view Siebel data 131 Microsoft Windows Client, about using to query Siebel OLE DB rowsets 114 Microsoft Windows Event Viewer, using 119 Microsoft Windows Server, about using to distribute Siebel OLE DB rowsets 114 model queue, about sending to 22 MQI (Message queuing API) See EAI MQSeries Server Transport MQMD headers about exposing 23 message headers (table) 24 MQSeries Application Messaging Interface (AMI) See EAI MQSeries Server Transport MQSeries Server Receiver using, about 23 workflow process, invoking 26 MSMQ Client configuring 31 MSMQ transport See also EAI MSMQ transport about 29 EAI MSMQ Transport, about 29 sending and receiving messages, methods for 30 MSMQ Transport Server, configuring See also EAI MSMQ Transport MSMQ Primary Controller, about configuring 31 Regional Enterprise Server and MSMQ Client, configuring 31 MSSQL, unable to query SODP using 140 multivalue fields (MVFs), about creating 120 mutilingual operation, support of 118 MVFs (multivalue fields), about creating
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
20 9
Index N
N
named subsystems data handling parameters (table) 16 Dispatch parameter usage (table) 15 EAI Transport parameters 15 object interfaces, about and support of 17 parameter specification precedence rules 14 parameters, about specifying in business service 14 named subsystems, configuring object interfaces, about and support of 17 network HTTP protocol, using in sessionless mode 88 login HTTP request example 1 86 login HTTP request example 2 87 logoff HTTP request 88
outbound messages, sending with EAI MSMQ Transport 34 outbound methods, about and list of 12
P
parameter templates, about 95 parameters COM Outbound Transport (table) 163 data handling parameters (table) 16 Dispatch parameter usage (table) 15 DLL Transport parameters (table) 107 EAI File Transport (table) 111 EAI MQSeries Server Transport parameters (table) 22 EAI MSMQ Transport parameters (table) 32 EAI Transport parameters, about 15 specification precedence rules 14 specifying as run-time properties 95 POST method about and restrictions (table) 80 Session Cookie Mode login example 86 primary keys, using 119
O
object interfaces about and support of 17 OLE DB See Microsoft OLE DB OLE DB Consumers applications supported 120 defined 113 multivalue fields, use of 120 OLE BD objects supported, list of 128 retrieving data, about 120 writing, about 128, 134 OLE DB objects Siebel OLE DB Command object, about and interfaces supported 129 Siebel OLE DB Command object, syntax 130 Siebel OLE DB DataSource object, about and interfaces supported 128 Siebel OLE DB Rowset object, about and interfaces supported 130 Siebel OLE DB Session object, about and interfaces supported 129 OLE DB Provider configuration testing 116 IDBCreateCommand interface 129 IDBCreateSession 128 IDBInitialize 128 IDBProperties interface 128 IPersist interface 128 ISupportErrorInfo interface 128 software architecture 114 OLE DB rowsets See rowsets Outbound EAI HTTP Transport business service See EAI HTTP Transport, outbound
Q
queries Command object, creating 129 distributed 126 Microsoft Excel query properties (table) 124 queries against one virtual table 130 query file, Siebel OLE DB Provider 124 Siebel OLE DB Provider, using 125 troubleshooting, query did not run 138 QueryText property 124 QueryType property 124
R
Receive and Execute inbound method, about 13 Receive inbound method, about 13 Receive, Execute, Send inbound method, about 13 ReceiveDispatch inbound method, about 13 ReceiveDispatch method, about dispatch error handling 23 ReceiveDispatchSend inbound method, about 13 ReceiveDispatchSend method dispatch error handling, about 23 receiving messages external system to a Siebel application 30 external system, from a Siebel application 30 methods for 30
210
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Index S
Regional Enterprise Server, configuring 31 Resource Adapter See Siebel Resource Adapter RollbackOnDispatchError parameter, about 17 Rowset object, about and interfaces supported 130 rowsets See also Siebel OLE DB Rowset integration objects, relation to 114 naming convention 122 resequencing field names 122 retrieving data, about 120 rowset object, creating 121 rowset object, modifying 123 Rowset object, support of 130 Session objects, relation to 129 visibility level 122 .rqy file, about using to store query 124 run-time properties, parameters as 95
S
Sample Account integration object, generated JavaBean for 192 SAP IDOC, BizTalk Server scenario 148 Schema Generator Wizard, about using 150 schemas BizTalk, importing into 153 formats 145 generating 152 scripts Active Server Pages, using to view Siebel data 134 OLE DB consumer, writing 128 OLE DB objects supported, list of 128 Siebel OLE DB Provider, about using with 127 Visual Basic, using to view Siebel data 131 Send and Receive outbound method, about 13 Send method arguments (table) 101 sending messages methods for 30 Siebel application from an external system 30 Siebel application to an external system 30 SendReceive method arguments (table) 101 EAI HTTP Transport, about 79 EAI Transport, using with 95 HTTP outbound, basic authentication with 99 HTTP request in session mode 98
secure request in sessionless mode 99 server connected mode, Siebel OLE DB Provider 117 Server: Msg 7357, troubleshooting 139 Server: Msg 7399, troubleshooting 139 Session object, about and interfaces supported 129 setfFieldName integration object component 195 setfIntObjectFormat method, about 194 setfIntObjectName method, about 194 setfMessageId method, about 194 setfMessageType method, about 194 setfOutputIntObjectName method, about 194 Siebel ActiveX Data Controls, installing 168 Siebel AIC, Siebel Server Workflow configuration 173 Siebel application data Microsoft Access, viewing in 125 Microsoft Excel, viewing in 124 SQL Analyzer, viewing in 126 Siebel BizTalk adapter business scenarios 147 COM Outbound Siebel workflow, creating 165 data formats supported 146 inbound and outbound interfacing processes 146 interface file installation 149 new schema, generating 152 protocols supported 144 transport protocols, supported 146 XDR data type mappings 153 Siebel Client, creating COM Outbound workflow 165 Siebel COM Outbound Transport See also BizTalk Server, connecting to Siebel database, writing XML document to 174 Siebel EAI Connectors installation option, caution 118 Siebel eAI Transports See transports; Transport methods Siebel HTTP Inbound Transport about 181 BizTalk configuration objects, setting up 158 BizTalk, receiving messages from (checklist) 182 Siebel Server, about configuring 181 Siebel workflow, creating 159 Siebel HTTP Outbound Transport ASP files, copying to directory 177 BizTalk configuration objects, setting up 178
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
21 1
Index S
BizTalk, sending messages, checklist 178 checklist 177 Siebel workflow, creating 156 Siebel workflow, creating for 179 virtual directory, creating 177 Siebel Integration Objects See integration objects; Java code, integration objects Siebel JAR files, about and list of 201 Siebel JavaBean See also Siebel Resource Adapter Siebel JavaBean Wizard folders and files, about created for integration object 191 integration objects, generating for 188 Sample Account integration object, generated JavaBean for 192 Siebel OLE DB Command object about and interfaces supported 129 syntax 130 Siebel OLE DB DataSource object about and interfaces supported 128 properties (table) 128 Siebel OLE DB Provider See also Microsoft OLE DB about 113 Active Server Pages, about accessing from 116 architecture (diagram) 115 business scenarios 114 Command object 129 configuration testing 116 connection properties (table) 116 data mapping 113 default interface, applications 116 DLL properties, viewing 120 events, viewing 119 Excel or Access, about accessing from 116 foreign keys, using 119 installation, about 115 installation, location of 115 local client mode, about 118 local client mode, data source syntax (table) 118 MS SQL Server and distributed queries 126 multilingual operation, support of 118 multivalue fields, about creating 120 OLE DB consumer, writing 128, 134 OLE DB objects supported, list of 128 primary keys, using 119 read-only status 121 .rqy file 124 scripting languages supported 127 server connected mode, about 117
Session object 129 Siebel data, retrieving using VB and ASP 131 Siebel EAI Connectors installation option, caution 118 Siebel Mobile Client 116 Siebel Server 116 software architecture 114 SQL Server, about accessing from 116 troubleshooting 138 visibility levels 122 Windows client 114 Siebel OLE DB Rowset See also rowsets about 114 integration objects, differences in 123 rowset object, creating 121 rowset object, modifying 123 wizard, about 120 Siebel OLE DB Rowset object, about and interfaces supported 130 Siebel OLE DB Session object, about and interfaces supported 129 Siebel Resource Adapter about 201 using, about 201 Siebel Server AIC Inbound Transport, about 167 AIC Inbound Transport, setup checklist 170 BizTalk Server DLL, copying 170 COM+ remote communication, creating 171 configuration parameters, setting 85 HTTP-based AIC DDL, copying to BizTalk Server 182 integration component workflow, configuring for 173 Siebel HTTP Inbound Transport, about configuring 181 Type Library files, copying 170 Siebel Tools BizTalk Server, exposing integration objects to 145 BizTalk Server, integration object for 150 DTD schemas, role in generating 152 EAI MSMQ transport, about customizing 29 outbound HTTP Transport messages 93 role in specifying business service user properties 93 schema, about generating 145 Siebel OLE DB rowset object, creating 121 Siebel OLE DB rowset object, modifying 123 Siebel OLE DB rowset, role in defining 114 XDR schemas, role in generating 152 Siebel Web client, server connected mode, Siebel OLE DB Provider 117
212
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
Index T
Siebel Web Engine (SWE) connectivity, checking 84 Siebel Workflow Process Manager See EAI MSMQ Transport Siebel workflows COM Outbound, creating 165 creating for Siebel HTTP Inbound Transport, creating for 159 creating for Siebel HTTP Outbound Transport 156 Siebel HTTP Outbound Transport, creating for 179 Siebel Server, configuring for integration objects 173 workflow information, supplying for AIC Inbound Transport 175 siebel.udl file, about using 116 SiebelMessage process property 174 SiebelTransactions parameter, about 17 SODP, unable to query using MSSQL Query Analyzer 140 SQL Analyzer, viewing Siebel Application data in 126 SQL commands, supported 129 SQL Query Analyzer message 7399, troubleshooting 139 SQL Server, about accessing Siebel OLE DB Provider 116
about and list of 12 communication connectivity, about 11 Dispatch parameter usage (table) 15 parameters, about 15 role of 11 Transport methods 12 troubleshooting database table could not be opened 138 initialization failed 138 query did not run 138 Server: Msg 7357 139 SiebelOLEDB.Provider.1 supplied inconsistent metadata for a column message 140 SODP, unable to query using MSSQL Query Analyzer 140 SQL Query Analyzer error message 139 test connection failure 139
U
UNIX, BizTalk Server considerations 149 URL, checking connectivity to SWE 84
V
Version property 124 virtual tables, querying 130 Visual Basic, using to view Siebel data 131
T
templates, about parameter templates 95 test connection button, about using 117 troubleshooting 139 testing See Siebel OLE DB Provider toPropertySet integration object 194 integration object component 195 trading partners BizTalk Server scenario 147 integration objects for 151 Transport methods See also named subsystems; named subsystems, configuring; transports about 12 data handling parameters (table) 16 inbound methods 13 outbound methods 12 transports See also named subsystems; named subsystems, configuring; Transport methods
W
WebDAV BizTalk Repository, about using 151 WebLogic, about deploying in J2EE Application Server 201 WebSphere, about deploying in J2EE Application Server 201 Windows Client, about using to query Siebel OLE DB rowsets 114 Windows Event Viewer, using 119 Windows Server, about using to distribute Siebel OLE DB rowsets 114 workflows EAI File Transport, using to create 110 EAI HTTP Transport, creating to receive messages 91 EAI HTTP Transport, sending messages 81 EAI HTTP Transport, setting up for 95 error, capturing in workflow 26 HTTP outbound, basic authentication with 99 HTTP request in session mode 98 messages, using returned from external system. 100 MQSeries Server Receiver, invoking a process using 26 sessionless mode, secure request in 99
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A
21 3
Index X
X
XDR format BizTalk, importing into overview 145 data type mappings 153
new schema, generating 152 XML BizTalk Server, role in 144 workflow for inbound documents 173
214
Transports and Interfaces: Siebel Enterprise Application Integration Version 7.8, Rev. A