I have a URL in a controller like this:

    <request-map uri="createGenericProductNumber">
        <security https="true" auth="true"/>
        <event type="service" invoke="createGenericProductNumber"/>
        <response name="success" type="view"
value="generatePartNumberForm"/>
        <response name="error" type="view" value="generatePartNumberForm"/>
    </request-map>


The service is declared like this:

    <service name="createGenericProductNumber" engine="java" auth="true"
default-entity-name=""
            location="com.fs.inventory.GenerateInventoryPartNumbers"
invoke="createGenericProductNumber"
            use-transaction="true" validate="false" >
        <description>
                Create an endmill product id from the required inputs
        </description>
       <attribute name="kindId" type="String" mode="INOUT"
optional="false"/>
       <attribute name="tableName" type="String" mode="IN"
optional="false"/>
       <attribute name="encodeIdString" type="String" mode="IN"
optional="false"/>
        <attribute name="partNumber" type="String" mode="OUT"
optional="false"/>
        <attribute name="description" type="String" mode="OUT"
optional="true"/>
        <attribute name="longDesc" type="String" mode="OUT"
optional="true"/>
     </service>


Note the "validate=false".  This url is called from a screen that has lots
of parameters not declared in service above like width, length, etc.  None
of these parameters are being passed to the createGenericProductNumber
service in its context.


I rewrote the the url like this:

    <request-map uri="createGenericProductNumber">
        <security https="true" auth="true"/>
        <event type="java" path="com.fs.inventory.InventoryEvents"
invoke="createGenericProductNumber"/>
        <response name="success" type="view"
value="generatePartNumberForm"/>
        <response name="error" type="view" value="generatePartNumberForm"/>
    </request-map>

In this case, all the parameters from the page are in the parameter map of
the HttpServletRequest.

Is there any way I can get the service engine to pass all the parameters
from request in the context to the service and not just those in the service
declaration?

Thanks in Advance
Skip

Reply via email to