Close popover
Sameer Sambrani (sambs)
Principal Technical Documentation Specialist
Pegasystems Inc.
sambs Member since 2015 9 posts
Posted: December 11, 2015
Last activity: March 17, 2016

How to access an xsd file from a Rule-File-Text instance through a web URL

Here is a scenario that you might find useful while working with files on the Pega 7 Platform.

Scenario: I have an xsd file located in the application server directory that is being used in the schema URL property in the Parse XML of SOAP request. Is it possible to save the xsd file as a Rule-File-Text instance and access it through a web URL?


Following are the steps for accessing the file through URL using the Rule-File-Text instance:

  1. Create an instance of Rule-File-Text containing your XSD content. (Say, the keys are webwb.sample.xsd)
  2. Create a data page and use a load activity or data transform as data source to set a property containing the URL to the rule-file-text instance.

    URL = pxRequestor.pxReqContextURI + pxRequestor.pxReqPathInfoReal + "/webwb/sample.xsd"

  3. In the schema URL field in parse xml rule, reference the property on the data page using Global Resource Settings (GRS) syntax.

For more information, see How to reduce maintenance of service rules and listeners with global resource settings.

Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.