Protected export of WSF_RESPONSE_MESSAGE.send_to

Added WSF_DEFAULT_RESPONSE_SERVICE
Added simple WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI class to load launch option from ini file.

Removed a few obsolete features
This commit is contained in:
Jocelyn Fiat
2012-05-25 20:17:55 +02:00
parent aa6a1f2b8a
commit 6cff00428b
27 changed files with 282 additions and 72 deletions

View File

@@ -24,36 +24,9 @@ For now, you just need to know EWF is compliant with EWSGI specification.
= Tutorial =
Now let's discover the Eiffel Web Framework with this tutorial.
1 - You will learn first, how to get and install EWF.
2 - build a simple Hello World application
3 - use the query and form parameter to build dynamic service
4 - And you will learn how to dispatch URL
== Get EWF package ==
=== From the archive ===
- to be completed
=== From the source ===
- Requirement: install git on your machine (http://www.git-scm.org/)
git clone --recursive https://github.com/EiffelWebFramework/EWF.git ewf
And that's it for now.
== Install EWF ==
For now, there is nothing specific to do.
(Note: if you want to use the "http_client" library, you will need to do a few extra steps to eventually compile Eiffel Curl.)
== Step 1 ==
[[tutorial_1.wiki|Check the first step]]
== Step 2 ==
== Step 3 ==
== Step 4 ==
# [[step_1.wiki|Step #1]]: You will learn first, how to get and install EWF.
# [[step_2.wiki|Step #2]]: build a simple Hello World application
# [[step_3.wiki|Step #3]]: use the query and form parameter to build dynamic service
# [[step_4.wiki|Step #4]]: And you will learn how to dispatch URL

View File

@@ -0,0 +1,22 @@
[[README.wiki|Back to tutorial index]]
= Tutorial Step 1 =
* '''Goal''': learn how to get and install the Eiffel Web Framework
* '''Requirement''': EiffelStudio should be installed
== Get EWF package ==
=== From the archive ===
* to be completed
=== From the source ===
* '''Requirement''': install [http://www.git-scm.org/ git] on your machine
git clone --recursive https://github.com/EiffelWebFramework/EWF.git ewf
== Install EWF ==
For now, there is nothing specific to do.
(Note: if you want to use the "http_client" library, you will need to do a few extra steps to eventually compile Eiffel Curl.)
----
Back to the [[README.wiki|index]] | Go to [[step_2.wiki|step 2]]

View File

@@ -0,0 +1,27 @@
[[README.wiki|Back to tutorial index]]
= Tutorial Step 2 =
* '''Goal''': Build a simple Hello World application
* '''Requirements''':
** know how to compile with Eiffel (EiffelStudio).
** [[step_1.wiki|Previous step]] completed
== Create "hello" project ==
=== From the archive ===
- to be completed
=== From the source ===
- Requirement: install git on your machine (http://www.git-scm.org/)
git clone --recursive https://github.com/EiffelWebFramework/EWF.git ewf
And that's it for now.
== Install EWF ==
For now, there is nothing specific to do.
(Note: if you want to use the "http_client" library, you will need to do a few extra steps to eventually compile Eiffel Curl.)
----
Previous [[step_1|step 1]] | Go to [[step_3.wiki|step 3]]

View File

@@ -0,0 +1,38 @@
note
description: "[
APPLICATION implements the "Hello World" service.
It inherits from WSF_DEFAULT_SERVICE to get default EWF connector ready
only `execute' needs to be implemented.
]"
class
APPLICATION
inherit
WSF_DEFAULT_RESPONSE_SERVICE
redefine
initialize
end
create
make_and_launch
feature {NONE} -- Initialization
initialize
do
create {WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI} service_options.make_from_file ("ewf.ini")
Precursor
end
feature {NONE} -- Initialization
response (req: WSF_REQUEST): WSF_PAGE_RESPONSE
do
create Result.make
Result.put_string ("Hello World")
end
end

View File

@@ -0,0 +1,4 @@
# For nino connector, use port 9999
port=9999
#verbose=true

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-9-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-9-0 http://www.eiffel.com/developers/xml/configuration-1-9-0.xsd" name="hello" uuid="25B014D9-CC71-484D-93D9-5E93B51C6B36">
<target name="hello">
<file_rule>
<exclude>/EIFGENs$</exclude>
<exclude>/CVS$</exclude>
<exclude>/.svn$</exclude>
</file_rule>
<root class="APPLICATION" feature="make_and_launch"/>
<option warning="true" is_attached_by_default="true" void_safety="all" syntax="transitional">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option>
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
<library name="wsf" location="..\..\..\..\library\server\wsf\wsf-safe.ecf"/>
<library name="default_nino" location="..\..\..\..\library\server\wsf\default\nino-safe.ecf"/>
<cluster name="hello" location=".\" recursive="true"/>
</target>
</system>

View File

@@ -1,2 +0,0 @@
= Tutorial Step 1 =

View File

@@ -1,2 +0,0 @@
= Tutorial Step 2 =