TransformingMessages with XSLT Filters
Youcan apply XSLT transformation rules to a web service end point. This enables ne-grained
controlof web service requests and responses. You can apply multiple XSLT rules to a web
serviceend point method, and you can congure the order in which you apply the
transformations.All the XSLT les are stored in the generated/xml/appOrModule directory of
thecentral repository. These transformation rules are synchronized to the remote server
instances.
Youcan apply transformation rule to a SOAP request or response.
Toadd a transformation rule to apply to a web service operation with Admin Console, select
Applications> Web Services > web-service-name | Transformation. Click Add.
Alist of transformation rule available for this web service end point is displayed.
Browseto the location of the XSLT le that contains the transformation rule. All the generated
XSLTles are stored in the generated/xml/application or module name/ directory.
Ifyou add multiple transformation rules for a web service endpoint, the transformation rules
areapplied in the order in which they are added.
Toenable a transformation rule, in the Transformation Rules page select the check box
correspondingto the rule, then click Enable. To disable the a rule, click Disable.
Toremove a transformation rule, in the Transformation Rules page select the check box
correspondingto the rule, then click Remove. This removes the transformation rule from the
list.If this transformation rule is applied to a web service endpoint, it is automatically disabled.
However,the XSLT le remains in the le path location. Other web service endpoints can use
thisXSLT le.
MonitoringWeb Services
Adminconsole can track and graphically display operational statistics for web services, and can
displaymessages sent and received by web services.
Toenable monitoring for a web service, with Admin Console, select Applications > Web
Services> web-service-name | Monitor | Conguration.
Inthe Monitoring Conguration page, set the monitoring level:
LOW-Monitors response time, throughput, total number of requests, and faults for the web
service.Does not perform method-level monitoring.
HIGH-Adds message tracing and monitoring of number of requests per second, average
responsetime, and throughput attributes.
TransformingMessageswith XSLT Filters
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008158