IBM Support

webMethods Knowlegebase : XSD schema validation - UTF-8 enconding error (1771641)

Troubleshooting


Problem

Added in CS 9.8 a XSD schema validation policy to a virtual service, it does work for normal request, but sending the following request with encoding UTF-8 which contains the German special umlaut character “ü”, the validation fails:

------------ REQUEST -------------

POST http://<hostname>:5555/ws/HelloWorldService_V0 HTTP/1.1

Content-Type: text/xml; charset=utf-8

SOAPAction: "http://<hostname>/esb/test/helloworldservice/v0/sayhello"

Host: <hostname>:5555

Content-Length: 596

Expect: 100-continue

Accept-Encoding: gzip, deflate

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:RequestContextHeader xmlns:h="http://schemas.xxxxx.com/esf/nachrichten/v0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><h:ServiceVersion>0.0</h:ServiceVersion><h:ConsumerID>urn:consumer:xxxxxx.com:helloworldservice_consumerapp</h:ConsumerID></h:RequestContextHeader></s:Header><s:Body><SayHelloRequest xmlns="http://schemas.xxxxx.com/esb/test/helloworldservice/sayhello/v0"><Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Name>Krümmelmonster</Name></Request></SayHelloRequest></s:Body></s:Envelope>

------------ REQUEST -------------

------------ ERROR -------------

Mediator encountered an error:Schema validation failed for proxy service: Schema validation failed for proxy service: HelloWorldService_V0 request. Message exchange pattern: ttp://www.w3.org/ns/wsdl/in-out, Msg contents: <SayHelloRequest xmlns="http://schemas.xxxxx.com/esb/test/helloworldservice/sayhello/v0"><Request mlns:i="http://www.w3.org/2001/XMLSchema-instance"><Name>Krümmelmonster</Name></Request></SayHelloRequest> request. Messageexchange pattern: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 158; Invalid byte 1 of 1-byte UTF-8 sequence., Msg contents: {2} while executing operation:SayHello ervice:HelloWorldService_V0 at time:13:11:13 on date:25.01.2016. The client ip was:ZZZ.ZZZ.ZZZ.ZZZ. The current user:Default. The consumer application:HelloWorldService_ConsumerApp

------------ ERROR -------------

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQKXP","label":"IBM webMethods API Management"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Mediator (formerly X-Broker) (SMG)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2012"}],"Version":"9.8"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17196549