Hi Ralf,
I'm going down the same road as you so this is not so much an answer as a corroboration. I haven't succeeded yet, but I have made some progress I will share. So for your questions:
1) - I think it needs to be a selector unit or maybe a script unit that queries the HttpServlet context to get those values. Unless they are returned using Ajax from the client site?
2) - You would then have each of the parameters that you can couple to each of these input.template parameters.
3) - Sadly the input.template example on has the URI parameter declared. My example is different but you need to declare each of the input parameters there. Eg:
<InputParameter name="<%= unitId%>.uri" type="" label="URI"/>
<InputParameter name="<%= unitId%>.host" type="" label="Host"/>
<InputParameter name="<%= unitId%>.port" type="" label="Port"/>
<InputParameter name="<%= unitId%>.method" type="" label="Method"/>
4) - Yep, I'm stumped too
The example in the Guide is difficult because it uses attributes and variables that don't help much for the input.template example.
The example in the input.template is:
<inputparameter name="<%= unitId%>.name" type="ent6.attr26.single" label="Name" ><="" p="">
I hate when variables are "Name" or "value" because you can't tell if it's a reserved word (a.k.a attribute or property) or user defined variable. I used the example below.
(Missing the first "<")
InputParameter name="<%= unitId%>.SignOid" type="ent6.attr26.single" label="Select Sign"/>
I suspect your seeing the URI meant you saw the same? My version exposed a Coupling link of "Select Sign" and was accessible in the logic.template using "SignOid" as per the code below.
(Missing the first "<")
%
setXMLOutput()
def unitId = unit["id"]
def params = unit.selectNodes("SignOid")
%>
I write the "params" out to <parameters> nodes as per the example, but still have problems accessing them in the (moduleName)Service.java class. I used the same code as the Guide and my SignOid parameters List has a single entry. The value is:
params:com.webratio.commons.dom.FastElement@2a5219c3 [Element: <parameters attributes:="" []=""/>] userData: null
That's where I'm stuck. Did you get any further with your example?