Enabling methods for the XML Gateway
Only those methods that have been explicitly enabled for use with the Gateway will be available to it. Once enabled, the methods will function exactly as they do when called through a JSP page, requiring the same set of input parameters and returning the same set of output parameters and/or data sets.
To enable a method for the Gateway
- Open your presentation in Infor e-Commerce Development Studio. If your application includes several presentations, then be sure to open the one that includes a Gateway JSP page (for example, the customer presentation of Infor e-Commerce).
- From the Navigator, open the Gateway JSP page; this will ensure that the page is loaded into memory.
- Go to the Business Objects tab and locate the business object and method that you wish to enable.
- Right-click on the target method and select Properties.
- Go to the Method Properties tab of the Properties window.
- Select Expose as Gateway Method.
- Click OK.
- Continue working with your various business objects until you have enabled all of the relevant methods.
- Deploy your application.
If your application has other presentations, then you must re-deploy each of them. All presentations are deleted on the server when you deploy a changed application model (such as after enabling or disabling methods for the Gateway).
If your application applies customer segmentation to Gateway commands (like Infor e-Commerce does) then log on to the deployed application and use its run-time administration controls to configure access to each method. See the documentation for your e-Business application for details.
If your specific deployment will be supporting iXML 1.0 based requests, then you must also configure the iXML 1.0 to 2.0 conversion for each of your enabled methods. This will normally only affect presentations where you are upgrading from a previous version of Infor e-Commerce. For new installations, all communication will probably use iXML 2.0.
Recommendations
To minimize the impact of changing methods of existing business objects, create a new method specific for the XML Gateway interface. This will give flexibility for the iXML format, specifically in the bindings element where several constraints or a range of constraints can be specified through the method's dynamic bindings.
Exposing existing method means that only the existing attributes in the dynamic bindings and list of parameters are available for the XML Gateway interface unless this method is changed.