Added a few example based on the obsolete libraries (v0).
Updated the tutorial example. Added WSF_MESSAGE_EXECUTION.
This commit is contained in:
@@ -37,6 +37,16 @@ feature -- Basic operation
|
||||
|
||||
feature -- Default service options
|
||||
|
||||
import_service_options (opts: WSF_SERVICE_LAUNCHER_OPTIONS)
|
||||
-- Import service options `opts' into `service_options'.
|
||||
do
|
||||
if attached service_options as l_opts then
|
||||
l_opts.append_options (opts)
|
||||
else
|
||||
service_options := opts
|
||||
end
|
||||
end
|
||||
|
||||
set_service_option (a_name: READABLE_STRING_GENERAL; a_value: detachable ANY)
|
||||
-- Set options related to WSF_SERVICE_LAUNCHER
|
||||
local
|
||||
|
||||
40
library/server/wsf/src/wsf_message_execution.e
Normal file
40
library/server/wsf/src/wsf_message_execution.e
Normal file
@@ -0,0 +1,40 @@
|
||||
note
|
||||
description: "[
|
||||
Request execution based on attributes `request' and `response'.
|
||||
And returning the response as a `message'.
|
||||
]"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
deferred class
|
||||
WSF_MESSAGE_EXECUTION
|
||||
|
||||
inherit
|
||||
WSF_EXECUTION
|
||||
|
||||
feature -- Execution
|
||||
|
||||
execute
|
||||
-- <Precursor>
|
||||
do
|
||||
response.send (message)
|
||||
end
|
||||
|
||||
message: WSF_RESPONSE_MESSAGE
|
||||
-- Message to be sent to the `response'.
|
||||
deferred
|
||||
ensure
|
||||
Result_set: Result /= Void
|
||||
end
|
||||
|
||||
note
|
||||
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
source: "[
|
||||
Eiffel Software
|
||||
5949 Hollister Ave., Goleta, CA 93117 USA
|
||||
Telephone 805-685-1006, Fax 805-685-6869
|
||||
Website http://www.eiffel.com
|
||||
Customer support http://support.eiffel.com
|
||||
]"
|
||||
end
|
||||
Reference in New Issue
Block a user