TEC Workbook - IBM

TEC Workbook - IBM TEC Workbook - IBM

23.02.2013 Views

IBM Software 2.4 SOAP Envelope Schema Validation The Multi-Protocol Gateway service that you configured expects requests and responses to conform to SOAP standards. This setting is found towards the middle of the Multi-Protocol Gateway main configuration page (see following image). Important! The following steps show you how to reload the request payload with prebuilt SOAP messages. In future steps, these detailed steps will be omitted for brevity. __1. In the soapUI Request tab, right click within the message body and select: Load from… __2. In the Load Editor Content dialog, select c:\labs\requests\noSoapEnv.xml; then click Open. Page 42 WebSphere Lab Jam

IBM Software __3. Click the green submit button to POST the XML to ProductServiceProxy. The request should fail again. To see details about the failure, click on the View Log link in the Multi-Protocol Gateway configuration page. 2.5 Content-based Filtering You can easily extend the built-in threat protection by defining custom filters. A custom filter is an XSL template that makes an “accept” or “reject” decision based on some custom logic that you define. The “accept” and “reject” decision are accomplished using special built-in extension functions for XSL. The and extension functions are used to tell processing rule how to proceed with the message. The following XSL template inspects the element to make sure that it contains the word “DataPower”. Listing of file: customFilter.xsl Missing 'DataPower' trademark Now you’ll add a filter action to your processing rule. __1. In the policy editor window, drag a filter action onto the rule as shown below. __2. Double click the yellow outlined filter action to complete its configuration. __3. In the Transform section: __a. In the upper dropdown, make sure local:/// is selected. __b. In the lower dropdown, select customFilter.xsl. __4. In the Configure Filter Action window, click Done. Lab 2 - Working with XML Page 43

<strong>IBM</strong> Software<br />

2.4 SOAP Envelope Schema Validation<br />

The Multi-Protocol Gateway service that you configured expects requests and responses to conform to<br />

SOAP standards. This setting is found towards the middle of the Multi-Protocol Gateway main<br />

configuration page (see following image).<br />

Important!<br />

The following steps show you how to reload the request<br />

payload with prebuilt SOAP messages. In future steps,<br />

these detailed steps will be omitted for brevity.<br />

__1. In the soapUI Request tab, right click within the message body and select: Load from…<br />

__2. In the Load Editor Content dialog, select c:\labs\requests\noSoapEnv.xml; then click<br />

Open.<br />

Page 42 WebSphere Lab Jam

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!