Professional Documents
Culture Documents
Introduction
Welcome!.....................................................................................2
Typographical Conventions .........................................................2
Related Documentation ...............................................................4
Viewing this Document ................................................................4
Printing this Document.................................................................5
W el co m e!
This guide describes how to configure and use the webMethods BroadVision
Adapter. It contains information for administrators who configure and manage a
webMethods Integration system and for application developers who want to create
services that exchange data with BroadVision systems. In particular, this adapter
works with the BroadVision One-To-One Enterprise application platform.
To use this guide effectively, you should:
g Understand the basic concepts described in the webMethods Administrator’s Guide
and the webMethods Developer User’s Guide.
g Know how to create flow, Java, and/or C/C++ services.
g Be familiar with the BroadVision One-To-One Enterprise application server.
T yp o g r ap h i cal C o n ven t i o n s
This document uses the following typographical conventions:
Convention Example
Keyboard keys are shown in uppercase. Press ENTER; then press TAB.
Convention Example
Information that you must read before Caution: If the folder is not already open in the
beginning a procedure or that alerts you Document Browser, open it before you start the
to negative consequences of certain following procedure.
actions is denoted with this special
symbol.
Notes that provide related, but non- Note: When you start the webMethods Developer,
critical, information are denoted with this you will be asked to log on to a webMethods
special symbol. Integration Server.
R el at ed D o cu m en t at i o n
The following documents are useful companions to this guide. Some documents are
in PDF format and others are in HTML.
webMethods Developer Information about creating and testing services and client
User’s Guide applications. This book for application developers.
You will find this book at:
ServerDirectory\doc\ISIntegratorsGuide.pdf
webMethods Integration Information about installing and configuring the Integration Server
Server Clustering Guide Clustering feature. It also contains information for administrators
who configure and manage a webMethods Integration Server
system and for application developers who want to create services
that interact directly with the Integration Server Cluster Store.
ServerDirectory\doc\ISClusteringGuide.pdf
webMethods Descriptions of the Java classes you use to create services. This
Integration Server Java reference is for developers who build services using Java.
API Reference You will find this book at:
ServerDirectory\doc\API\Java\index.html
If you do not have Acrobat Reader, or you do not have the correct version, you can
download a copy from www.adobe.com/products/acrobat/readermain.html.
Product Overview
W h at i s t h e B ro ad V i si o n A d ap t er?
The webMethods BroadVision Adapter provides an easy way to create services that
interact with a BroadVision One-to-One server. The webMethods BroadVision
package includes an inbound adapter and an outbound adapter.
T BroadVision Server
E
Orbix IFR Naming
R Service
N
E 3 6
T
CORBA Servers
4 5
Back-end Systems
Step Description
4–5 The CORBA server performs operations on data in the back-end systems and
receives the result.
6 The CORBA server passes the result back to the flow service.
7 The inbound adapter passes the result (as a Values Object) back to Company
A’s Integration Server.
Note: Do not confuse BroadVision JavaScript page files (.jsp files) with Java Server Pages, which have the
same file extension.
To invoke ExecuteJSP, a requestor must create and run a flow service that specifies
your BroadVision application name, the appropriate JavaScript file to invoke, and an
input string specifying the input accepted by the JavaScripts.
The following figure shows the run-time architecture of an inbound adapter that enables
access via a session portal interface.
I 9 2
BroadVision Server
N
T
Interaction Manager
E
R JavaScript Engine
N BV Component
6 3
E 8 3
T Orbix/IFR Layer
7 4
CORBA Servers
6 5
Back-end Systems
Step Description
3–6 The Interaction Manager uses the BV Component to pass the request to the
appropriate CORBA server, which accesses the requested data from the
back-end systems.
7–9 The CORBA server returns the result to the Interaction Manager, which
returns the result to the ExecuteJSP service.
Company A
BroadVision Server
Integration
Integration
Server 1
Server Interaction Manager
I 10 JavaScript Engine
6 N libwmservercomponent.so
T 2 9
E
R Orbix/IFR Layer
N 3 8
E
T CORBA Servers 4 Integration
Integration
wmCorba_srv.jar Server
7
Server
5
Back-end Systems
Step Description
1 The front end JavaScript sends a request (including flow service invocations)
to the Interaction Manager, which forwards the request to the JavaScript
engine.
2–4 The webMethods Server Library Component calls the webMethods CORBA
Server, which establishes a connection to the Integration Server and executes
the flow service invocations included in the request.
5 The Integration Server sends the request to Company A’s Integration Server.
6 Company A’s Integration Server processes the request and passes the result
back to your Integration Server.
7–9 Your Integration Server passes the result back to the webMethods Server
Library Component, which marshals the results and presents them to the
JavaScript engine.
10 The JavaScript engine passes the results back to the front end.
Introduction..................................................................................................16
Specifying Aliases for BroadVision Servers.................................................16
Implementing Inbound Adapters that Expose CORBA Servers ...................18
Testing Inbound Session Portal Interfaces ..................................................22
I n t r o d u ct i o n
This chapter describes how to implement the inbound adapter.
Before you can use the inbound adapter, you must provide information about your
BroadVision server. For each BroadVision server that you will use, you must
specify alias settings that identify your BroadVision server to the webMethods
Integration Server. For information about this task, see “Specifying Aliases for
BroadVision Servers” on page16.
To enable the inbound adapter to access your BroadVision system via your existing
CORBA servers, you perform the following tasks:
g Ensure that your system administrator has enabled your BroadVision Interface
Repository (IFR) and has added the IDL files associated with your CORBA servers to
the IFR. For information about this task, see “Adding IDL Files to the Interface
Repository” on page 18.
g Select the BroadVision system’s CORBA interface methods that you want to expose
to the adapter and generate flow services that represent those methods. For
information about this task, see “Generating Flow Services for the Inbound Adapter”
on page 19.
Alternatively, if you plan to use the adapter to enable access via session portal
interfaces, you should test the session portal interfaces. The inbound adapter
provides a user interface that enables you to do this. For information about this task,
see “Testing Inbound Session Portal Interfaces” on page 22.
S p e c i f y i n g A l i a s e s f o r B r o ad V i si o n S e r v e r s
When you create services that interact with the BroadVision server, you specify
aliases that the webMethods Integration Server uses to open a session to a
BroadVision Names Server. Aliases are named collections of parameters that you
build using the webMethods Administrator. They encompass the specific connection
values—the Names Server host name, port number, and so forth—necessary to
establish a connection with a particular BroadVision server.
Defining Aliases
The procedure in this section describes how to create aliases. When you define
aliases, keep the following points in mind:
g If webMethods will interact with multiple BroadVision servers, define an alias for
each one.
g A single alias can be referenced by more than one service. If several services access
the same BroadVision server with the same connection attributes, they should all
reference the same alias. This way, if network changes occur (for example, the
BroadVision server moves to another host machine or one BroadVision server
replaces another), you only need to make changes to one alias.
Caution: You must have administrator privileges on the webMethods Integration Server to execute the
following procedure.
To define an alias
/opt/bv1to1/orbix/config/orbixnames3.cfg
/opt/bv1to1/orbix/config/common.cfg
In this field… Specify…
Alias Name A unique name for this alias. (This is the name by which services will
reference this alias.)
Do not use the following characters in the name:
%#?&+<>’
6. Click Save.
Note: Before you add IDL files to your IFR, ensure that your system administrator has enabled your IFR, as
described in the webMethods BroadVision Adapter Installation Guide.
Where IDLincludePath is the full path of your include / idl directory, and IDLfilePath is the full path
of the IDL file to add to the IFR.
For example:
2. Run the following Orbix command to give the client “invoke and launch”
permissions to the IFR:
array array
sequence array
struct record
unsigned long See “How to Deal with the Data Type Unsigned Long” on page 21.
Note: You can select a name only if it appears as a hyperlink. To make other servers available to you, your
system administrator must put the IDL files of those servers into your Interface Repository (IFR), as
described in “Adding IDL Files to the Interface Repository” on page 18.
A list of the interface’s methods and their return types are displayed.
5. Select a method from the list.
Encoding The character encoding expected by the BroadVision server. For the
Latin-1 alphabet character set (ISO-8859_1), leave this field blank.
Other valid values include:
Arabic—ISO8859_6 or Cp1256
Chinese, Traditional—BIG5
Chinese, Simplified—GBK or GB2312
7. Click the Register Service button. The adapter generates the flow
service and stores it in the location you specified.
Use this service to insert a ulong to a CORBA server. This service takes a positive
long number (there can be no unsigned in Java) and gets the integer representation
that could be passed to a CORBA server.
Example 1: Let’s assume you want to pass the number 3167989637, which is a 32 bit
number so it can be passed as an unsigned long. But this number exceeds the range of
an integer. So, we need to get the integer value of this 32 bit number, which would be
–1126977659, so it can be passed to a CORBA server that accepts a ulong.
Example 2: Let’s say you want to pass the number 4294967295, which is 32 bit
(actually its bit representation would be 32 1s), but not an integer. Using the utility
service, it would get the integer –1 which is also 32 1s.
g wm.broadvision55.corba.IntegerToUlong
Use this service to get a ulong from a CORBA server. When a CORBA server returns
a ulong to a Java client, it appears as an integer, which could be negative. So, we
need to convert it into an unsigned number to perform further operations. Long can
hold an unsigned value of an integer. This service takes an integer and returns the
unsigned value represented as a long.
Example: Assume you got the integer –2 from a CORBA server as an ulong. -2 is
signed, but is 32 bit. So, we need to get the unsigned representation of this number.
Using the utility service, we get the value 4294967294, which is also 32 bit. The end
user can use this value and perform any operations on it.
JavaScript File The name of the JavaScript file, starting with the directory relative to
the script root defined in your BroadVision installation.
This name should be a .jsp file found in your application’s script root
directory.
Introduction....................................................................................... 26
What is the webMethods Server Library Component? ..................... 26
The wmServer.jsi File ....................................................................... 28
The webMethods CORBA Server IDL File........................................ 29
I n t r o d u ct i o n
This chapter describes how to implement the outbound adapter to request data (via flow
services) from the external systems to which your Integration Server provides access.
To do this, you create a JavaScript front end in your BroadVision server to connect your
BroadVision server to your Integration Server, and to invoke flow services in the
Integration Server. As mentioned in “What is the Outbound Adapter?” on page 12, the
adapter’s webMethods Server Library Component provides the methods and attributes
that you use in your front end to do this. The webMethods CORBA Server automatically
manages the connection between your BroadVision system and your Integration Server.
W h at i s t h e w eb M et h o d s S erver L i b rary C o m p o n en t ?
The adapter installs the library component (libwmservercomponents.so for Solaris,
libwmservercomponents.sl for HP-UX, or libwmservercomponents.dll for Windows 2000)
in your BroadVision Interaction Manager. It contains methods and attributes that you use
in your front end to connect your BroadVision server to your Integration Server, and to
execute services in the Integration Server. The component consists of a JavaScript layer, a
Reference layer, and an Implementation layer, as shown in the following figure.
JavaScript Layer
Reference Layer
Implementation Layer
Back-end Systems
This layer exposes a JavaScript Interface file (which is equivalent to a CORBA IDL
file) to the BroadVision architecture. This file is named wmServer.jsi. You should use
the following methods and attributes defined in this .jsi file to write the JavaScript
files for your outbound adapter’s front end:
Class Method Attribute
BVI_WMServerManager connect_m
createSvr
invokeService
disconnect_m
This layer, also written in C++, marshals the data it receives from the Reference layer
and invokes the corresponding method on the webMethods CORBA server
(wmCorba_srv.jar), which establishes a connection to the Integration Server and
executes the services on the Integration Server. To view the webMethods CORBA
server’s associated IDL file, see “The webMethods CORBA Server IDL File” on
page 29.
T h e w m S e r v e r . j si F i l e
This file is located in /opt/bv1to1_var/script_root/adapter/scripts.
interface BVI_WMStringTable
{
implementation
{
implementation_type = BVC_WMStringTable;
}
creator();
long append(BVI_StringList stringList);
BVI_StringList getRow(long index);
interface BVI_WMValues
{
implementation
{
implementation_type = BVC_WMValues;
}
creator();
interface BVI_WMValuesList
{
implementation
{
implementation_type = BVC_WMValuesList;
}
readonly attribute long length;
creator();
creator( long expectedLength );
attribute long cursor;
interface BVI_WMServerManager {
implementation
{
implementation_type = BVC_WMServerManager;
}
creator();
long initialize();
long createSvr(string server, long port, string user, string passwd);
#ifndef _WMSVR_IDL
#define _WMSVR_IDL
typedef string stringInf;
typedef sequence<string> stringSeq;
typedef sequence<stringSeq> stringTable;
typedef sequence<any> anySequence;
typedef struct myValues
{
sequence<string> key;
anySequence value;
} xx;
interface BV_WMServerMgr
{
exception cannotConnect {string msg;};
exception cannotInvoke{ string msg;};
exception cannotDisconnect{ string msg;};
long createSvr(in string svr, in long port, in string user, in string pwd,
out myServer svrInfo);
long connect_m(in myServer svr)
raises (cannotConnect);
long invokeService(in myServer svr,in string ifcName, in string svcName, in
myValues inValues, out myValues outValues)
raises (cannotInvoke);
long disconnect_m(in string svrName, in long port, in string user)
raises (cannotDisconnect);
};
#endif
Administration
Administrative Tasks..................................................................32
Configuring How the BroadVision Adapter Maintains its Log.....33
Viewing the Contents of the Log File .........................................35
Administrative Tasks
This chapter describes procedures you use to configure and monitor the BroadVision
Adapter.
To use the procedures in this section, you must have administrator privileges on the
webMethods Integration Server.
Viewing/Editing Aliases
Use the following procedure to view or edit aliases that have been defined on your
webMethods Integration Server.
Caution: Make sure your BroadVision server is available before you start the following procedure. As
part of this procedure, the BroadVision Adapter connects to the BroadVision server to verify that the
revised parameters are valid. If a connection cannot be made, the BroadVision Adapter will not save
your changes.
6. On the Edit Alias Settings page, make the changes you need and then
click Save.
If you receive an error message when you click Save, verify that all
settings on the Edit Alias Settings page are correct.
Testing Aliases
Use the following procedure to test a set of aliases that reside on the webMethods
server.
C o n f i g u ri n g H o w t h e B ro ad V i si o n A d ap t er M ai n t ai n s i t s
Log
The BroadVision Adapter can maintain a log of events that occur in the system. You
configure whether you want the BroadVision Adapter to maintain a log. If you have the
BroadVision Adapter maintain a log, you configure where you want the log maintained—
on the console or in a file. In addition, you configure the types of messages (or the level
of detail) you want the BroadVision Adapter to record in the log.
Caution: When using a clustered environment, the administrator should be aware that each
host in the cluster maintains its own log file of the activity on that host. If a request is made to a
particular host and then is redirected to a different host because of load balancing or failover,
that request will only be logged by the host that eventually accepts the request and not the host
to which the request was originally directed.
To configure how the BroadVision Adapter maintains its log, perform the following
procedure.
4. Select one of the following from the drop-down list in the Output To field.
Select… To…
Off Turn logging off. The BroadVision Adapter does not log any messages.
If you make this selection, skip the following steps and click the Submit
Changes button.
Console Turn logging on. The BroadVision Adapter displays the log messages on
the webMethods Integration Server’s console.
File Turn logging on. The BroadVision Adapter records the log messages to the
file:
ServerDirectory\packages\BroadVision55\log\logfile.txt
All Turn logging on. The BroadVision Adapter displays the log messages on the
webMethods Integration Server’s console and records the log messages to the
file: ServerDirectory\packages\BroadVision55\log\logfile.txt
5. Make a selection from the drop-down list in the Logging Level field to
configure the type of messages that you want the BroadVision Adapter to
record in its log. Be aware that when you select a level, the BroadVision
Adapter records messages associated with the level you select and all
previous levels. For example, if you select to record critical-level
messages, the BroadVision Adapter records critical-, alert-, and
emergency-level messages.
V i ew i n g t h e C o n t en t s o f t h e L o g F i l e
If you configured the BroadVision Adapter to maintain a log, you can view the contents
of the log file by taking one of the following actions:
g View the webMethods Integration Server’s console if you configured the
BroadVision Adapter to display the log on the console.
g View the contents of the following file if you configured the BroadVision Adapter to
record the log messages in a file.
ServerDirectory\packages\BroadVision55\log\logfile.txt
g Perform the following procedure to view the log using the BroadVision Adapter’s
Logging Console screen.
Caution: If your log is large, view it on the server’s console or view the contents of the file
instead of using the BroadVision Adapter’s Logging Console screen. Increasingly large files
take a long time to display on the Logging Console screen.
The BroadVision Adapter displays its log in the Contents of log file
section of the screen.
program codes 3
INDEX used in this document 2
CORBA server methods
A generating to produce flow services 19
selecting to expose to adapter 19
administrative tasks CORBA servers
configuring how BroadVision Adapter maintains its accessing via inbound adapter 8, 16
log 33 implementing access via inbound adapter 18
defining a connection to BroadVision server 32 webMethods CORBA Server 12, 29
editing a connection to BroadVision server 32 critical-level messages 35
shutting down the BroadVision Adapter 32
starting the BroadVision Adapter 32 D
testing alias settings 33 debug-level messages 35
viewing BroadVision Adapter log 35 documentation
alert-level messages 34 conventions used in 2
Alias Name parameter for alias settings 17 printing 5
alias settings related manuals 4
alias name 17 using effectively 2
defining 17, 32 viewing 4
displaying 32
editing 32 E
IT_DAEMON PORT 18 emergency-level messages 34
IT_LOCAL_DOMAIN 18 encoding, character 20
IT_NAMES_SERVER 18 error handling
IT_NAMES_SERVER_HOST 18 configuring 33
IT_NS_PORT 18 viewing log 35
testing 33 error-level messages 35
aliases ExecuteJSP service 10, 23
defining 17, 32
defining, overview of 16 F
displaying 32 flow services
editing 32 generating 19
testing 33
use by multiple services 17 G
audit information generating flow services 19
for BroadVision Adapter 33, 35
I
B IDL files
BroadVision server adding to the IFR 18
defining connection to 17, 32 IDL return types
defining connection to, overview of 16 translation to flow service return types 19
using more than one 17 unsigned long, considerations for using 21
IFR
C adding IDL files to 18
character encoding 20 inbound adapter
clustered environment adding IDL files to the IFR 18
configuring logging in 33 defining BroadVision server aliases for 16
command syntax enabling access via CORBA servers 8, 16
conventions used 3 enabling access via session portals 10
connections to BroadVision servers implementing access via CORBA servers 18
defining 17, 32 implementing access via session portals 22
console, recording log to 34 overview of 8
conventions info-level messages 35
V
viewing
BroadVision Adapter log 35
documentation in PDF format 4
W
warn-level messages 35
webMethods CORBA Server 12, 29
webMethods Server Library Component 12, 26
wmCorba_srv.jar file 12, 29
wmServer.jsi file 27, 28
wmSessionPortal.dll file 10
in your library path 22
location of 22
VERSION 1.2
webMethods, Inc.
3930 Pender Drive
Fairfax, VA 22030
USA
703.460.2500
http://www.webMethods.com
webMethods for Trading Networks, webMethods for Partners, webMethods Developer, webMethods Integration Server,
webMethods EDI Adapter, webMethods Enterprise Integrator, webMethods Enterprise Server, and the webMethods logo are
trademarks of webMethods, Inc. “webMethods” is a registered trademark of webMethods, Inc. All other marks are the property of
their respective owners.
The software described in this manual contains encryption software from RSA Data Security, Inc.
Copyright © 2001 by webMethods, Inc. All rights reserved including the right of reproduction in whole or in part in any form.
The software described in this manual contains International Components for Unicode (ICU4J) software.
Copyright © 1995-2001 by International Business Machines Corporation and others. All rights reserved.
webM-BroadVision-UG-20010719
CONTENTS
Introduction...............................................................................................................................1
Welcome! ........................................................................................................................................................ 2
Typographical Conventions............................................................................................................................. 2
Program Code Conventions..................................................................................................................... 3
Related Documentation................................................................................................................................... 4
Viewing this Document............................................................................................................................. 4
Printing this Document ............................................................................................................................. 5
Administration ........................................................................................................................31
Administrative Tasks ..................................................................................................................................... 32
Starting the BroadVision Adapter........................................................................................................... 32
Stopping the BroadVision Adapter ......................................................................................................... 32
Defining a Connection to a BroadVision Server ..................................................................................... 32
iii
Viewing/Editing Aliases...........................................................................................................................32
Testing Aliases .......................................................................................................................................33
Configuring How the BroadVision Adapter Maintains its Log.........................................................................33
Viewing the Contents of the Log File .............................................................................................................35
iv