IBM Support

Error while handling multipart request and response in Web Service Proxy on Websphere DataPower Appliance

Troubleshooting


Problem

A Web Service Proxy (WS-Proxy) was created which was expected to accept an XML request with multipart and return a Non-XML multipart as a response. The following error is seen while handling a multipart response in WS-Proxy: Thu Nov 13 2008 09:26:56 xmlparse debug wsgw(TestWSGW): tid(2745282) response X.X.X.X : Parsing document 'http://X.X.X.X:Port/someURI' Thu Nov 13 2008 09:26:56 xmlparse error wsgw(TestWSGW): tid(2745282) response X.X.X.X : illegal character '-' at offset 0 of [http://X.X.X.X:Port/someURI] Thu Nov 13 2008 09:26:56 multistep error wsgw(TestWSGW): tid(2745282)response X.X.X.X: rule (test-wsgw-default_response-rule): implied action Parse input as XML failed: illegal character '-' at offset 0 of [http://X.X.X.X:Port/someURI] Thu Nov 13 2008 09:26:56 ws-proxy error wsgw(TestWSGW): tid(2745282)error 10.217.140.8¨: Parse error

Resolving The Problem

The error related to this issue:


Thu Nov 13 2008 09:26:56  xmlparse error wsgw(TestWSGW): tid(2745282) response X.X.X.X : illegal character '-' at offset 0 of http://X.X.X.X:Port/someURI

is due to the MIME boundary declaration in the response message:

--MIME_boundary                                
Content-Type: text/xml; charset=charset=UTF-8                          
Content-ID: TEST

The issue above indicates that the response expected was a non-xml response from the back-end. To resolve this issue, complete these steps:

  1. From the Control Panel, select WS-Proxy. Select the WS-Proxy in question.
  2. Navigate to the XML Threat Protection tab.
  3. Set Characterize server traffic type to "Non-XML"
  4. Set Request attachment processing mode to "Allow".

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"4.0.2;4.0.1;3.8.2;5.0.0;6.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 June 2021

UID

swg21328662