Qaa WS
Qaa WS
Qaa WS
Windows
Copyright © 2008 Business Objects. All rights reserved. Business Objects owns the following
U.S. patents, which may cover products that are offered and licensed by Business
Objects: 5,555,403; 5,857,205; 6,289,352; 6,247,008; 6,490,593; 6,578,027;
6,831,668; 6,768,986; 6,772,409; 6,882,998; 7,139,766; 7,299,419; 7,194,465;
7,222,130; 7,181,440 and 7,181,435. Business Objects and the Business Objects
logo, BusinessObjects, Business Objects Crystal Vision, Business Process On
Demand, BusinessQuery, Crystal Analysis, Crystal Applications, Crystal Decisions,
Crystal Enterprise, Crystal Insider, Crystal Reports, Desktop Intelligence, Inxight,
the Inxight Logo, LinguistX, Star Tree, Table Lens, ThingFinder, Timewall, Let
there be light, Metify, NSite, Rapid Marts, RapidMarts, the Spectrum Design, Web
Intelligence, Workmail and Xcelsius are trademarks or registered trademarks in
the United States and/or other countries of Business Objects and/or affiliated
companies. All other names mentioned herein may be trademarks of their respective
owners.
Third-party Business Objects products in this release may contain redistributions of software
Contributors licensed from third-party contributors. Some of these individual components may
also be available under alternative licenses. A partial listing of third-party
contributors that have requested or permitted acknowledgments, as well as required
notices, can be found at: http://www.businessobjects.com/thirdparty
Contents
Chapter 1 Overview of Query as a Web Service 7
Overview of Query as a Web Service..........................................................8
Architecture of Query as a Web Service......................................................8
Index 57
1
1 Overview of Query as a Web Service
Overview of Query as a Web Service
Using Query as a Web Service, business users define their own query from
a universe, and then easily and securely publish that query as a standalone
web service.
Query as a Web Service provides new client solutions for businesses. For
example, it enables Crystal Xcelsius to aggregate multiple disparate data
sources into a trusted BI view.
2
2 Installing Query as a Web Service
Installation pre-requisites for Query as a Web Service
The following must be installed on the client before you install Query as a
Web Service:
• .NET 1.1
http://support.businessobjects.com/supported_platforms/
You must then install the client tool on every machine that will access the
server via Web Services.
You must have a separate license for the client tool. It is not covered by the
general license for BusinessObjects XI 3.0.
If you launch the CMS automatically using the NT Services, you do not need
to do this manually.
By default, the Web Services connects to the local machine name's CMS.
If you want to change to a dedicated CMS, you must change the domain
property in the dsws.properties file. To locate the dsws.properties file,
browse to...
Related Topics
• Installing and validating Query as a Web Service on page 12
The CMS can have only one single CMS system database. The connection
with CMS system database can be lost for the following reasons:
On the other hand, if the CMS system database is down then all CMSs will
be unable to process incoming requests without errors, regardless of whether
there are a single CMS or multiple CMSs in the cluster.
You can limit the risk by employing the fault tolerance solutions provided by
the database vendor. Each database vendor provides fault tolerance solutions
to minimize the risk of the database being unavailable. One fault tolerance
option may be to set up a secondary mirror database that runs on a secondary
server. For example, if the first database is out the tns.ora file is
automatically updated to point to the secondary database server. Since
available fault tolerance measures are database-specific, see the
documentation for your specific database vendor for more information on
fault tolerance measures.
Note: If the feature is available and enabled, even if the system database
connection is lost, the CMS automatically re-establishes the database
connection without administrator intervention.
Web Service client binds to the Report Engine, Query and BICatalog Web
Service you must specify the external URL of the Web Services
wsresource4=QueryService|query web service alone|http://[myserv
er.mycompany.com]/dswsbobje/services/query
1. Locate the dsws.properties file.
This file is located in dswsbobje web application.
2. Update the following properties:
3
3 Launching the Query as a Web Service Client Tool
Launching Query as a Web Service
• If this is not your first login, the Select your credentials dialog box
appears.
Enter your system, user name, password and the user interface
language, then click OK.
Note: You can display Query as a Web Service user interface in any
language supported by the Business Objects XI Enterprise Suite. Select an
available language by clicking on the Interface drop-down list in the Select
your credentials dialog box when you log in. Only languages that have been
installed with Query as a Web Service display in the drop-down list.
Related Topics
• Logging in for the first time to Query as a Web Service on page 23
• Creating and publishing a Query as a Web Service on page 26
6. Click OK.
The Select your credentials dialog box appears.
7. Enter your password, then click OK.
The Query as a Web Service client tool appears.
4
4 Creating and Publishing a Query as a Web Service
Creating and publishing a Query as a Web Service
3. In the Web Service Description box, enter a description that will help you
and others re-use the query.
4. If you want to set advanced parameters, click Advanced Parameters.
For instructions, see Setting advanced parameters for Query as a Web
Service on page 39.
5. Click Next.
The Select a universe page appears.
6. Select the universe from which you want to create the query, and then
click Next.
The Query Panel appears.
7. Create your query by dragging and dropping the objects into the Result
Objects and Filter Objects pane .
For information on query creation, see the Building Queries Using Web
Intelligence Query - HTML guide.
8. Click Next.
1. Select a prompt object, then click the right arrows until the value appears
in the Selected values pane.
3. The Web Service in pane contains the input parameters of the Web
Services you create. Each input parameter is linked to a filter prompt that
you created in the Filter Objects pane of the Query Panel.
4. Change the default value of the prompt by clicking the prompt icon.
Note: The name of the Prompt text is important because it will appear in
the list of input parameters of the query web service at runtime. The
prompt text appears in the Wizard, Step 4. Preview.
The Web Service out pane contains the output parameters of the Web
Services you create. The output parameters are linked to Result Objects
you put in the Query Panel; they are expressed as a result set.
When you run the query, the prompts you entered appear. The user is
required to select or input values to display the query results.
Note: The two contexts do not appear in the Input Parameters list. Once
you select the context in the query design step, the selected context is
stored in the query definition. At runtime, you cannot select a different
context than the one that is saved at design time — in our example
"Sales".
5
5 Managing Query as a Web Service
Viewing Query as a Web Service properties
You can also view, in a web browser, your instances of Query as a Web
Service.
• Open a web browser, and go to the following URL:dswsbobje
http://<name of server>:<Tomcat port number>/dswsbobje/
qaawsservices
Note: Before starting, make sure the universe and users are the same on
both machines. Use the Import Wizard or BIAR files to import universes and
users. It is important to have the same CUID during Import Wizard operations.
You can use the Deploy to another serveroption between two servers that
have the same version of Query as a Web Service installed. It is not possible
to migrate queries from one version to another using this option.
1. In the Query Catalog, select the Query as a Web Service whose definition
you want to copy.
2. Click Deploy to another server.
The Select Your Credentials dialog box appears.
3. Complete the information for the system on which you want to deploy the
Web Services, and then click OK.
The Query as a Web Service appears in the Publish Query as a Web
Service Wizard.
To support such a deployment, you must set up a Web Services base URL.
The base URL contains the external URL from which you want your Web
Service to be accessible, for example www.mycompany.com/dswsbobje/.
To use Query as a Web Service client tool with a reverse proxy Web Server,
see Configuring Query as a Web Service Client to connect to a reverse
proxy web server on page 17.
For example, if a given user login calls service 1 and then under 60 seconds
calls service 2 with the same login (identical username and password), the
server reuses the same connection and reinitializes the session time-out.
Authentication mode
You can set the authentication mode so that it will be defined according to
the service, or by the consumer:
To access the dialog box, click the Options icon in the Query Panel of
the Publish Query as a Web Service Wizard.
Duplicate rows
By default, the query will not return duplicate rows (this is different than in
earlier versions). If you want duplicate rows, select this check box.
6
6 Consuming Query as a Web Service with Different Applications
Consuming a Query as a Web Service via WSDL
The supported operations and messages are described on a high level and
then bound to a concrete network protocol and message format. WSDL is
often used in combination with SOAP and XML schema to provide Web
Services via the Internet.
To find the WSDL for a Query as a Web Service, select it in the Query
Catalog.
There are many public Web Services available, and many different toolkits
and packages for SOAP-based Web Services. Using public Web Services
and packages that already have a web service on top is easy. You need only
Cross-domain issue
After downloading the Xcelsius widget via the web, you may encounter
difficulty retrieving data with the Query as a Web Service client tool if the
Flash and the client tool come from different web domains.
This occurs for security reasons related to Macromedia Flash. The Flash
displayed in a browser is not permitted to access data residing outside the
web domain from which the Flash file format (SWF) originated.
The solution depends on whether your Xcelsius server and the Query as a
Web Service client tool are on the same or different machines.
Same machine
Open the Optional Parameters dialog box from the Advanced parameters
button and modify the Web Service Base URL so that it matches the web
domain from which you downloaded Xcelsius.
Different machines
For instructions, go to:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
Related Topics
• Web Service base URL on page 40
Selecting the web service involves pointing the Web Service Connector
component to the WSDL document.
1. When working on an Excel spreadsheet, double-click the Web Service
Connector component to open the Properties panel.
3. In the WSDL URL box, type or paste the location of the WSDL document.
4. Click Submit.
If there was an error, the WSDL document may not be fully validated or
it may not meet requirements of the Web Service Connector component.
5. In the Methods list, select the method you want to bind with.
For a given web service, you can bind to only one method per component.
6. Click OK.
The input and output messages are now available for you to tie to your
data.
Input messages
Use the "-" button to remove folders and elements. This prevents the folder
or field from being sent in the message.
Output messages
For output messages, both elements and folders can be tied to data.
Selecting a folder displays the number of columns in that folder. When you
tie this to data, each element in the folder is assigned to a column in the
order the elements appear.
Selecting fewer columns limits the data that is bound to the number of
columns that you select. Selecting additional columns inserts blank columns.
If an element is repeating underneath the folder, only the first element will
be mapped to the column. The folders underneath the selected folder cannot
be mapped.
Authentication in Xcelsius
3. In the HTTP WSDL URL field, type the WSDL of the selected Query as
a Web Service.
The Authentication page appears.
4. Set Basic authentication (if you haven't already), and then click Next.
The Web Service, Port, and Method page appears.
6. Set the Web Services parameters with login, password, and prompts,
and then click OK.
The Data page of the Standard Report Creation Wizard re-appears.
8. Select the field to build your query on, and then click Next.
A report is created.
9. For each parameter, select Entire Form, and then click Next.
10. Type a name for the data connection submitting data, and then click Next.
The data form appears on the left, and the data source on the right.
7
7 Query as a Web Service Best Practices and Limitations
Best Practices using Query as a Web Service
http://support.businessobjects.com/documentation/product_guides/
Also, keep in mind that the name of the Web Service and its metadata are
encoded to support various programming languages (such as C#, Java, C++,
VB, Flash).
A
A Get More Help
http://support.businessobjects.com/documentation/product_guides/
http://www.businessobjects.com/support/
For more information, contact your local sales office, or contact us at:
http://www.businessobjects.com/services/consulting/
http://www.businessobjects.com/services/training
mailto:documentation@businessobjects.com
Note: If your issue concerns a Business Objects product and not the
documentation, please contact our Customer Support experts. For information
about Customer Support visit: http://www.businessobjects.com/support/.
C O
CMS database online documentation
preventing failures 15 accessing 52
configuring overview 8
reverse proxy 17
context
in queries 26
P
copying prompts
how to 39 creating 28
creating publishing
prompts 28 queries 26
queries 26
Q
D
queries
deleting copying 39
queries 39 creating 26
deploying deleting 39
webservices to another server, publishing publishing 26
webservices to another server 36 using context 26
documentation Query as a Web Service
accessing online library 52 understanding 8
I R
installation reverse proxy
activate trace logging 16 configuring 17
launch CMS first 15
S T
starting 22 tips
first time 23 using Query as a Web Service 52
troubleshooting
fault tolerance options 15
tips 14