FlexDemo.nsf web service.

User: Henk
Date: 1/28/2010 3:18 am
Views: 739
Rating: 16    Rate [

+

|

-

]

Hi all.

I downloaded the flexdemo.ntf and created an flexdemo.nsf on my server.

After a couple of hours digging on how to use this application i'm lost.

The example on flexdomino.net http://www.flexdomino.net/dominoviewviahttpservice looks great and i 'd like to do the same.

The (dumb) question:

What is the URL to use this application:
The default says only "Authentication Successfull!" so thats not it. When i open the page FlexDemo1 it shows the XmlViewDemo.swf file and when clicked on it it show an empty view. I like to show this view with data, and there is where the http service comes in. How can i establish that?

Can someone help me?

Thanks in advance.

Reply

Replies

Flat
Re: FlexDemo.nsf web service.
User: Admin
Date: 1/28/2010 4:01 am
Rating: 0    Rate [

+

|

-

]
Status: Approved

A few words to the installation in your invironment:

  1. The Notes database should be created in a sub-directory called FLEX in the Domino data directory. You  can create the database in any other location, but then you need to adjust the respective URLs in the Flex project action script files.
  2. You need to sign the database with the server ID.
  3. THIS SAMPLE HAS NOT BEEN DESIGNED FOR SCENARIOS WHERE AUTHENTICATION IS REQUIRED.
  4. If you require authentication, you need to place the Flash application for instance in the flexdemo.nsf database in a form (e.g. About Document) and launch the Flash application using the respective URL. This way authentication takes place before launching the Flash file.
  5. If you require to launch the Flash application from a different location (local or different domain server), then this sample is no good. You need implement an authentication procedure in your Flex application as outlined here...Read more.
  6. In the Flex project change the HTTPService URL to your domain...
    <mx:HTTPService
    id="httpservice"
    useProxy="false"
    method="GET"
    contentType="application/xml"
    url="http://<your domain root URL>/flex/flexdemo.nsf/BooksXML?OpenView"/>
  7. Recompile the project

 

I hope this clarifies a few things and brings you on the right track.

Reply
Re: FlexDemo.nsf web service.
User: Henk
Date: 1/28/2010 4:56 am
Rating: -1    Rate [

+

|

-

]
Status: Approved

Thanks for the reply.

But still it doesn't work for me.

1. The application is on the data\flex directory. (data\Flex\Flexdemo.nsf)

2. I signed the database with the active server id.

3. The default access is designer so anyone can access this database.

What i am interesting in is the url to launch the demo.
I tried <hostname>/Flex/Flexdemo.nsf (it shows the authentication succesfull page), also tried to open the swf file itself on page (<hostname>/Flex/Flexdemo.nsf/flexdemo1/$FILE/XmlViewDemo.swf) and this gives me an empty view with title Book Catalogue.

Must i make an adjustment somewhere?
I looked at the Webservice.script and the FlexDomino (WSP) but i didn't find anything to adjust. (url or something..)

Thanks.

Reply
Re: FlexDemo.nsf web service.
User: Admin
Date: 1/28/2010 8:14 am
Rating: 23    Rate [

+

|

-

]
Status: Approved

Not sure about this, but I believe for web access you should add an Anonymous entry.

 Anonymous =  Unspecified, Reader (minimum)

 

 

Reply
Re: FlexDemo.nsf web service.
User: Admin
Date: 1/28/2010 8:21 am
Rating: -7    Rate [

+

|

-

]
Status: Approved

Try to enter the view's URL directly into the browser (use IE not FireFox) ...

http://<your domain>/flex/flexdemo.nsf/BooksXML

You should see something like this...

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <items>
- <item>
  <genre>Biographies & Memoirs</genre>
  <btitle>The Warren Buffet Way 2nd Edition - To be a good investor, one also needs to be a good economistфывф</btitle>
  <author>mazhar</author>
  <year>20061</year>
  <price>10.17</price>
  <bunid>A8580E33FF625765C12576880057DB6F</bunid>
  <coverURL>http://www.flexdomino.net:81/flex/flexdemo.nsf/BooksXML/A8580E33FF625765C12576880057DB6F/$file/warren.JPG</coverURL>
  </item>
- <item>
  <genre>Biographies & Memoirs</genre>
  <btitle>The Year of Magical Thinking - Life changes fast. Life changes in an instant. You sit down to dinner and life as you know it ends</btitle>
  <author>Joan Didion</author>
  <year>2005</year>
  <price>16.05</price>
  <bunid>A02342FD691FD917C12576880057DB6C</bunid>
  <coverURL>http://www.flexdomino.net:81/flex/flexdemo.nsf/BooksXML/A02342FD691FD917C12576880057DB6C/$file/joan.JPG</coverURL>
  </item>

 

Please note point 6) in my first reply (I just added the point so you have not missed it previously)

 

 

Reply
Re: FlexDemo.nsf web service.
User: Henk
Date: 1/28/2010 9:27 am
Rating: 27    Rate [

+

|

-

]
Status: Approved

Oke, now it's getting clear to me.

I did not had an ".swf" file where the http service resides. Thinking to easy of things sometimes...

I downloaded the source from your website adjusted point 6, like you said, compiled the project and Cool.

How simple, and looks great.

Thanks!!

Reply
Re: FlexDemo.nsf web service.
User: Admin
Date: 1/28/2010 12:22 pm
Rating: -2    Rate [

+

|

-

]
Status: Approved

Glad you got it working.

I must admit that I'm a bit lazy regarding documentation and installation instructions. I will try in the coming weeks to document all the posted samples. 

Reply
Re: FlexDemo.nsf web service.
User: Henk
Date: 1/29/2010 1:50 am
Rating: -2    Rate [

+

|

-

]
Status: Approved

No problem at all.
I'm also lazy to find out how it works.
There are lots of examples on how Flex, in regarding to Lotus Domino, works.

To make an decision to fully emprace Flex i'll have to find out how the calendar and a bit of workflow works in flex in combination with Lotus Domino.

Thanks Matthias. Laughing

Reply
Re: FlexDemo.nsf web service.
User: Admin
Date: 1/29/2010 12:52 pm
Rating: 3    Rate [

+

|

-

]
Status: Approved

Calendaring in Notes is generally very difficult, whether you try to develop something in Notes or from an external system. The reason is that the Notes calendaring is very complex and there is no specific API that one could use.

In matter of fact I learned at LS 2010 that IBM is planning on developing a REST API for calendaring. But this will not be available anytime soon.

We have experimented with the IBM ILOG calendar component, but had to (temporarily) drop the project to be able to focus on our SoapGateQ! and FlexGateQ! projects.

Reply
PreviousBackNextAdd