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
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17196549