Start a conversation

Using DEFINEs in service definitions

All versions of SOAP/AM Server support the use of DEFINE names in the processName attribute of the server element in the Service Definition File (SDF). For example:

<servers>
  <server name="appServer" processName="=APP^PATHWAY" serverClass="APP-SERVER" />
</servers>
Using DEFINEs can greatly ease the process of moving an SDF through the Development / Test / Production cycle because the SDF does not have to updated with the correct process name when moved to each environment. The SDF can simply be copied to each environment as is and the appropriate DEFINEs specified before starting the SOAPAM process. For example, using the server definition shown above:
 
In the development environment:
tacl> add define =APP^PATHWAY, class map, file $DEVPW
tacl> run SOAPAM / name $dev / -vfs $data.devvfs [ additional options ]
In the QA environment:
tacl> add define =APP^PATHWAY, class map, file $QAPW
tacl> run SOAPAM / name $qa / -vfs $data.qavfs [ additional options ]
In the production environment:
tacl> add define =APP^PATHWAY, class map, file $PRPW
tacl> run SOAPAM / name $prod / -vfs $data.prodvfs [ additional options ]
 
 
Choose files or drag and drop files
Was this article helpful?
Yes
No